public class BindingHolder extends Object
| Constructor and Description |
|---|
BindingHolder(String uri,
boolean dflt,
BindingOrganizer dir)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFormat(FormatElement format)
Add a format definition to the binding.
|
void |
addMapping(MappingElementBase mapping)
Add a mapping definition to the binding.
|
void |
addNamespaceUsage(String uri)
Add usage of namespace for an element or attribute name in binding.
|
void |
addTypeNameReference(String uri,
Object obj)
Add reference from this binding to a type name defined in the same or another binding.
|
BindingElement |
getBinding()
Get the binding element.
|
String |
getElementDefaultNamespace()
Get default namespace URI for elements defined in this binding.
|
String |
getFileName()
Get the file name to be used for this file.
|
int |
getMappingCount()
Get the number of mapping definitions present in this binding.
|
String |
getNamespace()
Get namespace URI associated with this binding.
|
String |
getPrefix()
Get namespace prefix for this binding.
|
BindingHolder |
getRequiredBinding(Object obj)
Get the binding associated with a particular control object.
|
Iterator |
iterateMappings()
Get the number of mapping definitions present in this binding.
|
void |
setBinding(BindingElement bind)
Set the binding element.
|
void |
setFileName(String name)
Set the file name to be used for this file.
|
public BindingHolder(String uri, boolean dflt, BindingOrganizer dir)
uri - (null if no-namespace binding)dflt - namespace is default for elements flagdir - directory managing this holderpublic String getNamespace()
null if no-namespace)public String getPrefix()
null if not specified)public String getElementDefaultNamespace()
null if no-namespace)public BindingElement getBinding()
public void setBinding(BindingElement bind)
bind - Binding Elementpublic void addFormat(FormatElement format)
format - elementpublic void addNamespaceUsage(String uri)
uri - referenced namespace URI (null if no-namespace)public void addTypeNameReference(String uri, Object obj)
uri - namespace URI for type nameobj - object associated with referenced bindingpublic String getFileName()
null if not set)public void setFileName(String name)
name - Namepublic void addMapping(MappingElementBase mapping)
mapping - element basepublic int getMappingCount()
public Iterator iterateMappings()
public BindingHolder getRequiredBinding(Object obj)
obj - object associated with binding (can be namespace URI, if only one binding per namespace)Copyright © 2005–2016 jibx.org. All rights reserved.