oracle.xml.parser.v2
Class AttrDecl
java.lang.Object
|
+--oracle.xml.parser.v2.XMLNode
|
+--oracle.xml.parser.v2.AttrDecl
- public class AttrDecl
- extends XMLNode
- implements XMLConstants, CXMLConstants, java.io.Externalizable
This class hold information about each attribute declared in an attribute
list in the Document Type Definition.
- See Also:
- Serialized Form
Field Summary |
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 |
Fields inherited from class oracle.xml.parser.v2.XMLNode |
ATTRDECL,
Auto_Events,
capturing,
DOMAttrModified,
DOMCharacterDataModified,
DOMNodeInserted,
DOMNodeInsertedIntoDocument,
DOMNodeRemoved,
DOMNodeRemovedFromDocument,
DOMSubtreeModified,
ELEMENTDECL,
noncapturing,
RANGE_DELETE_EVENT,
RANGE_DELETETEXT_EVENT,
RANGE_INSERT_EVENT,
RANGE_INSERTTEXT_EVENT,
RANGE_REPLACE_EVENT,
RANGE_SETTEXT_EVENT,
TRAVERSAL_DELETE_EVENT,
TRAVERSAL_REPLACE_EVENT,
XMLDECL_NODE |
Fields inherited from interface oracle.xml.parser.v2.XMLConstants |
AMP,
ASTERISK,
AUTO_VALIDATION,
cANY,
cATTLIST,
cCDATA,
cCDATAEND,
cCDATASTART,
cCOMMENTEND,
cCOMMENTSTART,
cDECCREF,
cDECLSTART,
cDOCTYPE,
cELEMENT,
cEMPTY,
cEMPTYTAGEND,
cENCODING,
cENDTAGSTART,
cENTITIES,
cENTITY,
cFIXED,
cHEXCREF,
cID,
cIDREF,
cIDREFS,
cIGNORE,
cIMPLIED,
cINCLUDE,
cNDATA,
cNMTOKEN,
cNMTOKENS,
cNOTATION,
COLON,
COMMA,
cPIEND,
cPISTART,
cPUBLIC,
cREQUIRED,
cSTANDALONE,
cSYSTEM,
cVERSION,
cXML,
DEFAULT_HASHSIZE_BIG,
DEFAULT_HASHSIZE_SMALL,
DEFAULT_PREFIX,
DOUBLEQUOTE,
DTD_VALIDATION,
EOF,
EQ,
ERROR,
EXT_GEN_ENTITY_FEATURE,
EXT_PAR_ENTITY_FEATURE,
FATAL_ERROR,
FDIGIT,
FLETTER,
FMISCNAME,
FSTARTNAME,
FWHITESPACE,
HASH,
ICOUNT,
ISTART,
LEFTSQB,
LPAREN,
nameCDATA,
nameCOMMENT,
nameDOCUMENT,
nameDOCUMENTFRAGMENT,
nameENCODING,
nameNameSpace,
NAMESPACE_FEATURE,
NAMESPACE_PREFIX_FEATURE,
nameSpaceSeparator,
nameSTANDALONE,
nameTEXT,
nameVERSION,
nameXML,
nameXMLLang,
nameXMLNamespace,
nameXMLNSNamespace,
nameXMLSpace,
nameXSLPI,
NONVALIDATING,
OR,
PARTIAL_VALIDATION,
PERCENT,
PLUS,
QMARK,
QUOTE,
RIGHTSQB,
RPAREN,
SCHEMA_LAX_VALIDATION,
SCHEMA_STRICT_VALIDATION,
SCHEMA_VALIDATION,
SEMICOLON,
SLASH,
STRING_INTERN_FEATURE,
TAGEND,
TAGSTART,
VALIDATION_FEATURE,
WARNING |
Fields inherited from interface oracle.xml.comp.CXMLConstants |
ATTR_DEF,
ATTR_TOKEN,
ATTRDECL_DEF,
CDATA_DEF,
CHAR_DEF,
COMMENT_DEF,
CXML_VERSION,
cXMLFILE,
cXMLFILE_LEN,
DEBUG,
DTD_DEF,
ELEMENTDECL_DEF,
END,
ENTITY_DEF,
ENTITYREF_DEF,
META_ID_MAX,
names,
NOTATION_DEF,
NS_DEF,
NULLSTR,
PI_DEF,
PREFIX_DEF,
TAG_DEF,
TAG_TOKEN,
TOKEN_ONLY,
XMLDECL_DEF |
Constructor Summary |
AttrDecl()
Default constructor. |
Method Summary |
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 the Attr Decl. |
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 |
readExternal(oracle.xml.io.XMLObjectInput in,
oracle.xml.comp.CXMLContext cxml)
This method reads the ElementDecl content |
static java.lang.String |
typeToString(int type)
Gets a string representation of the attribute type |
void |
writeExternal(java.io.ObjectOutput outArg)
This method saves the state of the object by creating a binray
compressed stream with information about this object. |
Methods inherited from class oracle.xml.parser.v2.XMLNode |
addEventListener,
appendChild,
cloneNode,
dispatchEvent,
getAttributes,
getChildNodes,
getColumnNumber,
getDebugMode,
getFirstChild,
getLastChild,
getLineNumber,
getLocalName,
getNamespace,
getNamespaceURI,
getNextSibling,
getNodeLocalName,
getNodePrefix,
getNodeValue,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getProperty,
getSystemId,
getText,
hasAttributes,
hasChildNodes,
insertBefore,
isNodeFlag,
isSupported,
normalize,
print,
print,
print,
readChildNodes,
removeChild,
removeEventListener,
replaceChild,
reportSAXEvents,
resetNodeFlag,
selectNodes,
selectNodes,
selectNodes,
selectSingleNode,
selectSingleNode,
setDebugInfo,
setNodeFlag,
setNodeValue,
setPrefix,
setProperty,
supports,
transformNode,
valueOf,
valueOf |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CDATA
public static final int CDATA
- AttType - StringType - CDATA
ID
public static final int ID
- AttType - TokenizedType - ID
IDREF
public static final int IDREF
- AttType - TokenizedType - ID reference
IDREFS
public static final int IDREFS
- AttType - TokenizedType - ID references
ENTITY
public static final int ENTITY
- AttType - TokenizedType - Entity
ENTITIES
public static final int ENTITIES
- AttType - TokenizedType - Entities
NMTOKEN
public static final int NMTOKEN
- AttType - TokenizedType - Name token
NMTOKENS
public static final int NMTOKENS
- AttType - TokenizedType - Name tokens
NOTATION
public static final int NOTATION
- AttType - EnumeratedType - Notation
ENUMERATION
public static final int ENUMERATION
- AttType - EnumeratedType - Enumeration
DEFAULT
public static final int DEFAULT
- Attribute presence - Default
REQUIRED
public static final int REQUIRED
- Attribute presence - Required
IMPLIED
public static final int IMPLIED
- Attribute presence - Implied
FIXED
public static final int FIXED
- Attribute presence - Fixed
AttrDecl
public AttrDecl()
- Default constructor. Note that this constructor is used only
during deserialization/decompression of this DOM node. In order to
deserialize this node to construct the DOM node from the serialized/
compressed stream, it is required to create a handle of the object.
getNodeType
public short getNodeType()
- Gets a code representing the type of the underlying object
- Overrides:
- getNodeType in class XMLNode
- Returns:
- type of the node
getNodeName
public java.lang.String getNodeName()
- Gets the name of the Attr Decl.
- Overrides:
- getNodeName in class XMLNode
- Returns:
- name of the node
getAttrType
public int getAttrType()
- Gets attribute type
- Returns:
- The type of the attribute
getAttrPresence
public int getAttrPresence()
- Gets attribute presence
- Returns:
- The presence of the attribute
getDefaultValue
public java.lang.String getDefaultValue()
- Gets attribute default value
- Returns:
- The default value of the attribute
getEnumerationValues
public java.util.Vector getEnumerationValues()
- Gets attribute values
- Returns:
- The values of the attribute as an
Enumeration
typeToString
public static java.lang.String typeToString(int type)
- Gets a string representation of the attribute type
- Returns:
- A string representing the attribute type
writeExternal
public void writeExternal(java.io.ObjectOutput outArg)
throws java.io.IOException
- This method saves the state of the object by creating a binray
compressed stream with information about this object.
- Specified by:
- writeExternal in interface java.io.Externalizable
- Overrides:
- writeExternal in class XMLNode
- Parameters:
out
- The ObjectOutput stream used to write the serialized/
compressed stream.- Throws:
- java.io.IOException - is thrown when there is an exception while
writing the serialized/compressed stream.
readExternal
public void readExternal(java.io.ObjectInput inArg)
throws java.io.IOException,
java.lang.ClassNotFoundException
- This method reads the information written in the compressed stream
by writeExternal method and restores the object correspondingly.
- Specified by:
- readExternal in interface java.io.Externalizable
- Overrides:
- readExternal in class XMLNode
- Parameters:
in
- the ObjectInput stream used for reading the compressed
stream.- Throws:
- 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
readExternal
public void readExternal(oracle.xml.io.XMLObjectInput in,
oracle.xml.comp.CXMLContext cxml)
throws java.io.IOException,
java.lang.ClassNotFoundException
- This method reads the ElementDecl content
- Overrides:
- readExternal in class XMLNode
- Parameters:
in
- XMLObjectInput the input streaminp
- the byte which is already read is passed to this functioncxmlContent
- the serialization object content information