|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.schema.GlobalDefMap
public class GlobalDefMap
Stores GlobalDef instances, which are wrappers for important elements of an XML Schema, including
The definitions are stored in a two-level mapping. The first level is by namespaceUri, so there is a map for each namespace. The individual namespace maps store all the GlobalDefs for that namespace. To access a particular globalDefinition, the name of the definition (e.g., the type name) is required, as well as the namespaceUri for the namespace in which the definition is defined.
This class also contains a NamespaceRegistry that stores the namespaces defined at the global level of the schema. NOTE: it is possible that schemafiles define and use namespaces that are not visible at the top-level of the schema. In this case, there will be entries in the GlobalDefMap for these namespaces, but the namespaces themselves will not be registered in the NamespaceRegistry.
Constructor Summary | |
---|---|
GlobalDefMap()
|
Method Summary | |
---|---|
boolean |
containsKey(String key)
Description of the Method |
void |
destroy()
Should release resources and call the finalize method. |
List |
getComplexTypes()
|
List |
getDefsOfType(int type)
|
NamespaceRegistry |
getNamespaces()
|
List |
getNsKeys()
Method to retrieve the list of names used to identify desired values. |
Map |
getNsMap(String nsUri)
|
List |
getNsValues(String nsUri)
Retrieves GlobalDefs associated with specified Namespace. |
List |
getSimpleTypes()
|
GlobalDef |
getValue(String name)
Accessor method for retrieving a specific named GlobalDef. |
GlobalDef |
getValue(String name,
Namespace ns)
|
GlobalDef |
getValue(String name,
String nsUri)
|
List |
getValues()
|
boolean |
init()
Should initialize members as required. |
static void |
setDebug(boolean d)
|
void |
setValue(String name,
GlobalDef def,
Namespace ns)
Inserts a GlobalDef instance in the GlobalDefMap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalDefMap()
Method Detail |
---|
public boolean init()
public NamespaceRegistry getNamespaces()
public void destroy()
public boolean containsKey(String key)
key
- Description of the Parameter
public List getNsKeys()
public List getValues()
public Map getNsMap(String nsUri)
public List getSimpleTypes()
public List getComplexTypes()
public List getDefsOfType(int type)
public List getNsValues(String nsUri)
public GlobalDef getValue(String name)
name
- Description of the Parameter
public GlobalDef getValue(String name, Namespace ns)
public GlobalDef getValue(String name, String nsUri)
public void setValue(String name, GlobalDef def, Namespace ns) throws Exception
name
- The GlobalDef namedef
- The globalDef object
Exception
- if the GlobalDef is already in the mappublic static void setDebug(boolean d)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |