|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ipdr.common.Descriptor
public class Descriptor
This class will generate an object of CompositeType from schema file. Implements interfaces ContentHandler, XMLReader and ErrorHandler of SAX package of Xerces Parser for Java.
| Field Summary | |
|---|---|
protected DescriptorContentHandler |
contentHandler_
Object of DescriptorContentHandler class. |
protected CompositeDescriptorElement |
ipdrBaseElement_
To store the IPDR Base Element. |
static java.lang.String |
MANDATORY
String containing "Mandatory". |
static java.lang.String |
OPTIONAL
String containing "Optional". |
protected java.lang.String |
PARSER_STRING
String containing the SAX parser class name. |
protected java.lang.String |
servType_
To store the Service Type. |
protected boolean |
setDerivedTypeFlag_
Flag to indicate parseSchema is called without optional attributes. |
protected java.lang.String |
targetNameSpace_
To store the Target NameSpace. |
| Constructor Summary | |
|---|---|
Descriptor()
|
|
| Method Summary | |
|---|---|
OpenType[] |
createOpenTypes(java.util.ArrayList schemaArray)
This mehtod creates an array of OpenType objects corresponding to the list of schema elements passed to it. |
CompositeType |
generateDescriptor(java.lang.String[] uriArray)
This method is used to take the schema whose URL is passed as input parameter and returns a CompositeType object. |
DescriptorContentHandler |
getContentHandler()
Method to get the DescriptorContentHandler class |
java.lang.String |
getIPDRVersion()
Method to get the IPDR Version |
java.lang.String |
getServType()
Method to get the Service Type. |
java.lang.String |
getTargetNameSpace()
Method to get the Target NameSpace. |
java.util.ArrayList |
parseSchema(java.lang.String uri)
This method is called by descriptorGeneration() method to parse the schema and returns an object of ArrayList. |
java.util.ArrayList |
parseSchema(java.lang.String uri,
java.lang.String[] selectedOptionalAttributes)
This method is called by descriptorGeneration() method to parse the schema and returns an object of ArrayList. |
protected void |
registerParser(java.lang.String uri)
This method is called by parseSchema() method to register SAX API This method returns nothing. |
void |
setIPDRVersion(java.lang.String ver)
Method to set the IPDR Version |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPTIONAL
public static final java.lang.String MANDATORY
protected final java.lang.String PARSER_STRING
protected DescriptorContentHandler contentHandler_
protected java.lang.String servType_
protected java.lang.String targetNameSpace_
protected boolean setDerivedTypeFlag_
protected CompositeDescriptorElement ipdrBaseElement_
| Constructor Detail |
|---|
public Descriptor()
| Method Detail |
|---|
public java.lang.String getServType()
public java.lang.String getTargetNameSpace()
public DescriptorContentHandler getContentHandler()
public java.lang.String getIPDRVersion()
public void setIPDRVersion(java.lang.String ver)
ver - The IPDR Version
public CompositeType generateDescriptor(java.lang.String[] uriArray)
throws IPDRException,
org.xml.sax.SAXException,
java.io.IOException,
BadCompositeException
uriArray - URIs of files to parse.
IPDRException - when a IPDR functionality related exception occurs
org.xml.sax.SAXException - when an exception occurs during parsing
java.io.IOException - when an exception occurs during IO
BadCompositeException - when an exception occurs during the
creation of the Composite Type object
public java.util.ArrayList parseSchema(java.lang.String uri)
throws IPDRException,
org.xml.sax.SAXException,
java.io.IOException
uri - URI of file to parse.
IPDRException - when a IPDR functionality related exception occurs
org.xml.sax.SAXException - when an exception occurs during parsing
java.io.IOException - when an exception occurs during IO
public java.util.ArrayList parseSchema(java.lang.String uri,
java.lang.String[] selectedOptionalAttributes)
throws IPDRException,
org.xml.sax.SAXException,
java.io.IOException
uri - URI of file to parse.
IPDRException - when a IPDR functionality related exception occurs
org.xml.sax.SAXException - when an exception occurs during parsing
java.io.IOException - when an exception occurs during IO
protected void registerParser(java.lang.String uri)
throws IPDRException,
org.xml.sax.SAXException,
java.io.IOException
uri - URI of file to parse.
IPDRException - when a IPDR functionality related exception occurs
org.xml.sax.SAXException - when an exception occurs during parsing
java.io.IOException - when an exception occurs during IO
public OpenType[] createOpenTypes(java.util.ArrayList schemaArray)
throws IPDRException,
BadCompositeException
schemaArray - List of Schema Elements
IPDRException - when a IPDR functionality related exception occurs
BadCompositeException - when an exception occurs during the
creation of the Composite Type object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||