|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.model.BindingHolder
public class BindingHolder
External data for a binding definition. Along with the actual mapping definitions, this tracks namespace references and usages.
| Constructor Summary | |
|---|---|
BindingHolder(String uri,
boolean dflt,
BindingOrganizer dir)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindingHolder(String uri,
boolean dflt,
BindingOrganizer dir)
uri - (null if no-namespace binding)dflt - namespace is default for elements flagdir - directory managing this holder| Method Detail |
|---|
public 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 - public void addFormat(FormatElement format)
format - public 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 - public void addMapping(MappingElementBase mapping)
mapping - public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||