public class NamespaceDefinition extends Object
| Constructor and Description |
|---|
NamespaceDefinition(String uri,
String prefix,
int usage)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static NamespaceDefinition |
buildNamespace(String uri,
String prefix)
Instance builder with supplied values.
|
int |
getIndex()
Get namespace index.
|
String |
getPrefix()
Get prefix for namespace.
|
String |
getUri()
Get namespace URI.
|
boolean |
isAttributeDefault()
Check if default namespace for attributes.
|
boolean |
isElementDefault()
Check if default namespace for elements.
|
void |
print(int depth) |
void |
setIndex(int index)
Set namespace index.
|
void |
setPrefix(String prefix)
Set prefix for namespace.
|
public boolean isAttributeDefault()
true if default namespace for attributes,
false if notpublic boolean isElementDefault()
true if default namespace for elements,
false if notpublic void setPrefix(String prefix)
prefix - namespace prefix (may be null, but not "")public String getPrefix()
null, but not "")public String getUri()
public void setIndex(int index)
index - namespace indexpublic int getIndex()
public static NamespaceDefinition buildNamespace(String uri, String prefix)
uri - namespace URIprefix - namespace prefixpublic void print(int depth)
Copyright © 2005–2016 jibx.org. All rights reserved.