public class CoreDataObject extends CoreNode implements PlasmaDataObject
data graph.
Each data object holds its data as a series of Properties.
Properties can be accessed by name, property index, or using the property meta object itself.
A data object can also contain references to other data objects, through reference-type Properties.
A data object has a series of convenience accessors for its Properties.
These methods either use a path (String),
a property index,
or the property's meta object itself, to identify the property.
Some examples of the path-based accessors are as follows:
DataObject company = ...;
company.get("name"); is the same as company.get(company.getType().getProperty("name"))
company.set("name", "acme");
company.get("department.0/name") is the same as ((DataObject)((List)company.get("department")).get(0)).get("name")
.n indexes from 0 ... implies the name property of the first department
company.get("department[1]/name") [] indexes from 1 ... implies the name property of the first department
company.get("department[number=123]") returns the first department where number=123
company.get("..") returns the containing data object
company.get("/") returns the root containing data object
There are general accessors for Properties, i.e., get and set,
as well as specific accessors for the primitive types and commonly used data types like
String, Date, List, BigInteger, and BigDecimal.
EMPTY_EDGE_LIST, valueObject| Modifier | Constructor and Description |
|---|---|
protected |
CoreDataObject()
Default No-arg constructor required for serialization operations.
|
|
CoreDataObject(Type type) |
protected |
CoreDataObject(Type type,
CoreObject values,
UUID uuid) |
|
CoreDataObject(Type type,
UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PlasmaDataGraphEventVisitor visitor)
Begin breadth-first traversal of a DataGraph with this DataObject as the
graph root, the given visitor receiving various events for each graph
node traversed.
|
void |
accept(PlasmaDataGraphVisitor visitor)
Begin breadth-first traversal of a DataGraph with this DataObject as the graph root, the given
visitor receiving "visit" events for each graph node traversed.
|
void |
accept(PlasmaDataGraphVisitor visitor,
int maxLevel)
Begin breadth-first traversal of a DataGraph with this DataObject as the graph root, the given
visitor receiving "visit" events for each graph node traversed.
|
void |
acceptDepthFirst(PlasmaDataGraphVisitor visitor)
Begin depth-first traversal of a DataGraph with this DataObject as the graph root, the given
visitor receiving "visit" events for each graph node traversed.
|
void |
add(Property property,
Object value)
Adds the given value to the given multi=valued property.
|
boolean |
contains(DataObject dataObject)
Returns true if this data object is the container for the
given data object.
|
DataObject |
createDataObject(int propertyIndex)
Returns a new
data object contained by this object using the specified property,
which must be a containment property. |
DataObject |
createDataObject(int propertyIndex,
String namespaceURI,
String typeName)
Returns a new
data object contained by this object using the specified property,
which must be a containment property. |
DataObject |
createDataObject(Property property)
Returns a new
data object contained by this object using the specified property,
which must be a containment property. |
DataObject |
createDataObject(Property property,
Type type)
Returns a new
data object contained by this object using the specified property,
which must be of containment type. |
DataObject |
createDataObject(String propertyName)
Returns a new
data object contained by this object
using the specified property, which must be a
containment property. |
DataObject |
createDataObject(String propertyName,
String namespaceURI,
String typeName)
Returns a new
data object contained by this object using the specified property,
which must be a containment property. |
void |
delete()
Remove this object from its container and then unset all its non-
readOnly properties. |
void |
detach()
Removes this DataObject from its data graph and container, if any.
|
String |
dump() |
String |
dumpDepthFirst() |
boolean |
equals(Object obj) |
DataObject |
find(String key) |
Object |
get(int propertyIndex) |
Object |
get(Property property)
Returns the value of the given property of this object.
|
Object |
get(String path)
Returns the value of a property of either this object or an object reachable
from it, as identified by the specified path.
|
BigDecimal |
getBigDecimal(int propertyIndex) |
BigDecimal |
getBigDecimal(Property property) |
BigDecimal |
getBigDecimal(String path) |
BigInteger |
getBigInteger(int propertyIndex) |
BigInteger |
getBigInteger(Property property) |
BigInteger |
getBigInteger(String path) |
boolean |
getBoolean(int propertyIndex) |
boolean |
getBoolean(Property property) |
boolean |
getBoolean(String path) |
byte |
getByte(int propertyIndex) |
byte |
getByte(Property property) |
byte |
getByte(String path) |
byte[] |
getBytes(int propertyIndex) |
byte[] |
getBytes(Property property) |
byte[] |
getBytes(String path) |
ChangeSummary |
getChangeSummary() |
char |
getChar(int propertyIndex) |
char |
getChar(Property property) |
char |
getChar(String path) |
DataObject |
getContainer()
Returns the containing
data object
or null if there is no container. |
Property |
getContainmentProperty()
Return the Property of the
data object containing this data object
or null if there is no container. |
DataGraph |
getDataGraph()
Returns the
data graph for this object or
null if there isn't one. |
PlasmaDataObject |
getDataObject() |
DataObject |
getDataObject(int propertyIndex) |
DataObject |
getDataObject(Property property) |
DataObject |
getDataObject(String path) |
Date |
getDate(int propertyIndex) |
Date |
getDate(Property property) |
Date |
getDate(String path) |
double |
getDouble(int propertyIndex) |
double |
getDouble(Property property) |
double |
getDouble(String path) |
float |
getFloat(int propertyIndex) |
float |
getFloat(Property property) |
float |
getFloat(String path) |
List |
getInstanceProperties()
Returns a read-only List of the Properties currently used in this DataObject.
|
Property |
getInstanceProperty(String propertyName)
Returns the named Property from the current instance properties,
or null if not found.
|
int |
getInt(int propertyIndex) |
int |
getInt(Property property) |
int |
getInt(String path) |
List |
getList(int propertyIndex)
Returns the value of a
List property identified by the specified property index. |
List |
getList(Property property)
Returns the value of the specified
List property. |
List |
getList(String path)
Returns the value of a
List property identified by the specified path. |
long |
getLong(int propertyIndex) |
long |
getLong(Property property) |
long |
getLong(String path) |
Property |
getProperty(String propertyName) |
DataObject |
getRootObject() |
Sequence |
getSequence()
Returns the
Sequence for this DataObject. |
Sequence |
getSequence(int propertyIndex)
Deprecated.
in 2.1.0.
|
Sequence |
getSequence(Property property)
Deprecated.
in 2.1.0.
|
Sequence |
getSequence(String path)
Deprecated.
in 2.1.0.
|
short |
getShort(int propertyIndex) |
short |
getShort(Property property) |
short |
getShort(String path) |
String |
getString(int propertyIndex) |
String |
getString(Property property) |
String |
getString(String path) |
Type |
getType() |
UUID |
getUUID()
Returns the UUID for this data object.
|
String |
getUUIDAsString()
Deprecated.
|
int |
hashCode() |
boolean |
isSet(int propertyIndex) |
boolean |
isSet(Property property) |
boolean |
isSet(String path) |
void |
remove() |
void |
remove(Property property,
Object value)
Removes the given value from this data object for
the given multi-valued property.
|
void |
reparent(PlasmaDataObject container,
Property containmentProperty)
Transfers this
data object to another data graph, makes this data object to
be contained by the given container
data object using the given containment property. |
void |
reset(SnapshotMap idMap,
String username)
Sync up the state of this data object to that of it's data store
given the map of UUID's and associated info resulting from
a successful commit.
|
void |
resetUUID(UUID uuid)
Resets the UUID after creation for cases where the UUID
is stored externally and services creating data objects
need to preserve the stored UUIDs across service calls.
|
void |
set(int propertyIndex,
Object value)
Conversions are specified in Java [6] and the DataHelper.
|
void |
set(Property property,
Object value)
Sets the value of the given property of the object to the new value.
|
void |
set(String path,
Object value)
Sets a property of either this object or an object or objects reachable
from it, as identified by the specified path.
|
void |
setBigDecimal(int propertyIndex,
BigDecimal value) |
void |
setBigDecimal(Property property,
BigDecimal value) |
void |
setBigDecimal(String path,
BigDecimal value) |
void |
setBigInteger(int propertyIndex,
BigInteger value) |
void |
setBigInteger(Property property,
BigInteger value) |
void |
setBigInteger(String path,
BigInteger value) |
void |
setBoolean(int propertyIndex,
boolean value) |
void |
setBoolean(Property property,
boolean value) |
void |
setBoolean(String path,
boolean value) |
void |
setByte(int propertyIndex,
byte value) |
void |
setByte(Property property,
byte value) |
void |
setByte(String path,
byte value) |
void |
setBytes(int propertyIndex,
byte[] value) |
void |
setBytes(Property property,
byte[] value) |
void |
setBytes(String path,
byte[] value) |
void |
setChar(int propertyIndex,
char value) |
void |
setChar(Property property,
char value) |
void |
setChar(String path,
char value) |
void |
setContainer(DataObject container)
Sets the current container for this DataObject
|
void |
setContainmentProperty(Property containmentProperty)
Sets the declared reference Property within the Type for the
container which is our current containment reference property
|
void |
setDataGraph(DataGraph dataGraph) |
void |
setDataObject(int propertyIndex,
DataObject value) |
void |
setDataObject(Property property,
DataObject value) |
void |
setDataObject(String path,
DataObject value) |
void |
setDate(int propertyIndex,
Date value) |
void |
setDate(Property property,
Date value) |
void |
setDate(String path,
Date value) |
void |
setDouble(int propertyIndex,
double value) |
void |
setDouble(Property property,
double value) |
void |
setDouble(String path,
double value) |
void |
setFloat(int propertyIndex,
float value) |
void |
setFloat(Property property,
float value) |
void |
setFloat(String path,
float value) |
void |
setInt(int propertyIndex,
int value) |
void |
setInt(Property property,
int value) |
void |
setInt(String path,
int value) |
void |
setList(int propertyIndex,
List value) |
void |
setList(Property property,
List value) |
void |
setList(String path,
List value) |
void |
setLong(int propertyIndex,
long value) |
void |
setLong(Property property,
long value) |
void |
setLong(String path,
long value) |
void |
setShort(int propertyIndex,
short value) |
void |
setShort(Property property,
short value) |
void |
setShort(String path,
short value) |
void |
setString(int propertyIndex,
String value) |
void |
setString(Property property,
String value) |
void |
setString(String path,
String value) |
String |
toString() |
void |
unset(int propertyIndex)
Unsets the property at the specified index in
property list of this object's type. |
void |
unset(Property property)
Unsets the property of the object.
|
void |
unset(String path)
Unsets a property of either this object or an object reachable from it, as
identified by the specified path.
|
String |
uuidFromBase64(String str) |
String |
uuidToBase64(String str) |
getEdges, getEntityName, getValue, getValueObject, removeValue, setValue, setValueObjectprotected CoreDataObject()
protected CoreDataObject(Type type, CoreObject values, UUID uuid)
public CoreDataObject(Type type)
public DataGraph getDataGraph()
data graph for this object or
null if there isn't one.getDataGraph in interface DataObjectnull.public void setDataGraph(DataGraph dataGraph)
setDataGraph in interface PlasmaDataObjectpublic ChangeSummary getChangeSummary()
getChangeSummary in interface DataObjectpublic DataObject getRootObject()
getRootObject in interface DataObjectpublic UUID getUUID()
PlasmaDataObjectgetUUID in interface PlasmaDataObjectgetUUID in interface PlasmaNodepublic void resetUUID(UUID uuid)
resetUUID in interface PlasmaDataObjectuuid - the UUID@Deprecated public String getUUIDAsString()
PlasmaDataObjectgetUUIDAsString in interface PlasmaDataObjectgetUUIDAsString in interface PlasmaNodegetUUIDAsString in class CoreNodepublic PlasmaDataObject getDataObject()
getDataObject in interface PlasmaDataObjectgetDataObject in interface PlasmaNodepublic DataObject createDataObject(String propertyName)
data object contained by this object
using the specified property, which must be a
containment property. The type of the
created object is the declared type of the
specified property.createDataObject in interface DataObjectpropertyName - the name of the specified containment property.createDataObject(String, String, String)public DataObject createDataObject(int propertyIndex)
data object contained by this object using the specified property,
which must be a containment property.
The type of the created object is the declared type of the specified property.createDataObject in interface DataObjectpropertyIndex - the index of the specified containment property.createDataObject(int, String, String)public DataObject createDataObject(Property property)
data object contained by this object using the specified property,
which must be a containment property.
The type of the created object is the declared type of the specified property.createDataObject in interface DataObjectproperty - the specified containment property.createDataObject(Property, Type)public DataObject createDataObject(String propertyName, String namespaceURI, String typeName)
data object contained by this object using the specified property,
which must be a containment property.
The type of the created object is specified by the packageURI and typeName arguments.
The specified type must be a compatible target for the property identified by propertyName.createDataObject in interface DataObjectpropertyName - the name of the specified containment property.namespaceURI - the namespace URI of the package containing the type of object to be created.typeName - the name of a type in the specified package.createDataObject(String),
DataGraph.getType(java.lang.String, java.lang.String)public DataObject createDataObject(int propertyIndex, String namespaceURI, String typeName)
data object contained by this object using the specified property,
which must be a containment property.
The type of the created object is specified by the packageURI and typeName arguments.
The specified type must be a compatible target for the property identified by propertyIndex.createDataObject in interface DataObjectpropertyIndex - the index of the specified containment property.namespaceURI - the namespace URI of the package containing the type of object to be created.typeName - the name of a type in the specified package.createDataObject(int),
DataGraph.getType(java.lang.String, java.lang.String)public DataObject createDataObject(Property property, Type type)
data object contained by this object using the specified property,
which must be of containment type.
The type of the created object is specified by the type argument,
which must be a compatible target for the specified property.createDataObject in interface DataObjectproperty - a containment property of this object.type - the type of object to be created.createDataObject(int)public void setContainer(DataObject container)
PlasmaDataObjectsetContainer in interface PlasmaDataObjectpublic void setContainmentProperty(Property containmentProperty)
PlasmaDataObjectsetContainmentProperty in interface PlasmaDataObjectcontainmentProperty - the containment property, which must be a declared property
within the type for the current container data object.public void reparent(PlasmaDataObject container, Property containmentProperty)
PlasmaDataObjectdata object to another data graph, makes this data object to
be contained by the given container
data object using the given containment property. The property and
its opposite if exists, are automatically set and flagged as modified
in the change summary. This data object automatically
becomes part of the data graph of the given container.reparent in interface PlasmaDataObjectcontainer - the container data object.containmentProperty - the containment property, which must be a declared property
within the type for the given container data object.public void delete()
readOnly properties. If this object is
contained by a readOnly
containment property, its non-
readOnly properties will be unset but the
object will not be removed from its container. All DataObjects
recursively contained by containment
properties will also be deleted.delete in interface DataObjectpublic boolean contains(DataObject dataObject)
contains in interface PlasmaDataObjectdataObject - the data objectIllegalArgumentException - of the given data object has no containerpublic void detach()
detach in interface DataObjectpublic Object get(int propertyIndex)
get in interface DataObjectpublic Object get(Property property)
If the property is many-valued, the result will
be a List and each object in the List will be
an instance of the property's
type. Otherwise the result will directly be an
instance of the property's type.
get in interface DataObjectproperty - the property of the value to fetch.set(Property, Object),
unset(Property),
isSet(Property)public Object get(String path)
get in interface DataObjectpath - the path to a valid object and property.get(Property)public void set(String path, Object value)
set in interface DataObjectpath - the path to a valid object or set of objects and property.value - the new value for the property.set(Property, Object)public void set(int propertyIndex,
Object value)
set in interface DataObjectpublic void set(Property property, Object value)
If the property is many-valued,
the new value must be a List
and each object in that list must be an instance of
the property's type;
the existing contents are cleared and the contents of the new value are added.
Otherwise the new value directly must be an instance of the property's type
and it becomes the new value of the property of the object.
set in interface DataObjectproperty - the property of the value to set.value - the new value for the property.unset(Property),
isSet(Property),
get(Property)public void add(Property property, Object value)
add in interface PlasmaDataObjectproperty - the multi-valued propertyvalue - the value to add - can be a list of valuespublic void remove(Property property, Object value)
remove in interface PlasmaDataObjectproperty - multi-valued the propertyvalue - the value to removeUnsupportedOperationException - if the given property
is not multi-valuedpublic void unset(String path)
unset in interface DataObjectpath - the path to a valid object and property.unset(Property)public void unset(int propertyIndex)
property list of this object's type.unset in interface DataObjectpropertyIndex - the index of the property.unset(Property)public void unset(Property property)
If the property is many-valued, the value must be
an List and that list is cleared. Otherwise, the value
of the property of the object is set to the property's
default value. The property will no longer be
considered set.
unset in interface DataObjectproperty - the property in question.isSet(Property),
set(Property, Object),
get(Property)public boolean isSet(String path)
isSet in interface DataObjectpublic boolean isSet(int propertyIndex)
isSet in interface DataObjectpublic boolean isSet(Property property)
isSet in interface DataObjectpublic BigDecimal getBigDecimal(String path)
getBigDecimal in interface DataObjectpublic BigDecimal getBigDecimal(int propertyIndex)
getBigDecimal in interface DataObjectpublic BigDecimal getBigDecimal(Property property)
getBigDecimal in interface DataObjectpublic BigInteger getBigInteger(String path)
getBigInteger in interface DataObjectpublic BigInteger getBigInteger(int propertyIndex)
getBigInteger in interface DataObjectpublic BigInteger getBigInteger(Property property)
getBigInteger in interface DataObjectpublic boolean getBoolean(String path)
getBoolean in interface DataObjectpublic boolean getBoolean(int propertyIndex)
getBoolean in interface DataObjectpublic boolean getBoolean(Property property)
getBoolean in interface DataObjectpublic byte getByte(String path)
getByte in interface DataObjectpublic byte getByte(int propertyIndex)
getByte in interface DataObjectpublic byte getByte(Property property)
getByte in interface DataObjectpublic byte[] getBytes(String path)
getBytes in interface DataObjectpublic byte[] getBytes(int propertyIndex)
getBytes in interface DataObjectpublic byte[] getBytes(Property property)
getBytes in interface DataObjectpublic char getChar(String path)
getChar in interface DataObjectpublic char getChar(int propertyIndex)
getChar in interface DataObjectpublic char getChar(Property property)
getChar in interface DataObjectpublic Date getDate(String path)
getDate in interface DataObjectpublic Date getDate(int propertyIndex)
getDate in interface DataObjectpublic Date getDate(Property property)
getDate in interface DataObjectpublic double getDouble(String path)
getDouble in interface DataObjectpublic double getDouble(int propertyIndex)
getDouble in interface DataObjectpublic double getDouble(Property property)
getDouble in interface DataObjectpublic float getFloat(String path)
getFloat in interface DataObjectpublic float getFloat(int propertyIndex)
getFloat in interface DataObjectpublic float getFloat(Property property)
getFloat in interface DataObjectpublic int getInt(String path)
getInt in interface DataObjectpublic int getInt(int propertyIndex)
getInt in interface DataObjectpublic int getInt(Property property)
getInt in interface DataObjectpublic List getList(String path)
List property identified by the specified path.getList in interface DataObjectpath - the path to a valid object and property.List value of the specified property.get(String)public List getList(int propertyIndex)
List property identified by the specified property index.getList in interface DataObjectpropertyIndex - the index of the property.List value of the specified property.get(int)public List getList(Property property)
List property.
The List returned contains the current values.
Updates through the List interface operate on the current values of the DataObject.
Each access returns the same List object.getList in interface DataObjectproperty - the property to get.List value of the specified property.get(Property)public long getLong(String path)
getLong in interface DataObjectpublic long getLong(int propertyIndex)
getLong in interface DataObjectpublic long getLong(Property property)
getLong in interface DataObjectpublic Property getProperty(String propertyName)
getProperty in interface DataObjectpublic short getShort(String path)
getShort in interface DataObjectpublic short getShort(int propertyIndex)
getShort in interface DataObjectpublic short getShort(Property property)
getShort in interface DataObjectpublic String getString(String path)
getString in interface DataObjectpublic String getString(int propertyIndex)
getString in interface DataObjectpublic String getString(Property property)
getString in interface DataObjectpublic Type getType()
getType in interface DataObjectpublic void setBigDecimal(String path, BigDecimal value)
setBigDecimal in interface DataObjectpublic void setBigDecimal(int propertyIndex,
BigDecimal value)
setBigDecimal in interface DataObjectpublic void setBigDecimal(Property property, BigDecimal value)
setBigDecimal in interface DataObjectpublic void setBigInteger(String path, BigInteger value)
setBigInteger in interface DataObjectpublic void setBigInteger(int propertyIndex,
BigInteger value)
setBigInteger in interface DataObjectpublic void setBigInteger(Property property, BigInteger value)
setBigInteger in interface DataObjectpublic void setBoolean(String path, boolean value)
setBoolean in interface DataObjectpublic void setBoolean(int propertyIndex,
boolean value)
setBoolean in interface DataObjectpublic void setBoolean(Property property, boolean value)
setBoolean in interface DataObjectpublic void setByte(String path, byte value)
setByte in interface DataObjectpublic void setByte(int propertyIndex,
byte value)
setByte in interface DataObjectpublic void setByte(Property property, byte value)
setByte in interface DataObjectpublic void setBytes(String path, byte[] value)
setBytes in interface DataObjectpublic void setBytes(int propertyIndex,
byte[] value)
setBytes in interface DataObjectpublic void setBytes(Property property, byte[] value)
setBytes in interface DataObjectpublic void setChar(String path, char value)
setChar in interface DataObjectpublic void setChar(int propertyIndex,
char value)
setChar in interface DataObjectpublic void setChar(Property property, char value)
setChar in interface DataObjectpublic void setDataObject(String path, DataObject value)
setDataObject in interface DataObjectpublic void setDataObject(int propertyIndex,
DataObject value)
setDataObject in interface DataObjectpublic void setDataObject(Property property, DataObject value)
setDataObject in interface DataObjectpublic void setDate(String path, Date value)
setDate in interface DataObjectpublic void setDate(int propertyIndex,
Date value)
setDate in interface DataObjectpublic void setDate(Property property, Date value)
setDate in interface DataObjectpublic void setDouble(String path, double value)
setDouble in interface DataObjectpublic void setDouble(int propertyIndex,
double value)
setDouble in interface DataObjectpublic void setDouble(Property property, double value)
setDouble in interface DataObjectpublic void setFloat(String path, float value)
setFloat in interface DataObjectpublic void setFloat(int propertyIndex,
float value)
setFloat in interface DataObjectpublic void setFloat(Property property, float value)
setFloat in interface DataObjectpublic void setInt(String path, int value)
setInt in interface DataObjectpublic void setInt(int propertyIndex,
int value)
setInt in interface DataObjectpublic void setInt(Property property, int value)
setInt in interface DataObjectpublic void setList(String path, List value)
setList in interface DataObjectpublic void setList(int propertyIndex,
List value)
setList in interface DataObjectpublic void setList(Property property, List value)
setList in interface DataObjectpublic void setLong(String path, long value)
setLong in interface DataObjectpublic void setLong(int propertyIndex,
long value)
setLong in interface DataObjectpublic void setLong(Property property, long value)
setLong in interface DataObjectpublic void setShort(String path, short value)
setShort in interface DataObjectpublic void setShort(int propertyIndex,
short value)
setShort in interface DataObjectpublic void setShort(Property property, short value)
setShort in interface DataObjectpublic void setString(String path, String value)
setString in interface DataObjectpublic void setString(int propertyIndex,
String value)
setString in interface DataObjectpublic void setString(Property property, String value)
setString in interface DataObjectpublic DataObject getContainer()
data object
or null if there is no container.getContainer in interface DataObjectnull.public Property getContainmentProperty()
data object containing this data object
or null if there is no container.getContainmentProperty in interface DataObjectpublic DataObject getDataObject(String path)
getDataObject in interface DataObjectpublic DataObject getDataObject(int propertyIndex)
getDataObject in interface DataObjectpublic DataObject getDataObject(Property property)
getDataObject in interface DataObjectpublic List getInstanceProperties()
getInstanceProperties in interface DataObjectpublic Property getInstanceProperty(String propertyName)
getInstanceProperty in interface DataObjectpropertyName - the name of the Propertypublic Sequence getSequence(String path)
getSequence in interface DataObjectpath - the path to a valid object and property.Sequence value of the specified property.Returns the value of a Sequence property identified by the specified path.
An implementation may throw an UnsupportedOperationException.,
get(String)public Sequence getSequence(int propertyIndex)
getSequence in interface DataObjectpropertyIndex - the index of the property.Sequence value of the specified property.Returns the value of a Sequence property identified by the specified property index.
An implementation may throw an UnsupportedOperationException.,
get(int)public Sequence getSequence(Property property)
getSequence in interface DataObjectproperty - the property to get.Sequence value of the specified property.Returns the value of the specified Sequence property.
An implementation may throw an UnsupportedOperationException.,
get(Property)public Sequence getSequence()
Sequence for this DataObject.
When getType().isSequencedType() == true,
the Sequence of a DataObject corresponds to the
XML elements representing the values of its Properties.
Updates through DataObject and the Lists or Sequences returned
from DataObject operate on the same data.
When getType().isSequencedType() == false, null is returned.getSequence in interface DataObjectSequence or null.public void reset(SnapshotMap idMap, String username)
reset in interface PlasmaDataObjectidMap - - the hash of UUID's mapped to newly inserted pk'susername - - the user who committed the modifications.public void remove()
remove in interface PlasmaDataObjectpublic void accept(PlasmaDataGraphVisitor visitor)
accept in interface PlasmaDataObjectaccept in interface PlasmaNodevisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void accept(PlasmaDataGraphVisitor visitor, int maxLevel)
accept in interface PlasmaDataObjectvisitor - the graph visitor receiving traversal eventsmaxLevel - the maximum number of "hierarchical" levels to traverseDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void acceptDepthFirst(PlasmaDataGraphVisitor visitor)
acceptDepthFirst in interface PlasmaDataObjectacceptDepthFirst in interface PlasmaNodevisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void accept(PlasmaDataGraphEventVisitor visitor)
accept in interface PlasmaDataObjectaccept in interface PlasmaNodevisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public DataObject find(String key)
find in interface PlasmaDataObjectpublic String dump()
dump in interface PlasmaDataObjectpublic String dumpDepthFirst()
dumpDepthFirst in interface PlasmaDataObjectCopyright © 2017. All rights reserved.