public class NameDefinition extends Object
| Constructor and Description |
|---|
NameDefinition(String name,
String ns,
boolean attr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fixNamespace(DefinitionContext defc)
Finds the index for the namespace used with a name.
|
void |
genPushIndexPair(MethodBuilder mb)
Generate code to push namespace index followed by name.
|
void |
genPushName(MethodBuilder mb)
Generate code to push name.
|
void |
genPushUri(MethodBuilder mb)
Generate code to push namespace URI.
|
void |
genPushUriPair(MethodBuilder mb)
Generate code to push namespace URI followed by name.
|
String |
getName()
Get the local name.
|
String |
getNamespace()
Get the namespace URI.
|
boolean |
isNullUri()
Check if namespace URI is null.
|
String |
toString() |
public String getName()
public String getNamespace()
null if no-namespace namespace)public boolean isNullUri()
true if URI null, false if notpublic void genPushUri(MethodBuilder mb)
mb - method builderpublic void genPushName(MethodBuilder mb)
mb - method builderpublic void genPushUriPair(MethodBuilder mb)
mb - method builderpublic void genPushIndexPair(MethodBuilder mb)
mb - method builderpublic void fixNamespace(DefinitionContext defc) throws org.jibx.runtime.JiBXException
defc - definition context for namespacesorg.jibx.runtime.JiBXException - if error in namespace handlingCopyright © 2005–2016 jibx.org. All rights reserved.