|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.objects.ObjectNode
The ObjectNode class performs the following functions:
Field Summary | |
java.util.Map |
indexMap
|
protected java.util.HashMap |
mChildrenHashMap
map of child objects |key |value | |type|ArrayList| |
protected java.util.ArrayList |
mChildTags
list of child object tags |
protected java.util.HashMap |
mFields
list of fields |
protected ObjectNode |
mParent
the parent object |
protected java.lang.String |
mParentTag
parent object tag |
protected boolean |
mPartOfIndex
|
protected int |
mPosition
|
protected java.lang.String |
mTag
object tag |
static int |
mVersion
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
ObjectNode()
Creates a new instance of the ObjectNode class. |
|
ObjectNode(java.lang.String tag,
java.util.ArrayList names,
java.util.ArrayList types)
Creates a new instance of the ObjectNode class by its object tag, field names, and field types. |
|
ObjectNode(java.lang.String tag,
java.util.ArrayList names,
java.util.ArrayList types,
java.util.ArrayList values)
Creates a new instance of the ObjectNode class by its object tag, field names, field types, and field values. |
Method Summary | |
protected void |
add(java.util.ArrayList targetArrayList,
ObjectNode child)
|
void |
addChild(ObjectNode child)
Adds a new child object to the object node. |
void |
addChildHard(ObjectNode child)
adds a new child to the ObjectNode without checking on duplicates |
void |
addChildNoFlagSet(ObjectNode child)
adds a new child to the ObjectNode, and not to set flags |
void |
addChildren(java.util.ArrayList children)
adds a list of children objects |
void |
addChildToTypeArrayList(ObjectNode child)
|
protected void |
clearChildrenForType(java.util.ArrayList targetChildren)
|
void |
clearField(java.lang.String name)
Sets a field to null and the modifies the "changed" flag to true. |
ObjectNode |
copy()
ObjectNode deep copy |
protected void |
createChildIndex(ObjectNode child,
boolean overrideFlag)
|
void |
deleteChild(ObjectNode node)
Marks a child object for deletion. |
void |
deleteChild(java.lang.String type,
java.lang.String objectId)
Marks a child object for deletion, identifying the child object by its object tag and object ID. |
void |
deleteChild(java.lang.String type,
SuperKey key)
Marks a child object for deletion, identifying the child object by its object tag and key field settings. |
boolean |
equals(java.lang.Object node)
checks if itself equals to input Object. |
boolean |
equals(ObjectNode node)
checks if itself equals to input ObjectNode |
java.util.ArrayList |
getAllChildrenFromHashMap()
|
ObjectNode |
getChild(java.lang.String type,
int pos)
Retrieves a child ObjectNode by its object tag and its index position. |
ObjectNode |
getChild(java.lang.String type,
ObjectKey key)
Retrieves a child ObjectNode by its object tag and its unique objecy key value. |
ObjectNode |
getChild(java.lang.String type,
ObjectKey key,
boolean removed)
Retrieves a child ObjectNode by its object tag, its unique object key value, and whether the ObjectNode is flagged for removal. |
ObjectNode |
getChild(java.lang.String type,
java.lang.String id)
Retrieves a child ObjectNode by its object tag and its unique identification code assigned by the master index. |
ObjectKey |
getChildKey(java.lang.String type)
Retrieves the unique key field setting for the child object identified by the specified object tag. |
java.util.ArrayList |
getChildrenForType(java.lang.String type,
boolean create)
|
SuperKey |
getChildSuperKey(java.lang.String type)
Retrieves the unique object key setting for the child object identified by the specified object tag. |
ObjectField |
getField(java.lang.String fieldname)
Retrieves an ObjectField object by its field name. |
protected java.util.ArrayList |
getFieldTypes()
Retrieves a list of the types of fields in the object node. |
boolean |
getFlag(java.lang.String name,
int mask)
Checks whether a field's bit mask is enabled or disabled. |
java.lang.String |
getObjectId()
|
ObjectNode |
getParent()
Retrieves the parent object node. |
java.lang.String |
getParentTag()
gets parent object tag |
java.lang.Object |
getValue(java.lang.String name)
Retrieves the value of a field given the field's name. |
ObjectField |
getValueObject(java.lang.String name)
Retrieves a field object (ObjectField) given the field's name. |
boolean |
hasFieldReadAccess(java.lang.String name)
Checks whether the given field has read access. |
boolean |
hasFieldUpdateAccess(java.lang.String name)
Checks whether the given field has update access. |
int |
hashCode()
hash code |
boolean |
hasObjectAddAccess()
Checks whether the object has add access. |
boolean |
hasObjectDeleteAccess()
Checks whether the object has delete access. |
boolean |
hasObjectReadAccess()
Checks whether the object has read access. |
boolean |
hasObjectUpdateAccess()
Checks whether the object has update access. |
boolean |
isAdded()
Checks whether the object node has been added to the object. |
boolean |
isChanged(java.lang.String name)
Checks whether the value of a field changed in the current transaction. |
boolean |
isKeyChanged()
Checks whether key fields in the object node have changed. |
protected boolean |
isKeyIndexable()
|
boolean |
isKeyType(java.lang.String name)
Checks whether the given field is a unique key field. |
boolean |
isKeyValid(ObjectKey key)
Checks whether the given key object is valid. |
boolean |
isNew()
|
boolean |
isNull(java.lang.String name)
Checks whether the given field contains a null value. |
boolean |
isNullable(java.lang.String name)
Checks whether the value of the given field can be null. |
protected boolean |
isRegularKeyIndexable()
|
boolean |
isRemoved()
Checks whether an object node is marked for deletion. |
boolean |
isSearched(java.lang.String name)
Checks whether a field is used for searches. |
boolean |
isUpdated()
Checks whether an object node has been updated during a transaction. |
boolean |
isVisible(java.lang.String name)
Checks whether a field is visible on the Enterprise Data Manager (EDM). |
protected ObjectKey |
obtainKey()
gets Object Key setting |
protected SuperKey |
obtainSuperKey()
gets Object Key setting |
java.util.ArrayList |
pGetChildren()
Retrieves a list of all child nodes in the object node. |
java.util.ArrayList |
pGetChildren(java.lang.String type)
Retrieves a list of all child nodes of the specified child type. |
java.util.ArrayList |
pGetChildTags()
Retrieves a list of the names of the different types of child objects defined in the object node. |
java.util.ArrayList |
pGetFieldNames()
Retrieves a list of all field names in the object node. |
ObjectField[] |
pGetFields()
Retrieves an array list of all ObjectField objects in the object node. |
java.util.ArrayList |
pGetFieldUpdateLogs()
Retrieves a list of transaction log entries for the object node. |
java.util.ArrayList |
pGetFieldValues()
Retrieves a list of field values for the fields defined in the object node. |
java.lang.String |
pGetFlagString()
returns String for objectnode without printing out field details |
ObjectKey |
pGetKey()
Retrieves the unique object key setting for the object node. |
SuperKey |
pGetSuperKey()
Retrieves the unique key field setting for the object node. |
java.lang.String |
pGetTag()
Retrieves the tag of the ObjectNode object. |
java.lang.String |
pGetType()
Retrieves the tag of the ObjectNode object. |
int |
pGetType(java.lang.String name)
Retrieves a field's data type given the field's name. |
void |
readExternal(java.io.ObjectInput in)
|
protected void |
recalculateIndex()
|
void |
removeChild(ObjectNode node)
Removes a child object from the ObjectNode |
void |
removeChild(java.lang.String type,
ObjectKey objKey)
removes a child object from the ObjectNode by child's object tag and key setting |
protected void |
removeChildForType(java.util.ArrayList targetChildren,
ObjectNode child)
|
protected void |
removeChildIndex(ObjectNode child)
|
void |
removeChildren()
Removes all child objects from the ObjectNode |
void |
removeChildren(java.lang.String type)
Removes all child objects of one type from the ObjectNode |
void |
reset()
resets all control flags on the ObjectNode |
void |
resetAll()
resets all control flags on the ObjectNode, including child(ren) |
void |
setAddFlag(boolean flag)
Sets the value of the add flag, indicating whether the ObjectNode object is newly added. |
void |
setChanged(java.lang.String name,
boolean flag)
Sets the value of the field change flag, indicating whether the specified fields was changed in the ObjectNode object. |
void |
setFieldReadAccess(java.lang.String name,
boolean flag)
Sets the value of a field's read access flag. |
void |
setFieldUpdateAccess(java.lang.String name,
boolean flag)
Sets the value of a field's update access flag. |
void |
setFieldUpdateLogs(java.util.ArrayList logs)
Sets a list of transaction log entries. |
void |
setFlag(java.lang.String name,
int mask,
boolean flag)
Sets a field's bit bit mask, which indicates whether to update, add, or remove a field. |
void |
setKey(ObjectKey key)
Sets the object node's key field value. |
void |
setKeyChangeFlag(boolean flag)
Sets the value of the key change flag, indicating whether key fields were changed in the ObjectNode object. |
void |
setKeyType(java.lang.String name,
boolean flag)
Specifies whether a field is a key type field or not. |
void |
setNull(java.lang.String name,
boolean flag)
Specifies whether a field is holding a null value. |
void |
setNullable(java.lang.String name,
boolean flag)
Specifies whether a field can contain a null value. |
void |
setObjectAddAccess(boolean flag)
Sets the value of the add access flag for the object node, indicating whether the object has add access. |
void |
setObjectDeleteAccess(boolean flag)
Sets the value of the delete access flag for the object node, indicating whether the object has delete access. |
void |
setObjectReadAccess(boolean flag)
Sets the value of the read access flag for the object node, indicating whether the object has read access. |
void |
setObjectUpdateAccess(boolean flag)
Sets the value of the update access flag for the object node, indicating whether the object has update access. |
void |
setParent(ObjectNode parent)
Sets the parent object in an object node. |
void |
setRemoveFlag(boolean flag)
Specifies whether the object node is marked for deletion. |
void |
setSearched(java.lang.String name,
boolean flag)
Specifies whether the given field is used for searches. |
void |
setUpdateFlag(boolean flag)
Specifies whether the given object node was updated. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets the value of a field, using the field name to identify the field. |
void |
setVisible(java.lang.String name,
boolean flag)
sets if a field is visible |
ObjectNode |
structCopy()
ObjectNode structural copy |
java.lang.String |
toString()
toString |
void |
unChange()
Resets the changes made to an object, returning the object to its previous status. |
void |
update(ObjectNode node,
boolean addNewChild,
boolean delMissingChild)
updates the ObjectNode by input object copies all the fields of input objectNode to this ObjectNode, including nulls except the Id fields. |
void |
updateChild(ObjectNode child)
update a child to the ObjectNode. |
void |
updateIfChanged(ObjectNode node,
boolean addNewChild,
boolean delMissingChild)
updates the ObjectNode by input object |
void |
updateIfNotEqual(ObjectNode node,
boolean addNewChild,
boolean delMissingChild)
|
void |
updateIfNotNull(ObjectNode node,
boolean addNewChild,
boolean delMissingChild)
updates the ObjectNode by input object |
void |
updateIfNotNull(ObjectNode node,
boolean addNewChild,
boolean delMissingChild,
boolean copyFlags)
updates the ObjectNode by input object |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.util.Map indexMap
protected java.util.HashMap mChildrenHashMap
protected java.util.ArrayList mChildTags
protected java.util.HashMap mFields
protected ObjectNode mParent
protected java.lang.String mParentTag
protected boolean mPartOfIndex
protected int mPosition
protected java.lang.String mTag
public static int mVersion
static final long serialVersionUID
Constructor Detail |
public ObjectNode()
public ObjectNode(java.lang.String tag, java.util.ArrayList names, java.util.ArrayList types) throws ObjectException
tag
- A string containing the object tag.names
- A list of names of the fields contained in the object node.types
- A list of the types of fields contained in the object node.
ObjectException
- Thrown if an error occurs while creating
the instance.public ObjectNode(java.lang.String tag, java.util.ArrayList names, java.util.ArrayList types, java.util.ArrayList values) throws ObjectException
tag
- A string containing the object tag.names
- A list of names of the fields contained in the object node.types
- A list of the types of fields contained in the object node.values
- A list of the values of the fields contained in the object
node.
ObjectException
- Thrown if an error occurs while creating
the instance.Method Detail |
protected void add(java.util.ArrayList targetArrayList, ObjectNode child) throws ObjectException
ObjectException
public void addChild(ObjectNode child) throws ObjectException
child
- The child object to add.
void
- None.
ObjectException
- Thrown if an error occurs while adding the
child object.public void addChildHard(ObjectNode child) throws ObjectException
child
- The feature to be added to the Child attribute
ObjectException
- ObjectExceptionpublic void addChildNoFlagSet(ObjectNode child) throws ObjectException
child
- The feature to be added to the Child attribute
ObjectException
- ObjectExceptionpublic void addChildren(java.util.ArrayList children) throws ObjectException
children
- ArrayList of ObjectNode(s)
ObjectException
- ObjectExceptionpublic void addChildToTypeArrayList(ObjectNode child)
protected void clearChildrenForType(java.util.ArrayList targetChildren) throws ObjectException
ObjectException
public void clearField(java.lang.String name) throws ObjectException
name
- The name of the field being modified.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the field value or modifying the flag.public ObjectNode copy() throws ObjectException
ObjectException
- ObjectExceptionprotected void createChildIndex(ObjectNode child, boolean overrideFlag) throws ObjectException
ObjectException
public void deleteChild(ObjectNode node) throws ObjectException
node
- An ObjectNode object containing the child object to delete.
void
- None.
ObjectException
- Thrown if an error occurs while marking the
object for deletion.public void deleteChild(java.lang.String type, java.lang.String objectId) throws ObjectException
type
- The type of child object to mark for deletion.objectId
- The object ID of the child object.
void
- None.
ObjectException
- Thrown if an error occurs while marking the
object for deletion.public void deleteChild(java.lang.String type, SuperKey key) throws ObjectException
type
- The type of child object to mark for deletion.key
- The key field of the child object.
void
- None.
ObjectException
- Thrown if an error occurs while marking the
object for deletion.public boolean equals(java.lang.Object node)
node
- Object
public boolean equals(ObjectNode node) throws ObjectException
node
- ObjectNode
ObjectException
- ObjectExceptionpublic java.util.ArrayList getAllChildrenFromHashMap()
public ObjectNode getChild(java.lang.String type, int pos)
type
- A string containing the object tag.pos
- The index position of the child object.
ObjectException
- Thrown if an error occurs while retrieving the
child object.public ObjectNode getChild(java.lang.String type, ObjectKey key) throws ObjectException
type
- A string containing the object tag.key
- The value of the unique key field.
ObjectException
- Thrown if an error occurs while retrieving the
child object.public ObjectNode getChild(java.lang.String type, ObjectKey key, boolean removed) throws ObjectException
type
- A string containing the object tag.key
- The value of the unique key field.removed
- A Boolean value indicating whether the object is flagged
for removal.
ObjectException
- Thrown if an error occurs while retrieving the
child object.public ObjectNode getChild(java.lang.String type, java.lang.String id) throws ObjectException
type
- A string containing the object tag.id
- The child object's unique identification code as assigned by
the master index.
ObjectException
- Thrown if an error occurs while retrieving the
child object.public ObjectKey getChildKey(java.lang.String type) throws ObjectException
type
- A string containing the object tag.
ObjectException
- Thrown if an error occurs while retrieving the
key setting.public java.util.ArrayList getChildrenForType(java.lang.String type, boolean create)
public SuperKey getChildSuperKey(java.lang.String type) throws ObjectException
type
- A string containing the object tag.
ObjectException
- Thrown if an error occurs while retrieving the
key setting.public ObjectField getField(java.lang.String fieldname) throws ObjectException
fieldname
- The name of the field whose ObjectField object you want
to retrieve.
ObjectException
- Thrown if an error occurs while retrieving the
ObjectField object.protected java.util.ArrayList getFieldTypes()
public boolean getFlag(java.lang.String name, int mask) throws ObjectException
name
- The name of the field to check.mask
- The bit mask of the field.
ObjectException
- Thrown if an error occurs while checking the
bit mask status.public java.lang.String getObjectId() throws ObjectException
ObjectException
public ObjectNode getParent()
public java.lang.String getParentTag()
public java.lang.Object getValue(java.lang.String name) throws ObjectException
name
- The name of the field to retrieve.
ObjectException
- Thrown if an error occurs while retrieving the
field value.public ObjectField getValueObject(java.lang.String name) throws ObjectException
name
- The name of the field.
ObjectException
- Thrown if an error occurs while retrieving the
field object.public boolean hasFieldReadAccess(java.lang.String name) throws ObjectException
name
- The name of the field.
ObjectException
- Thrown if an error occurs while retrieving the
read access status of the field.public boolean hasFieldUpdateAccess(java.lang.String name) throws ObjectException
name
- The name of the field.
ObjectException
- Thrown if an error occurs while retrieving the
update access status of the field.public int hashCode()
public boolean hasObjectAddAccess()
public boolean hasObjectDeleteAccess()
public boolean hasObjectReadAccess()
public boolean hasObjectUpdateAccess()
public boolean isAdded()
public boolean isChanged(java.lang.String name) throws ObjectException
name
- The name of the field.
ObjectException
- Thrown if an error occurs while checking whether
the value of the field changed.public boolean isKeyChanged()
protected boolean isKeyIndexable() throws ObjectException
ObjectException
public boolean isKeyType(java.lang.String name) throws ObjectException
name
- The name of the field.
ObjectException
- Thrown if an error occurs while retrieving the
unique key access status of the field.public boolean isKeyValid(ObjectKey key)
key
- The object key (ObjectKey) to check.
ObjectException
- Thrown if an error occurs while checking
the key.public boolean isNew()
public boolean isNull(java.lang.String name) throws ObjectException
name
- The name of the field to check.
ObjectException
- Thrown if an error occurs while checking the
value of the field.public boolean isNullable(java.lang.String name) throws ObjectException
name
- The name of the field.
ObjectException
- Thrown if an error occurs while checking
the field.protected boolean isRegularKeyIndexable() throws ObjectException
ObjectException
public boolean isRemoved()
ObjectException
- Thrown if an error occurs while retrieving the
status of the field.public boolean isSearched(java.lang.String name) throws ObjectException
name
- The name of the field to check.
ObjectException
- Thrown if an error occurs while checking
the field.public boolean isUpdated()
ObjectException
- Thrown if an error occurs while checking
the object.public boolean isVisible(java.lang.String name) throws ObjectException
name
- The name of the field to check.
ObjectException
- Thrown if an error occurs while checking
the field.protected ObjectKey obtainKey() throws ObjectException
ObjectException
- object exceptionprotected SuperKey obtainSuperKey() throws ObjectException
ObjectException
- object exceptionpublic java.util.ArrayList pGetChildren()
public java.util.ArrayList pGetChildren(java.lang.String type)
type
- A string containing an object tag.
public java.util.ArrayList pGetChildTags()
public java.util.ArrayList pGetFieldNames()
public ObjectField[] pGetFields()
public java.util.ArrayList pGetFieldUpdateLogs()
public java.util.ArrayList pGetFieldValues()
public java.lang.String pGetFlagString()
public ObjectKey pGetKey() throws ObjectException
ObjectException
- Thrown if an error occurs while retrieving the
key setting.public SuperKey pGetSuperKey() throws ObjectException
ObjectException
- Thrown if an error occurs while retrieving the
key setting.public java.lang.String pGetTag()
public java.lang.String pGetType()
public int pGetType(java.lang.String name) throws ObjectException
name
- The name of the field to check.
ObjectException
- Thrown if an error occurs while retrieving the
field type.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected void recalculateIndex() throws ObjectException
ObjectException
public void removeChild(ObjectNode node)
node
- ObjectNode child objectpublic void removeChild(java.lang.String type, ObjectKey objKey) throws ObjectException
type
- object tag
ObjectException
- ObjectExceptionprotected void removeChildForType(java.util.ArrayList targetChildren, ObjectNode child) throws ObjectException
ObjectException
protected void removeChildIndex(ObjectNode child) throws ObjectException
ObjectException
public void removeChildren()
public void removeChildren(java.lang.String type)
type
- object typepublic void reset()
public void resetAll()
public void setAddFlag(boolean flag)
flag
- A Boolean flag indicating whether the object node is newly
added. True indicates the object node is newly added; false
indicates it is not.
void
- None.
public void setChanged(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose change flag is being set.flag
- A Boolean flag indicating whether the field was updated in
the object node. True indicates the field was updated; false
indicates it was not.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the flag.public void setFieldReadAccess(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose flag is being set.flag
- A boolean flag indicating whether the field has read
access. True indicates the field has read access; false
indicates it does not.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the read access flag.public void setFieldUpdateAccess(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose flag is being set.flag
- A boolean flag indicating whether the field has update
access. True indicates the field has update access; false
indicates it does not.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the update access flag.public void setFieldUpdateLogs(java.util.ArrayList logs)
logs
- An array list of transaction log entries.
void
- None.
public void setFlag(java.lang.String name, int mask, boolean flag) throws ObjectException
name
- The name of the field whose bit mask is being set.mask
- The bit mask indicator for the field.flag
- A boolean flag that indicates...
void
- None.
ObjectException
- Thrown if an error occurs while setting
the flag.
sets a field's bit mask
ObjectException
- ObjectException
mKeyChangeMask=8
mUpdateMask=1
mRemoveMask=2
mAddMask=4
mObjectReadAccessMask=1
mObjectUpdateAccessMask=2
mObjectDeleteAccessMask=4
mObjectAddAccessMask=8public void setKey(ObjectKey key) throws ObjectException
key
- The value to set in the key field.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the flag.public void setKeyChangeFlag(boolean flag)
flag
- A Boolean flag indicating whether key fields were updated in
the object node. True indicates key fields were updated; false
indicates they were not.
void
- None.
public void setKeyType(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose key type flag is being setflag
- A boolean flag indicating whether the field is a key type
field. True indicates the field is a key type field; false
indicates it is not.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the key type.public void setNull(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose value is being set.flag
- A boolean flag indicating whether the field is holding a null
value. True indicates the field is holding a null value; false
indicates it is not.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the null value indicator.public void setNullable(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose null flag is being set.flag
- A boolean flag indicating whether the field can contain a null
value. True indicates the field can be null; false
indicates it cannot.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the null flag.public void setObjectAddAccess(boolean flag)
flag
- A Boolean flag indicating whether the object node has add
access. True indicates the object node has add access; false
indicates it does not.
void
- None.
public void setObjectDeleteAccess(boolean flag)
flag
- A Boolean flag indicating whether the object node has delete
access. True indicates the object node has delete access; false
indicates it does not.
void
- None.
public void setObjectReadAccess(boolean flag)
flag
- A Boolean flag indicating whether the object node has read
access. True indicates the object node has read access; false
indicates it does not.
void
- None.
public void setObjectUpdateAccess(boolean flag)
flag
- A Boolean flag indicating whether the object node has update
access. True indicates the object node has update access;
false indicates it does not.
void
- None.
public void setParent(ObjectNode parent)
parent
- The name of the parent object.
void
- None.
public void setRemoveFlag(boolean flag)
flag
- A boolean indicator of whether to mark the object node
for deletion. True indicates the object node is marked for
deletion; false indicates it is not.
void
- None.
public void setSearched(java.lang.String name, boolean flag) throws ObjectException
name
- The name of the field whose search flag is being set.flag
- A boolean indicator of whether the field is used for
searches. True indicates the field is used for searches;
false indicates it is not.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the search flag.public void setUpdateFlag(boolean flag)
flag
- A boolean indicator of whether the object node was
updated. True indicates the object node was updated;
false indicates it was not.
void
- None.
public void setValue(java.lang.String name, java.lang.Object value) throws ObjectException
name
- The name of the field whose value is being set.value
- The new value for the given field.
void
- None.
ObjectException
- Thrown if an error occurs while changing the
value of the field.public void setVisible(java.lang.String name, boolean flag) throws ObjectException
name
- field nameflag
- boolean flag
ObjectException
- ObjectExceptionpublic ObjectNode structCopy() throws ObjectException
ObjectException
- ObjectExceptionpublic java.lang.String toString()
public void unChange() throws ObjectException
void
- None.
ObjectException
- Thrown if an error occurs while reversing
the changes to the object.public void update(ObjectNode node, boolean addNewChild, boolean delMissingChild) throws ObjectException
node
- ObjectNodeaddNewChild
- add-new-child flagdelMissingChild
- delete-missing-child flag
ObjectException
- ObjectExceptionpublic void updateChild(ObjectNode child) throws ObjectException
child
- The feature to be added to the Child attribute
ObjectException
- ObjectExceptionpublic void updateIfChanged(ObjectNode node, boolean addNewChild, boolean delMissingChild) throws ObjectException
node
- ObjectNodeaddNewChild
- add-new-child flagdelMissingChild
- delete-missing-child flag
ObjectException
- ObjectExceptionpublic void updateIfNotEqual(ObjectNode node, boolean addNewChild, boolean delMissingChild) throws ObjectException
ObjectException
public void updateIfNotNull(ObjectNode node, boolean addNewChild, boolean delMissingChild) throws ObjectException
node
- ObjectNodeaddNewChild
- add-new-child flagdelMissingChild
- delete-missing-child flag
ObjectException
- ObjectExceptionpublic void updateIfNotNull(ObjectNode node, boolean addNewChild, boolean delMissingChild, boolean copyFlags) throws ObjectException
node
- ObjectNodeaddNewChild
- add-new-child flagdelMissingChild
- delete-missing-child flagcopyFlags
- if set to true, will copy the flags: isRemoved, isAdded, isUpdated
ObjectException
- ObjectExceptionpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.