Package com.tailf.maapi
Class MaapiSchemas.CSSchema
Object
com.tailf.maapi.MaapiSchemas.CSSchema
- Enclosing class:
- MaapiSchemas
The Schema Container class. Contains the first root node, if available,
of the schema as well as other information about the schema and its named
types.
It is instances of this class that is retrieved using method findSchema
see
MaapiSchemas.findCSSchema(int)
and
MaapiSchemas.findCSSchema(String)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get module nameGet a Hashtable of all named types, the Hashtable has the type names as keys represented as strings and the types as values represented as CSType objects.getNS()
Get Namespace string.int
Get Namespace hashvalueGet Namespace prefix stringGet schema revisionGet first Schema root node.getURI()
Get Schema uri stringint
hashCode()
boolean
Check if Schema is dynamically lalalatoString()
Informative string representation of a CSSchema instance
-
Constructor Details
-
CSSchema
public CSSchema()Constructor for CSSchema
-
-
Method Details
-
getNSHash
public int getNSHash()Get Namespace hashvalue- Returns:
- int hashvalue
-
getNS
Get Namespace string. Usually it is unique string that defines the namespace . (for example: "http://acme.example.com/system")- Returns:
- String Namespace string
-
getURI
Get Schema uri string- Returns:
- String Schema uri string
-
getPrefix
Get Namespace prefix string- Returns:
- String Namespace prefix string
-
getRevision
Get schema revision- Returns:
- String revision
-
getModule
Get module name- Returns:
- String module
-
getRootNode
Get first Schema root node. Note, that a Schema can have several nodes on root level in parallel, this method retrieves the first root node. Also, a schema does not necessarily have any root node then this method returns null.- Returns:
- CSNode the first root node or null if no root node exists
-
getNamedTypes
Get a Hashtable of all named types, the Hashtable has the type names as keys represented as strings and the types as values represented as CSType objects.- Returns:
- Hashtable of named types
-
isDynamic
public boolean isDynamic()Check if Schema is dynamically lalala- Returns:
- boolean true if dynamically lalala
-
toString
Informative string representation of a CSSchema instance -
equals
-
hashCode
public int hashCode()
-