|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.def.NamespaceDefinition
public class NamespaceDefinition
Namespace definition from binding.
| Constructor Summary | |
|---|---|
NamespaceDefinition(String uri,
String prefix,
int usage)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceDefinition(String uri,
String prefix,
int usage)
uri - namespace URIprefix - namespace prefix (may be null for default
namespace, but not "")usage - code for default usage of namespace| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||