Package org.dlese.dpc.xml.schema
Class SchemaNodeMap
java.lang.Object
org.dlese.dpc.xml.schema.SchemaNodeMap
Map structure holding
SchemaNode instances,
keyed by XPaths to the Nodes.All Nodes (Elements invalid input: '&' Attributes) defined by the Schema will be represented in the SchemaNodeMap. The keys of the SchemaNodeMap are normalized in the sense that there is only one entry for a repeating element (i.e., no Xpath key will contain indexing).
- Author:
- ostwald
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassComparator to sort the keyMap in document order. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Description of the Methodvoiddestroy()Should release resources and call the finalize method.getKeys()Method to retrieve the list of names used to identify desired values.getKeys(short nodeType) Method to retrieve the list of names used to identify desired values of a particular type.Accessor method for retrieving a specific named GlobalDef.Method to retrieve the list of values stored in this map.booleaninit()Should initialize members as required.static voidsetDebug(boolean d) Sets the debug attribute of the SchemaNodeMap classvoidsetMap()Use this method to populate the XMLMap with the desired named values.voidsetValue(String path, SchemaNode schemaNode) Setter method for updating a specific named value.toString()Description of the Method
-
Constructor Details
-
SchemaNodeMap
public SchemaNodeMap()Constructor for the SchemaNodeMap object
-
-
Method Details
-
init
public boolean init()Should initialize members as required.- Returns:
- true if intialization successful, false otherwise
-
destroy
public void destroy()Should release resources and call the finalize method. -
setMap
public void setMap()Use this method to populate the XMLMap with the desired named values. -
getKeys
Method to retrieve the list of names used to identify desired values.- Returns:
- The keys value
-
containsKey
Description of the Method- Parameters:
key- Description of the Parameter- Returns:
- Description of the Return Value
-
getKeys
Method to retrieve the list of names used to identify desired values of a particular type.- Parameters:
nodeType- Description of the Parameter- Returns:
- The keys value
-
getValues
Method to retrieve the list of values stored in this map.- Returns:
- The values value
-
getValue
Accessor method for retrieving a specific named GlobalDef.- Parameters:
path- Description of the Parameter- Returns:
- The value value
-
setValue
Setter method for updating a specific named value.- Parameters:
path- The new value valueschemaNode- The new value value
-
toString
Description of the Method -
setDebug
public static void setDebug(boolean d) Sets the debug attribute of the SchemaNodeMap class- Parameters:
d- The new debug value
-