schema2template.model
public class NamespaceDictionary extends Object
Constructor and Description |
---|
NamespaceDictionary()
Construct a new empty dictionary
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalNamespace(String nsUri)
Translate URI to local namespace
|
String |
getNamespaceURI(String nsLocal)
Translate local namespace to URI
|
static NamespaceDictionary |
getStandardDictionary()
Construct an example dictionary as needed by the OpenDocument schema file
|
void |
put(String nsLocal,
String nsUri)
Register a new translation
|
public NamespaceDictionary()
public void put(String nsLocal, String nsUri)
nsLocal
- short namespacensUri
- namespace URIpublic String getNamespaceURI(String nsLocal)
nsLocal
- short namespacepublic String getLocalNamespace(String nsUri)
nsUri
- namespace URIpublic static NamespaceDictionary getStandardDictionary()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.