storage.memory
Class BareRecord

java.lang.Object
  extended byorg.nodal.util.NodeFilter
      extended bystorage.memory.BareContent
          extended bystorage.memory.BareRecord
All Implemented Interfaces:
Content, Node, NodeContent, RecordContent, RecordNode, TxnMonitorable

public abstract class BareRecord
extends BareContent
implements RecordNode


Nested Class Summary
 
Nested classes inherited from class storage.memory.BareContent
BareContent.Editor
 
Nested classes inherited from class org.nodal.model.RecordNode
RecordNode.Editor
 
Field Summary
protected  storage.memory.MemRecordContentI record
           
 
Fields inherited from class storage.memory.BareContent
c, cap, services, txnHandlers
 
Fields inherited from class org.nodal.util.NodeFilter
node
 
Method Summary
 RecordNode asRecordNode()
          The Node's contents expressed as a Record.
 NodeContent.Editor edit()
          An Editor for changing the Content of this Node.
abstract  RecordNode.Editor editRecord()
          Directly access RecordEditor.
 Getter field(Name name)
          Return a Getter for the field named.
 Getter field(java.lang.String nm)
          Return a Getter for the field named.
 java.lang.Object getField(Name name)
          Return the Object stored in the name field.
 java.lang.Object getField(java.lang.String name)
          Return the Object stored in the name field.
 boolean hasField(Name nm)
          Checks for validity of a field Name.
 boolean hasField(java.lang.String nm)
          Checks for validity of a field named fieldName.
 boolean isValidProperty(java.lang.Object property)
          Check for the validity of a given property value.
 java.lang.String toString()
           
 
Methods inherited from class storage.memory.BareContent
addTxnHandler, asAnchor, asMapNode, asSequenceNode, capability, content, getValue, invert, notifyInsertAfter, notifyInsertBefore, notifyRemoveKey, notifyRemoveRange, notifyReplaceRange, notifySetValue, properties, removeTxnHandler, size, value
 
Methods inherited from class org.nodal.util.NodeFilter
bareNode, editMap, editSequence, history, id, path, repository, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nodal.model.Content
getValue, invert, properties, size, type, value
 
Methods inherited from interface org.nodal.model.Node
asAnchor, asMapNode, asSequenceNode, bareNode, capability, content, editMap, editSequence, history, id, path, repository, type
 
Methods inherited from interface org.nodal.model.TxnMonitorable
addTxnHandler, removeTxnHandler
 

Field Detail

record

protected final storage.memory.MemRecordContentI record
Method Detail

hasField

public final boolean hasField(Name nm)
Description copied from interface: RecordContent
Checks for validity of a field Name.

Specified by:
hasField in interface RecordContent
Parameters:
nm - the Name of the field
Returns:
true if this record has this field

hasField

public final boolean hasField(java.lang.String nm)
Description copied from interface: RecordContent
Checks for validity of a field named fieldName.

Specified by:
hasField in interface RecordContent
Parameters:
nm - the Name of the field
Returns:
true if this record has this field

isValidProperty

public final boolean isValidProperty(java.lang.Object property)
Description copied from interface: Content
Check for the validity of a given property value.

Specified by:
isValidProperty in interface Content
Parameters:
property - the property to be checked
Returns:
true if that value can be used as a property of this Node

asRecordNode

public final RecordNode asRecordNode()
Description copied from interface: Node
The Node's contents expressed as a Record. This is a shortcut for content().asRecord().

Specified by:
asRecordNode in interface Node
Overrides:
asRecordNode in class BareContent

field

public final Getter field(Name name)
                   throws PropertyConstraintFailure
Description copied from interface: RecordContent
Return a Getter for the field named.

Specified by:
field in interface RecordContent
Throws:
PropertyConstraintFailure

field

public final Getter field(java.lang.String nm)
                   throws PropertyConstraintFailure
Description copied from interface: RecordContent
Return a Getter for the field named.

Specified by:
field in interface RecordContent
Throws:
PropertyConstraintFailure

getField

public final java.lang.Object getField(Name name)
                                throws PropertyConstraintFailure
Description copied from interface: RecordContent
Return the Object stored in the name field.

Specified by:
getField in interface RecordContent
Throws:
PropertyConstraintFailure

getField

public final java.lang.Object getField(java.lang.String name)
                                throws PropertyConstraintFailure
Description copied from interface: RecordContent
Return the Object stored in the name field.

Specified by:
getField in interface RecordContent
Throws:
PropertyConstraintFailure

edit

public final NodeContent.Editor edit()
Description copied from interface: Node
An Editor for changing the Content of this Node. If the Capability does not provide write access, then this will return null.

Specified by:
edit in interface Node
Specified by:
edit in class BareContent

toString

public java.lang.String toString()

editRecord

public abstract RecordNode.Editor editRecord()
Description copied from interface: RecordNode
Directly access RecordEditor.

Specified by:
editRecord in interface RecordNode
Overrides:
editRecord in class NodeFilter