|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.def.NameDefinition
public class NameDefinition
Named value definition from binding. This is a component of all items in the mapping corresponding to elements or attributes in the document.
| Constructor Summary | |
|---|---|
NameDefinition(String name,
String ns,
boolean attr)
Constructor. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NameDefinition(String name,
String ns,
boolean attr)
name - ns - attr - flag for attribute name| Method Detail |
|---|
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 builder
public void fixNamespace(DefinitionContext defc)
throws JiBXException
defc - definition context for namespaces
JiBXException - if error in namespace handlingpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||