Package schema2template.grammar
Class NamespaceDictionary
java.lang.Object
schema2template.grammar.NamespaceDictionary
Translation NS URI <-> NS Localname
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalNamespace
(String nsUri) Translate URI to local namespacegetNamespaceURI
(String nsLocal) Translate local namespace to URIstatic NamespaceDictionary
Construct an example dictionary as needed by the OpenDocument schema filevoid
Register a new translation
-
Constructor Details
-
NamespaceDictionary
public NamespaceDictionary()Construct a new empty dictionary
-
-
Method Details
-
put
Register a new translation- Parameters:
nsLocal
- short namespacensUri
- namespace URI
-
getNamespaceURI
Translate local namespace to URI- Parameters:
nsLocal
- short namespace- Returns:
- namespace URI
-
getLocalNamespace
Translate URI to local namespace- Parameters:
nsUri
- namespace URI- Returns:
- short namespace
-
getStandardDictionary
Construct an example dictionary as needed by the OpenDocument schema file- Returns:
- namespace Dictionary
-