public abstract class ConfNamespace extends Object
Constructor and Description |
---|
ConfNamespace() |
Modifier and Type | Method and Description |
---|---|
static ConfNamespace |
findNamespace(int hash,
ArrayList<ConfNamespace> ns_list)
Locate a namespace in a namespace list, given a name space hash.
|
static ConfNamespace |
findNamespace(String id,
ArrayList<ConfNamespace> ns_list)
Locate a namespace in a namespace list, given a name space string.
|
static ConfNamespace |
findNamespaceFromPrefix(String prefix) |
static ConfNamespace |
findNamespaceFromPrefix(String prefix,
ArrayList<ConfNamespace> ns_list) |
static ConfNamespace |
findNamespaceFromRootTag(String tagName) |
abstract int |
hash() |
static String |
hashToString(int tagHash)
Transforms a namespace hash value into its corresponding string
representation.
|
abstract String |
id() |
static ConfNamespace |
lookupNamespaceFromHash(int hash)
Locate a namespace in a namespace list, given a name space hash.
|
static ConfNamespace |
lookupNamespaceFromPrefix(String prefix)
Locate a namespace in a namespace list, given a name space string.
|
static ConfNamespace |
lookupNamespaceFromURI(String uri)
Locate a namespace in a namespace list, given a name space string.
|
abstract String |
prefix() |
static void |
reinstallRemovedNs(List<ConfNamespace> removedNsList)
This method should only be used in cdb data migration scenarios.
|
static int |
stringToHash(String tagString)
Transforms a string into a namespace hash.
|
static int |
stringToTag(String str)
Deprecated.
|
static int |
stringToTag(String str,
ArrayList<ConfNamespace> ns_list)
Deprecated.
|
static String |
tagToString(int tag,
ArrayList<ConfNamespace> ns_list)
Deprecated.
|
int |
toHash(String str)
Deprecated.
|
String |
toString()
Return a string representation on the namespace.
|
String |
toString(int hash)
Deprecated.
|
abstract String |
uri() |
public static ConfNamespace findNamespace(int hash, ArrayList<ConfNamespace> ns_list)
public static ConfNamespace findNamespace(String id, ArrayList<ConfNamespace> ns_list)
public static ConfNamespace findNamespaceFromPrefix(String prefix)
public static ConfNamespace findNamespaceFromPrefix(String prefix, ArrayList<ConfNamespace> ns_list)
public static ConfNamespace findNamespaceFromRootTag(String tagName)
public abstract int hash()
public static String hashToString(int tagHash)
tagHash
- the identifier to turn into a string.public abstract String id()
public static ConfNamespace lookupNamespaceFromHash(int hash)
public static ConfNamespace lookupNamespaceFromPrefix(String prefix)
public static ConfNamespace lookupNamespaceFromURI(String uri)
public abstract String prefix()
public static void reinstallRemovedNs(List<ConfNamespace> removedNsList)
removedNsList
- Listpublic static int stringToHash(String tagString)
tagString
- the identifier to turn into a hash value.@Deprecated public static int stringToTag(String str)
stringToHash(String)
@Deprecated public static int stringToTag(String str, ArrayList<ConfNamespace> ns_list)
stringToHash(String)
@Deprecated public static String tagToString(int tag, ArrayList<ConfNamespace> ns_list)
hashToString(int)
@Deprecated public int toHash(String str)
stringToHash(String)
public String toString()
@Deprecated public String toString(int hash)
hashToString(int)
public abstract String uri()