net.liftweb.couchdb.DocumentHelpers.JObjectExtension

class JObjectExtension

class JObjectExtension(obj : JObject)

 extends ScalaObject


Extension of JObject that has field accessing functions


Source: DocumentHelpers.scala(52)

 Constructors

def this(obj : JObject)

 Fields

_id.. def _id
Full(_id) from the named field _id if present, Empty or Failure if not present
Box[String]
_rev.. def _rev
Full(_rev) from the named field _rev if present, Empty or Failure if not present
Box[String]
clean.. def clean
Clean out the usual couch fields of "_id", "_rev", and "type", if present
JObject
type.. def type
Full(type) from the named field type if present, Empty or Failure if not present
Box[String]

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
get.. def get[A <: JValue](name : String)(implicit m : Manifest[A])
Retrieve a named field from a JObject of the given (AST) value type
Box[A]
getArray.. def getArray(name : String)
Get a field as a JArray and project the inner list of JValues out of it
Box[List[JValue]]
getClass.. final def getClass Class[Any] AnyRef
getDouble.. def getDouble(name : String)
Get a field as a JDouble and project the inner String out of it
Box[Double]
getInt.. def getInt(name : String)
Get a field as a JInt and project the inner BigInt out of it
Box[BigInt]
getObject.. def getObject(name : String)
Get a field as a JObject and project the inner list of JFields out of it
Box[List[JField]]
getString.. def getString(name : String)
Get a field as a JString and project the inner String out of it
Box[String]
hashCode.. def hashCode Int AnyRef
isA.. def isA(s : String)
true iff the type field is present and equal to the given predicate value
Boolean
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
remove.. def remove(field : String)
Construct a version of the input JObject with the given field removed (if present)
JObject
remove.. def remove(fields : String*)
Construct a version of the input JObject with all the given fields removed (if present)
JObject
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.