|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ipdr.common.Schema
public class Schema
This class is added for schema processing, creating schema object. schemaValidationFlag_ is maintained internally by the schema class. Value of this flag can't be changed by the calling application. This will be set to TRUE only when schemaLookup_ is populated properly (with out any exception) using setSchemaData() method.
Field Summary | |
---|---|
protected SchemaContentHandler |
contentHandler_
Object of SchemaContentHandler class. |
protected java.lang.String |
defaultNameSpace_
This will contain the Default NameSpace as passed in setSchemaData() method. |
protected CompositeSchemaElement |
ipdrBaseElement_
To store the IPDR Base Element. |
protected NameSpaceInfo[] |
otherNameSpaces_
This will contain the Other NameSpaces as passed in setSchemaData() method. |
protected java.lang.String[] |
parsedSchemaArray_
Array to store the parsed Schema URIs. |
protected java.lang.String |
PARSER_STRING
String containing the SAX parser class name. |
protected boolean |
reloadSchemaFlag_
Flag indicating reload schema. |
protected java.lang.String[] |
schemaServiceDefURIs_
This will contain the Service Definition URIs as passed in setSchemaData() method. |
protected boolean |
schemaValidationFlag_
This flag will contain "true" or "false" value on the basis of which validateAgainstSchema() method will be called. |
protected java.lang.String |
schemaVersion_
String containing the IPDR version obtained from Schema. |
protected java.lang.String |
servType_
String contianing the Service Type of Schema. |
protected boolean |
setDerivedTypeFlag_
Flag to indicate parseSchema is called without optional attributes. |
boolean |
settlementDoc_
Flag indicating Settlement Doc. |
protected java.lang.String |
targetNameSpace_
String contianing the Target NameSpace of Schema |
Constructor Summary | |
---|---|
Schema()
Constructor. |
Method Summary | |
---|---|
SchemaContentHandler |
getContentHandler()
Method to get the object of SchemaContentHandler class. |
java.lang.String |
getDefaultNameSpaceURI()
Method to get the Default NameSpace URI. |
CompositeSchemaElement |
getIPDRBaseElement()
Method to get the HashMap of element names and their corresponding OpenType objects. |
NameSpaceInfo[] |
getOtherNameSpaces()
Method to get the Other NameSpaces. |
boolean |
getSchemaValidationFlag()
This method returns the state of Schema Validation Flag. |
java.lang.String |
getSchemaVersion()
Method to get the IPDR Version obtained from the schema. |
java.lang.String[] |
getServiceDefinitionURIs()
Method to get the schema's Service Definition URIs. |
java.lang.String |
getServType()
Method to get the Service Type value. |
java.lang.String |
getTargetNameSpace()
Method to get the Target Namespace value. |
boolean |
isSettlementDoc()
Method to find out if the base schema is a Settlement Document schema. |
java.util.ArrayList |
parseSchema(java.lang.String uri)
This method parses the schema and returns an list of Schema Elements. |
protected void |
registerParser(java.lang.String uri)
This method is called by parseSchema() method to register SAX API. |
void |
setSchemaData(NameSpaceInfo[] otherNameSpaces,
java.lang.String[] serviceDefinitionURIs,
java.lang.String defaultNameSpaceURI)
This method populates the Schema Lookups HashMap. |
boolean |
testURI(java.lang.String[] servDefURI)
This method checks for presence of current set of URIs in the previous set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String PARSER_STRING
protected boolean schemaValidationFlag_
protected CompositeSchemaElement ipdrBaseElement_
protected NameSpaceInfo[] otherNameSpaces_
protected java.lang.String[] schemaServiceDefURIs_
protected java.lang.String defaultNameSpace_
protected boolean reloadSchemaFlag_
public boolean settlementDoc_
protected java.lang.String[] parsedSchemaArray_
protected java.lang.String schemaVersion_
protected SchemaContentHandler contentHandler_
protected java.lang.String servType_
protected java.lang.String targetNameSpace_
protected boolean setDerivedTypeFlag_
Constructor Detail |
---|
public Schema()
Method Detail |
---|
public java.lang.String getServType()
public java.lang.String getTargetNameSpace()
public SchemaContentHandler getContentHandler()
public NameSpaceInfo[] getOtherNameSpaces()
public java.lang.String[] getServiceDefinitionURIs()
public java.lang.String getDefaultNameSpaceURI()
public CompositeSchemaElement getIPDRBaseElement()
public java.lang.String getSchemaVersion()
public boolean isSettlementDoc()
public boolean getSchemaValidationFlag()
public void setSchemaData(NameSpaceInfo[] otherNameSpaces, java.lang.String[] serviceDefinitionURIs, java.lang.String defaultNameSpaceURI) throws IPDRException, org.xml.sax.SAXException
otherNameSpaces
- array of Other NameSpacesserviceDefinitionURIs
- array of Service Definition URIsdefaultNameSpaceURI
- the Default NameSpace URI
IPDRException
- when a IPDR functionality related exception occurs
org.xml.sax.SAXException
- when an exception occurs during parsingpublic 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 IOprotected void registerParser(java.lang.String uri) throws IPDRException, org.xml.sax.SAXException, java.io.IOException
uri
- URI of file to parse
IPDRException
org.xml.sax.SAXException
java.io.IOException
public boolean testURI(java.lang.String[] servDefURI) throws IPDRException
servDefURI
- String Array of URIs to parse.
IPDRException
- when a IPDR functionality related exception occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |