| java.lang.Object org.jibx.binding.def.NameDefinition
NameDefinition | public class NameDefinition (Code) | | Named value definition from binding. This is a component of all items
in the mapping corresponding to elements or attributes in the document.
author: Dennis M. Sosnoski version: 1.0 |
NameDefinition | public NameDefinition(String name, String ns, boolean attr)(Code) | | Constructor.
Parameters: attr - flag for attribute name |
fixNamespace | public void fixNamespace(DefinitionContext defc) throws JiBXException(Code) | | Finds the index for the namespace used with a name. If no explicit
namespace has been set it uses the appropriate default. This is a
separate operation from the unmarshalling in order to properly handle
namespace definitions as children of the named binding component.
Parameters: defc - definition context for namespaces throws: JiBXException - if error in namespace handling |
genPushIndexPair | public void genPushIndexPair(MethodBuilder mb)(Code) | | Generate code to push namespace index followed by name.
Parameters: mb - method builder |
genPushName | public void genPushName(MethodBuilder mb)(Code) | | Generate code to push name.
Parameters: mb - method builder |
genPushUri | public void genPushUri(MethodBuilder mb)(Code) | | Generate code to push namespace URI.
Parameters: mb - method builder |
genPushUriPair | public void genPushUriPair(MethodBuilder mb)(Code) | | Generate code to push namespace URI followed by name.
Parameters: mb - method builder |
isNullUri | public boolean isNullUri()(Code) | | Check if namespace URI is null.
true if URI null, false if not |
|
|