|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ipdr.common.DescriptorContentHandler
public class DescriptorContentHandler
DescriptorContentHandler class implements the SAX ContentHandler interface and defines callback behavior for the SAX callbacks associated with Descriptor Generation.
Field Summary | |
---|---|
protected CompositeDescriptorElement |
baseElement_
To store the Base Schema's covering element. |
protected boolean |
baseSchema_
Flag indicating Base Schema. |
protected CompositeDescriptorElement |
compDescElement_
To store the Composite Descriptor Element being processed. |
protected boolean |
compositeFlag_
Flag indicating the start of Composite Element. |
protected DescriptorElement |
descElement_
To store the Descriptor Element being processed. |
protected java.lang.String |
extensionBase_
To store the Extension Base. |
static java.lang.String |
IPDR_DOC_TAG
String to represent IPDR Doc Tag |
static java.lang.String |
IPDR_SETTLE_TAG
String to represent IPDR Settlement Doc Tag |
protected java.lang.String |
ipdrVersion_
To store the IPDR Version. |
protected java.util.ArrayList |
listDescriptorElements_
ArrayList to store the list of Descriptor Elements. |
protected java.util.ArrayList |
listServiceElements_
ArrayList for storing the Service Elements. |
protected org.xml.sax.Locator |
locator_
Locator object containing the location information. |
protected java.util.ArrayList |
schemaLocation_
ArrayList containing the list of schemas location of the schema file. |
protected boolean |
serviceFlag_
Flag indicating the start of Serivice list. |
protected java.lang.String |
serviceType_
Stores the value of Service Type. |
protected java.lang.String |
targetNameSpaceID_
Stores the Target Namespace ID for a Schema. |
protected java.util.ArrayList |
URIStorage_
To store the nameSpaceInfo objects having uri and prefix. |
Constructor Summary | |
---|---|
DescriptorContentHandler()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int end)
This will report character data (within an element). |
void |
endDocument()
This indicates the end of a Document parse. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName)
Indicates the end of an element (</[element name]>) is reached. |
void |
endPrefixMapping(java.lang.String prefix)
This indicates the end of a prefix mapping, when the namespace reported in a startPrefixMapping(java.lang.String, java.lang.String) callback is no longer
available. |
java.util.ArrayList |
getDescriptorElements()
Returns the Descriptor Elements arraylist. |
java.lang.String |
getExtensionBase()
Method to get the value of Extension Base. |
java.lang.String |
getNameSpaceURI()
Method to get the Target Namespace URI. |
java.util.ArrayList |
getParsedElements()
Method to get the Service Elements. |
java.util.ArrayList |
getSchemaLocation()
Method to get the list of schema locations. |
java.lang.String |
getSchemaVersion()
Method to get the value of IPDR Version. |
java.lang.String |
getServiceType()
Method to get the Service Type. |
java.util.ArrayList |
getURIStorage()
Method to get the stored URIs from header. |
void |
ignorableWhitespace(char[] ch,
int start,
int end)
This will report whitespace that can be ignored in the originating document. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
This will indicate that a processing instruction (other than the XML declaration) has been encountered. |
void |
setBaseSchemaFlag(boolean flag)
Method to set flag indicating if Base Schema. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Provide reference to 'Locator' which provides information about where in a document callbacks occur. |
void |
setSchemaVersion(java.lang.String ver)
Method to set the value of IPDR Version |
void |
skippedEntity(java.lang.String name)
This will report an entity that is skipped by the parser. |
void |
startDocument()
This indicates the start of a Document parse. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes atts)
This reports the occurrence of an actual element. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
This will indicate the beginning of an XML Namespace prefix mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.xml.sax.Locator locator_
protected java.util.ArrayList schemaLocation_
protected java.util.ArrayList listDescriptorElements_
protected java.util.ArrayList listServiceElements_
protected java.util.ArrayList URIStorage_
protected java.lang.String serviceType_
protected java.lang.String targetNameSpaceID_
protected java.lang.String extensionBase_
protected java.lang.String ipdrVersion_
protected boolean serviceFlag_
protected boolean compositeFlag_
protected DescriptorElement descElement_
protected CompositeDescriptorElement compDescElement_
protected CompositeDescriptorElement baseElement_
protected boolean baseSchema_
public static final java.lang.String IPDR_DOC_TAG
public static final java.lang.String IPDR_SETTLE_TAG
Constructor Detail |
---|
public DescriptorContentHandler()
Method Detail |
---|
public java.util.ArrayList getSchemaLocation()
public java.util.ArrayList getDescriptorElements()
public java.util.ArrayList getParsedElements()
public java.util.ArrayList getURIStorage()
public java.lang.String getServiceType()
public java.lang.String getNameSpaceURI()
public java.lang.String getExtensionBase()
public java.lang.String getSchemaVersion()
public void setSchemaVersion(java.lang.String ver)
ver
- The IPDR Versionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
locator
- 'Locator' object tied to callback processpublic void setBaseSchemaFlag(boolean flag)
flag
- Boolean indication if Base Schemapublic void startDocument() throws org.xml.sax.SAXException
setDocumentLocator(org.xml.sax.Locator)
>
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
target
- String target of PIdata
- String containing all data sent to the PI.
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
) occurs.
startPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- String prefix used for the namespace being reporteduri
- String URI for the namespace being reportedpublic void endPrefixMapping(java.lang.String prefix)
startPrefixMapping(java.lang.String, java.lang.String)
callback is no longer
available.
endPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- String of namespace being reportedpublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
namespaceURI
- String namespace URI this element is associated
with, or a empty string.localName
- String XML 1.0 version of element name:
[namespace prefix]:[localName]rawName
- String name of element (with no namespace
prefix, if one is present)atts
- Attributes list for this element
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
namespaceURI
- String URI of namespace this element is associated withlocalName
- String name of element in XML 1.0 formrawName
- String name of element without prefix
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void characters(char[] ch, int start, int end) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- char[] character array with character datastart
- int index in array where data starts.end
- int index in array where data ends.
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void ignorableWhitespace(char[] ch, int start, int end) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ch
- char[] character array with character datastart
- int index in array where data starts.end
- int index in array where data ends.
org.xml.sax.SAXException
- when an exception occurs during parsingpublic void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
name
- String name of entity being skipped
org.xml.sax.SAXException
- when an exception occurs during parsing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |