|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ozoneDB.OzoneObject | +--org.ozoneDB.xml.dom.NodeImpl | +--org.ozoneDB.xml.dom.ParamEntity
Implements a parameter entity.
Notes:
NodeImpl.PARAM_ENTITY_NODE
DocumentType
NodeImpl
,
Serialized FormField Summary | |
static short |
STATE_DECLARED
Entity has been declared but not parsed. |
static short |
STATE_NOT_FOUND
Entity not found. |
static short |
STATE_PARSED
Entity has been parsed. |
static short |
STATE_PARSING
Entity is being parsed. |
Fields inherited from class org.ozoneDB.xml.dom.NodeImpl |
ATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODE |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
ParamEntity()
|
|
ParamEntity(DocumentImpl owner,
java.lang.String name,
java.lang.String internalValue)
Constructs an internal parameter entity. |
|
ParamEntity(DocumentImpl owner,
java.lang.String name,
java.lang.String systemId,
java.lang.String publicId)
Constructs an external parameter entity. |
Method Summary | |
java.lang.Object |
clone()
|
void |
cloneInto(NodeProxy into,
boolean deep)
This clone method is called after a new node has been constructed to copy the contents of this node into the new one. |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getInternal()
|
short |
getNodeType()
Abstract method must be implemented by each node class. |
java.lang.String |
getPublicId()
|
short |
getState()
Returns the parsing state of this entity. |
java.lang.String |
getSystemId()
|
void |
init(DocumentProxy owner,
java.lang.String name)
|
void |
init(DocumentProxy owner,
java.lang.String name,
java.lang.String value)
|
void |
init(DocumentProxy owner,
java.lang.String name,
java.lang.String systemId,
java.lang.String publicId)
|
boolean |
isInternal()
Returns true if entity is an internal entity. |
void |
setInternal(java.lang.String internalValue)
|
void |
setPublicId(java.lang.String publicId)
|
void |
setState(short newState)
Changes the parsing state of this entity. |
void |
setSystemId(java.lang.String systemId)
|
java.lang.String |
toString()
|
Methods inherited from class org.ozoneDB.xml.dom.NodeImpl |
appendChild, castNewChild, castOldChild, getAttributes, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, init, insertBefore, isReadOnly, isSupported, normalize, notifyIterators, readExternal, removeChild, replaceChild, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setReadOnly, supports, writeExternal |
Methods inherited from class org.ozoneDB.OzoneObject |
container, database, deleteRecursive, getObjectID, handle, hashCode, onCreate, onDelete, self, setContainer, toXML |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Methods inherited from interface org.ozoneDB.xml.dom.NodeProxy |
getChild, getChildCount, getChildNodes, init, isReadOnly, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPreviousSibling, setReadOnly |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Field Detail |
public static final short STATE_DECLARED
public static final short STATE_PARSING
public static final short STATE_PARSED
public static final short STATE_NOT_FOUND
Constructor Detail |
public ParamEntity(DocumentImpl owner, java.lang.String name, java.lang.String systemId, java.lang.String publicId)
owner
- The owner documentname
- The entity namesystemId
- The system identifierpublicId
- The public identifier, if specifiedpublic ParamEntity(DocumentImpl owner, java.lang.String name, java.lang.String internalValue)
owner
- The owner documentname
- The entity nameinternalValue
- The unparsed entity valuepublic ParamEntity()
Method Detail |
public short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
Node.getNodeType()
public java.lang.String getPublicId()
getPublicId
in interface ParamEntityProxy
public void setPublicId(java.lang.String publicId)
setPublicId
in interface ParamEntityProxy
public java.lang.String getSystemId()
getSystemId
in interface ParamEntityProxy
public void setSystemId(java.lang.String systemId)
setSystemId
in interface ParamEntityProxy
public boolean isInternal()
isInternal
in interface ParamEntityProxy
public short getState()
public void setState(short newState)
setState
in interface ParamEntityProxy
newState
- New state of entitypublic final java.lang.String getInternal()
getInternal
in interface ParamEntityProxy
public final void setInternal(java.lang.String internalValue)
setInternal
in interface ParamEntityProxy
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final java.lang.Object clone()
clone
in class java.lang.Object
public final org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
public java.lang.String toString()
toString
in class org.ozoneDB.OzoneObject
public void cloneInto(NodeProxy into, boolean deep)
NodeImpl
Object.equals(java.lang.Object)
).
into must be a valid node of the exact same class as this one. deep is true if deep cloning (includes all children nodes) is to be performed. If deep is false, the clone might not pass the equality test.
Derived classes override and call this method to add per-class variable
copying. This method is called by Node.cloneNode(boolean)
and the default
Object.clone()
method.
Contents cloning duplicates the node's name and value, and its children. It does not duplicate it's context, that is, the node's parent or sibling. Initially a clone node has no parents or siblings. However, the node does belong to the same document, since all nodes must belong to some document. The cloned node is never read-only.
cloneInto
in interface NodeProxy
cloneInto
in class NodeImpl
into
- A node into which to duplicate this onedeep
- True if deep cloning is requiredpublic void init(DocumentProxy owner, java.lang.String name)
public void init(DocumentProxy owner, java.lang.String name, java.lang.String value)
init
in interface ParamEntityProxy
public void init(DocumentProxy owner, java.lang.String name, java.lang.String systemId, java.lang.String publicId)
init
in interface ParamEntityProxy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |