Constructor oraxsl()
public oraxsl()
Methods main(String[])
public static void main(java.lang.String[] args) Invokes the oraxsl driver
Parameters
args - command line arguments
SAXAttrList
SAXAttrList
Syntax
public class SAXAttrList extends java.lang.Object implements org.xml.sax.AttributeList
java.lang.Object
|
+--oracle.xml.parser.v2.SAXAttrList
All Implemented Interfaces
org.xml.sax.AttributeList
Description
This class implements the SAXAttributeList interface and also provides Namespace support. Applications that require Namespace support can explicitly cast any attribute list returned by an Oracle parser class toSAXAttrList and use the methods described here.
Member Summary Methods
getExpandedName(int) Get the expanded name for an attribute in the list (by position) getLength() Return the number of attributes in this list.
getLocalName(int) Get the local name for an attribute in the list (by position) getName(int) Return the name of an attribute in this list (by position).
getNamespace(int) Get the resolved namespace for an attribute in the list (by position) getPrefix(int) Get the namespace prefix for an attribute in the list (by position) getQualifiedName(int) Get the qualified name for an attribute in the list (by position) getType(int)
getType(String) Return the type of an attribute in the list (by name).
getValue(int) Return the value of an attribute in the list (by position).
getValue(String) Return the value of an attribute in the list (by name).
SAXAttrList
Methods
getExpandedName(int)
public java.lang.String getExpandedName(int i)
Get the expanded name for an attribute in the list (by position)
Parameters
i - The index of the attribute in the list.
Returns
The expanded name for the attribute
getLength()
public int getLength()
Return the number of attributes in this list.
The SAX parser may provide attributes in any arbitrary order, regardless of the order in which they were declared or specified. The number of attributes may be zero.
Specified By
org.xml.sax.AttributeList.getLength() in interfaceorg.xml.sax.AttributeList
Returns
The number of attributes in the list.
getLocalName(int)
public java.lang.String getLocalName(int i)
Get the local name for an attribute in the list (by position) Inherited Member Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
SAXAttrList
Parameters
i - The index of the attribute in the list.
Returns
The local name for the attribute
getName(int)
public java.lang.String getName(int i)
Return the name of an attribute in this list (by position).
The names must be unique the SAX parser shall not include the same attribute twice. Attributes without values (those declared #IMPLIED without a value specified in the start tag) will be omitted from the list.
If the attribute name has a namespace prefix, the prefix will still be attached.
Specified By
org.xml.sax.AttributeList.getName(int) in interfaceorg.xml.sax.AttributeList
Parameters
i - The index of the attribute in the list (starting at 0).
Returns
The name of the indexed attribute, or null if the index is out of range.
See Also getLength()
getNamespace(int)
public java.lang.String getNamespace(int i)
Get the resolved namespace for an attribute in the list (by position)
Parameters
i - The index of the attribute in the list.
Returns
The resolved namespace for the attribute
SAXAttrList
getPrefix(int)
public java.lang.String getPrefix(int i)
Get the namespace prefix for an attribute in the list (by position)
Parameters
i - The index of the attribute in the list.
Returns
The namespace prefix for the attribute
getQualifiedName(int)
public java.lang.String getQualifiedName(int i)
Get the qualified name for an attribute in the list (by position)
Parameters
i - The index of the attribute in the list.
Returns
The qualified name for the attribute
getType(int)
public java.lang.String getType(int i)
Specified By
org.xml.sax.AttributeList.getType(int) in interfaceorg.xml.sax.AttributeList
getType(String)
public java.lang.String getType(java.lang.String s) Return the type of an attribute in the list (by name).
The return value is the same as the return value for getType(int).
If the attribute name has a namespace prefix in the document, the application must include the prefix here.
SAXAttrList
Specified By
org.xml.sax.AttributeList.getType(String) in interfaceorg.xml.sax.AttributeList
Parameters
name - The name of the attribute.
Returns
The attribute type as a string, or null if no such attribute exists.
See Also getType(int)
getValue(int)
public java.lang.String getValue(int i)
Return the value of an attribute in the list (by position).
If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string separated by whitespace.
Specified By
org.xml.sax.AttributeList.getValue(int) in interfaceorg.xml.sax.AttributeList
Parameters
i - The index of the attribute in the list (starting at 0).
Returns
The attribute value as a string, or null if the index is out of range.
See Also
getLength(), getValue(String)
getValue(String)
public java.lang.String getValue(java.lang.String s) Return the value of an attribute in the list (by name).
The return value is the same as the return value for getValue(int).
SAXAttrList
If the attribute name has a namespace prefix in the document, the application must include the prefix here.
Specified By
org.xml.sax.AttributeList.getValue(String) in interfaceorg.xml.sax.AttributeList
Parameters
i - The index of the attribute in the list.
Returns
The attribute value as a string, or null if no such attribute exists.
See Also getValue(int)
SAXParser
SAXParser
Syntax
public class SAXParser extends XMLParser implementsorg.xml.sax.Parser, oracle.xml.parser.v2.XMLConstants
java.lang.Object
|
+--XMLParser
|
+--oracle.xml.parser.v2.SAXParser
All Implemented Interfaces
org.xml.sax.Parser, oracle.xml.parser.v2.XMLConstants
Description
This class implements an eXtensible Markup Language (XML) 1.0 SAX parser according to the World Wide Web Consortium (W3C) recommendation.
Applications can register a SAX handler to receive notification of various parser events.
Member Summary Constructors
SAXParser() Creates a new parser object.
Methods
setDocumentHandler(DocumentHand ler)
SAX applications can use this to register a new document event handler.
setDTDHandler(DTDHandler) SAX applications can use this to register a new DTD event handler.
setEntityResolver(EntityResolver) SAX applications can use this to register a new entity resolver setErrorHandler(ErrorHandler) SAX applications can use this to register a new error event handler.
Inherited Member Summary
Fields inherited from class XMLParser