public class AttrDecl extends XMLNode implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
static int |
CDATA
AttType - StringType - CDATA
|
static int |
DEFAULT
Attribute presence - Default
|
static int |
ENTITIES
AttType - TokenizedType - Entities
|
static int |
ENTITY
AttType - TokenizedType - Entity
|
static int |
ENUMERATION
AttType - EnumeratedType - Enumeration
|
static int |
FIXED
Attribute presence - Fixed
|
static int |
ID
AttType - TokenizedType - ID
|
static int |
IDREF
AttType - TokenizedType - ID reference
|
static int |
IDREFS
AttType - TokenizedType - ID references
|
static int |
IMPLIED
Attribute presence - Implied
|
static int |
NMTOKEN
AttType - TokenizedType - Name token
|
static int |
NMTOKENS
AttType - TokenizedType - Name tokens
|
static int |
NOTATION
AttType - EnumeratedType - Notation
|
static int |
REQUIRED
Attribute presence - Required
|
ATTRDECL, Auto_Events, capturing, DOMAttrModified, DOMCharacterDataModified, DOMNodeInserted, DOMNodeInsertedIntoDocument, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMSubtreeModified, ELEMENTDECL, KEPT_NODE, NAMESPACE_NODE, noncapturing, RANGE_DELETE_EVENT, RANGE_DELETETEXT_EVENT, RANGE_INSERT_EVENT, RANGE_INSERTTEXT_EVENT, RANGE_REPLACE_EVENT, RANGE_SETTEXT_EVENT, SCHEMA_NILLED, TRAVERSAL_DELETE_EVENT, TRAVERSAL_REPLACE_EVENT, XMLDECL_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
VAL_FALSE, VAL_INCOMPLETE, VAL_NS_WF, VAL_SCHEMA, VAL_TRUE, VAL_UNKNOWN, VAL_WF
Constructor and Description |
---|
AttrDecl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttrPresence()
Gets attribute presence
|
int |
getAttrType()
Gets attribute type
|
java.lang.String |
getDefaultValue()
Gets attribute default value
|
java.util.Vector |
getEnumerationValues()
Gets attribute values
|
java.lang.String |
getNodeName()
Gets the name of this node, depending on its type
|
short |
getNodeType()
Gets a code representing the type of the underlying object
|
void |
readExternal(java.io.ObjectInput inArg)
This method reads the information written in the compressed stream by writeExternal method and restores the object correspondingly.
|
void |
writeExternal(java.io.ObjectOutput outArg)
This method saves the state of the object by creating a binary compressed stream with information about this object.
|
addEventListener, addText, appendChild, canAppendChild, canInsertBefore, canRemoveChild, canReplaceChild, cloneNode, dispatchEvent, equals, getAttributes, getChildNodes, getColumnNumber, getDebugMode, getEnumeratedValues, getFirstChild, getFirstChildAsOffset, getLastChild, getLineNumber, getLocalName, getNamespaceURI, getNextSibling, getNextSiblingAsOffset, getNodeValue, getNodeValueAsBinaryStream, getNodeValueAsBinaryStream, getNodeValueAsCharacterStream, getNodeValueAsCharacterStream, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getPrimitiveTypeId, getProperty, getSystemId, getText, getXMLError, hasAttributes, hasChildNodes, hashCode, insertBefore, isDocumentFlag, isNodeFlag, isSupported, nodeValidity, normalize, print, print, print, print, removeChild, removeEventListener, replaceChild, reportSAXEvents, resetNodeFlag, selectNodes, selectNodes, selectSingleNode, selectSingleNode, setDebugInfo, setNodeFlag, setNodeFlag, setNodeFlag, setNodeValue, setNodeValueAsBinaryStream, setNodeValueAsBinaryStream, setNodeValueAsCharacterStream, setNodeValueAsCharacterStream, setPrefix, setProperty, transformNode, valueOf, valueOf, xdbGetNodeId
public static final int CDATA
public static final int ID
public static final int IDREF
public static final int IDREFS
public static final int ENTITY
public static final int ENTITIES
public static final int NMTOKEN
public static final int NMTOKENS
public static final int NOTATION
public static final int ENUMERATION
public static final int DEFAULT
public static final int REQUIRED
public static final int IMPLIED
public static final int FIXED
public AttrDecl()
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class XMLNode
public java.lang.String getNodeName()
getNodeName
in interface Node
getNodeName
in class XMLNode
public int getAttrType()
public int getAttrPresence()
public java.lang.String getDefaultValue()
getDefaultValue
in interface NodeEditVAL
getDefaultValue
in class XMLNode
public java.util.Vector getEnumerationValues()
Enumeration
public void writeExternal(java.io.ObjectOutput outArg) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class XMLNode
outArg
- The ObjectOutput stream used to write the serialized/ compressed stream.java.io.IOException
- is thrown when there is an exception while writing the serialized/compressed stream.public void readExternal(java.io.ObjectInput inArg) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class XMLNode
inArg
- the ObjectInput stream used for reading the compressed stream.java.io.IOException
- is thrown when there is an error in reading the input stream.java.lang.ClassNotFoundException
- is thrown when the class is not found