public abstract class XEntityImpl extends XCommonImpl implements XEntity
| Modifier and Type | Field and Description |
|---|---|
private UniqueIdGenerator.IdKind |
idKind
The kind of this entity.
|
(package private) static java.lang.String |
IS_INVALID_NODE
Constant to specify uninitialized state for node if owner of this node has been deleted.
|
private java.lang.Long |
uniqueID
Corresponds to UNIQUE-ID attribute.
|
private org.w3c.dom.Node |
xnode
Element associates with current XEntity class.
|
isValidname, nextSibling, prevSibling, wainstProc, pm| Modifier | Constructor and Description |
|---|---|
protected |
XEntityImpl(org.w3c.dom.Node node,
UniqueIdGenerator.IdKind idKind)
Special constructor accepting a X-Document or X-Node-Reference object.
|
protected |
XEntityImpl(UniqueIdGenerator.IdKind idKind)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
_name()
Get the
name attribute of handle as a string. |
logical |
appendChild(handle hChild)
Appending the new child to the current object.
|
protected void |
commonDomError(java.lang.String attribute,
java.lang.String message)
Process and display unknown node error.
|
protected void |
commonDomError(java.lang.String attribute,
java.lang.String message,
boolean raiseError)
Process and display unknown node error.
|
logical |
getChild(handle hChild,
int index)
Getting the handle object of the child node with specified index.
|
logical |
getChild(handle hChild,
int64 index)
Getting the handle object of the child node with specified index.
|
org.w3c.dom.Node |
getNode()
Getting the Element backend object for this XEntity.
|
integer |
getNumChildren()
Gets the the number of children objects for the current one.
|
character |
getSubType()
Gets the the subtype of the object.
|
integer |
getUniqueID()
Gets the the unique ID number associated to this object by the underlying system.
|
logical |
insertBefore(handle handle1,
handle handle2)
Inserts a node as a child of this document before another node or last if other node is
unknown.
|
protected void |
invalidNodeError(java.lang.String attribute)
Process and display invalid node error.
|
(package private) boolean |
isInitialized()
Reports if this object is not initialized.
|
(package private) static boolean |
isXEntityHandle(handle handle)
Check the type of resource in handle.
|
(package private) static boolean |
isXNodeHandle(handle handle)
Check the type of resource in handle.
|
(package private) static boolean |
isXNodeHandleInitialized(handle handle)
Check the type of resource in handle.
|
character |
name()
Get the
name attribute of handle. |
character |
namespacePrefix()
Returns the value of the the NAMESPACE-PREFIX attribute.
|
void |
namespacePrefix(character prefix)
Setter for NAMESPACE-PREFIX attribute.
|
void |
namespacePrefix(java.lang.String prefix)
Setter for NAMESPACE-PREFIX attribute.
|
character |
namespaceURI()
Returns the value of the the NAMESPACE-URI attribute.
|
void |
namespaceURI(character uri)
Setter for NAMESPACE-URI attribute.
|
void |
namespaceURI(java.lang.String uri)
Setter for NAMESPACE-URI attribute.
|
logical |
removeAttribute(character name,
character uri)
Removes the specified attribute.
|
logical |
removeAttribute(NumberType index,
character uri)
Removes the specified attribute.
|
logical |
removeChild(handle hChild)
Removing the specified child from the node.
|
logical |
replaceChild(handle newChildHandle,
handle oldChildHandle)
Removing the specified child from the node.
|
protected boolean |
resourceDelete()
Delete the resource.
|
void |
setNode(org.w3c.dom.Node xnode)
Setting the Element backend object for this XEntity.
|
(package private) static void |
setNodeToHandle(handle handle,
org.w3c.dom.Node node)
Utility method to set up node value into handle.
|
void |
setSubType(character value)
Sets the the subtype of the object.
|
void |
setSubType(java.lang.String value)
Sets the the subtype of the object.
|
protected void |
unsupportedDomError(java.lang.String type)
Process and display unsupported xml sub-type error.
|
addSchemaLocation, addSchemaLocation, addSchemaLocation, addSchemaLocation, getNonamespaceSchemaLocation, hasNextSibling, hasPrevSibling, invalidArgumentAssignError, invalidArgumentError, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, setNonamespaceSchemaLocation, setNonamespaceSchemaLocation, validdelete, firstResource, firstResource, getHead, getNextSibling, getNextSibling, getPrevSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNameReadOnly, hasParent, hasPrivateData, interlink, isChained, lastResource, lastResource, moveInChain, name, name, readOnlyError, readOnlyError, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, implicitDeletion, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildNum, getOwnerDocumentaddSchemaLocation, addSchemaLocation, addSchemaLocation, addSchemaLocation, getNonamespaceSchemaLocation, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, setNonamespaceSchemaLocation, setNonamespaceSchemaLocationid, id, unknown, validresourceTypeallowDeletestatic final java.lang.String IS_INVALID_NODE
private org.w3c.dom.Node xnode
private java.lang.Long uniqueID
private UniqueIdGenerator.IdKind idKind
protected XEntityImpl(UniqueIdGenerator.IdKind idKind)
idKind - The discriminator for unique id allocation.protected XEntityImpl(org.w3c.dom.Node node,
UniqueIdGenerator.IdKind idKind)
node - The DOM XML node object to be associated with the given
handle object.idKind - The discriminator for unique id allocation.static void setNodeToHandle(handle handle, org.w3c.dom.Node node)
handle - The handle class instance to set new node value.node - The node value to set.static boolean isXNodeHandle(handle handle)
true if and only if handle
contains resource of type XNodeRef.handle - The handle class instance to check type.static boolean isXEntityHandle(handle handle)
true if and only if handle
contains resource of type XNodeRef or XDocument.handle - The handle class instance to check type.static boolean isXNodeHandleInitialized(handle handle)
true if and only if handle
contains resource of type XNodeRef.handle - The handle class instance to check type.public org.w3c.dom.Node getNode()
protected boolean resourceDelete()
resourceDelete in class XCommonImpltrue if the resource was deleted.public character getSubType()
getSubType in interface SubTypeAttributepublic void setSubType(character value)
setSubType in interface SubTypeAttributevalue - The new value of the subtype object attribute.public void setSubType(java.lang.String value)
setSubType in interface SubTypeAttributevalue - The new value of the subtype object attribute.public logical insertBefore(handle handle1, handle handle2)
insertBefore in interface XEntityhandle1 - The handle representing the child to insert.handle2 - The handle representing the XML node to be inserted before.true in case of success false otherwise.public integer getNumChildren()
getNumChildren in interface XEntitypublic logical replaceChild(handle newChildHandle, handle oldChildHandle)
replaceChild in interface XEntitynewChildHandle - The handle class instance that represents the node to insert in the tree.oldChildHandle - The handle class instance that represents the node to remove from the tree.true in case of success false otherwise.public logical appendChild(handle hChild)
appendChild in interface XEntityhChild - The valid handle class instance of the child to be appended.true in case of success false otherwise.public logical getChild(handle hChild, int index)
public logical getChild(handle hChild, int64 index)
public logical removeChild(handle hChild)
removeChild in interface XEntityhChild - The valid handle class instance of the child to be removed.true in case of success
false otherwise.public integer getUniqueID()
getUniqueID in interface UniqueIDpublic character namespaceURI()
namespaceURI in interface NamespaceURIpublic void namespaceURI(java.lang.String uri)
HandleChain.readOnlyError(java.lang.String), as this attribute is r/o
for this resource.namespaceURI in interface NamespaceURIuri - Not used.public void namespaceURI(character uri)
HandleChain.readOnlyError(java.lang.String), as this attribute is r/o
for this resource.namespaceURI in interface NamespaceURIuri - Not used.public logical removeAttribute(character name, character uri)
removeAttribute in interface XCommonname - The name of the attribute to remove.uri - The URI of the attribute to remove.true in case of success false otherwise.public logical removeAttribute(NumberType index, character uri)
removeAttribute in interface XCommonindex - The 1-based index of the attribute to remove.uri - The URI of the attribute to remove.true in case of success false otherwise.public void namespacePrefix(java.lang.String prefix)
namespacePrefix in interface NamespaceURIprefix - The new value of the NAMESPACE-PREFIX attribute.public void namespacePrefix(character prefix)
namespacePrefix in interface NamespaceURIprefix - The new value of the NAMESPACE-PREFIX attribute.public character namespacePrefix()
namespacePrefix in interface NamespaceURIpublic character name()
name attribute of handle.name in interface Nameablename in class HandleChainpublic java.lang.String _name()
name attribute of handle as a string._name in class HandleChainpublic void setNode(org.w3c.dom.Node xnode)
xnode - The node value to set.protected void invalidNodeError(java.lang.String attribute)
attribute - The read-only attribute.protected void commonDomError(java.lang.String attribute,
java.lang.String message)
attribute - The read-only attribute.message - Error message to display.protected void commonDomError(java.lang.String attribute,
java.lang.String message,
boolean raiseError)
attribute - The read-only attribute.message - Error message to display.raiseError - Flag indicating if an ERROR condition must be raised.protected void unsupportedDomError(java.lang.String type)
type - The read-only attribute.boolean isInitialized()
true if object is initialized.