| java.lang.Object org.jibx.binding.def.NamespaceDefinition
NamespaceDefinition | public class NamespaceDefinition (Code) | | Namespace definition from binding.
author: Dennis M. Sosnoski version: 1.0 |
ALLDEFAULT_USAGE | final static int ALLDEFAULT_USAGE(Code) | | |
ATTRIBUTES_USAGE | final static int ATTRIBUTES_USAGE(Code) | | |
ELEMENTS_USAGE | final static int ELEMENTS_USAGE(Code) | | |
NODEFAULT_USAGE | final static int NODEFAULT_USAGE(Code) | | |
NamespaceDefinition | public NamespaceDefinition(String uri, String prefix, int usage) throws JiBXException(Code) | | Constructor.
Parameters: uri - namespace URI Parameters: prefix - namespace prefix (may be null for defaultnamespace, but not "") Parameters: usage - code for default usage of namespace throws: JiBXException - if configuration error |
getIndex | public int getIndex()(Code) | | Get namespace index.
namespace index |
getPrefix | public String getPrefix()(Code) | | Get prefix for namespace.
namespace prefix (may be null , but not "") |
getUri | public String getUri()(Code) | | Get namespace URI.
namespace URI |
isAttributeDefault | public boolean isAttributeDefault()(Code) | | Check if default namespace for attributes.
true if default namespace for attributes,false if not |
isElementDefault | public boolean isElementDefault()(Code) | | Check if default namespace for elements.
true if default namespace for elements,false if not |
print | public void print(int depth)(Code) | | |
setIndex | public void setIndex(int index)(Code) | | Set namespace index.
Parameters: index - namespace index |
|
|