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)
Locate a namespace in a namespace list, given a name space string.
|
static ConfNamespace |
findNamespace(String id,
ArrayList<ConfNamespace> ns_list) |
static ConfNamespace |
findNamespaceFromNsName(ConfPath path,
MountIdInterface mountIdGetter,
String namespaceName) |
static ConfNamespace |
findNamespaceFromPrefix(ConfPath path,
MountIdInterface mountIdGetter,
String prefix) |
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 boolean |
isCrunchedNs(String uri) |
static ConfNamespace |
lookupNamespaceFromHash(int hash)
Locate a namespace in a namespace list, given a name space hash.
|
static ConfNamespace |
lookupNamespaceFromPrefix(ConfPath path,
MountIdInterface mountIdGetter,
String prefix) |
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.
|
static String |
truncateToXMLUri(String uri) |
abstract String |
uri() |
abstract String |
xmlUri() |
public String toString()
public abstract int hash()
public abstract String id()
public abstract String uri()
public abstract String xmlUri()
public abstract String prefix()
@Deprecated public int toHash(String str)
ConfNamespace.stringToHash(String)
@Deprecated public String toString(int hash)
ConfNamespace.hashToString(int)
public static ConfNamespace findNamespace(int hash, ArrayList<ConfNamespace> ns_list)
public static ConfNamespace findNamespace(String id)
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 findNamespaceFromPrefix(ConfPath path, MountIdInterface mountIdGetter, String prefix)
public static ConfNamespace findNamespaceFromNsName(ConfPath path, MountIdInterface mountIdGetter, String namespaceName) throws ConfException, IOException
ConfException
IOException
public static ConfNamespace findNamespaceFromRootTag(String tagName)
public static ConfNamespace lookupNamespaceFromHash(int hash)
public static ConfNamespace lookupNamespaceFromURI(String uri)
public static ConfNamespace lookupNamespaceFromPrefix(String prefix)
public static ConfNamespace lookupNamespaceFromPrefix(ConfPath path, MountIdInterface mountIdGetter, String prefix)
public static String hashToString(int tagHash)
tagHash
- the identifier to turn into a string.@Deprecated public static String tagToString(int tag, ArrayList<ConfNamespace> ns_list)
ConfNamespace.hashToString(int)
public static int stringToHash(String tagString)
tagString
- the identifier to turn into a hash value.@Deprecated public static int stringToTag(String str)
ConfNamespace.stringToHash(String)
@Deprecated public static int stringToTag(String str, ArrayList<ConfNamespace> ns_list)
ConfNamespace.stringToHash(String)
public static void reinstallRemovedNs(List<ConfNamespace> removedNsList)
removedNsList
- Listpublic static boolean isCrunchedNs(String uri)