|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Binder
provides an interface for all constraint
representations to use. It defines the contract for conversion
between an arbitrary constraint representation (XML Schema, DTD,
Relax schema, etc) to a set of Zeus
s.
Binding
This interface also provides uniformity in the overall handling
of constraints; in other words, dealing with an XML Schema is
generally fundamentally different than dealing with a DTD.
However, working with a DTDBinder
is identical,
from an external perspective, to working with a
SchemaBinder
.
Method Summary | |
java.util.List |
getBindings()
This is integral portion of the Binder . |
java.lang.String |
getNamePrefix()
This method allows the developer to get the prefix that will be prepended to the name of every generated interface and class. |
boolean |
isCollapsingSimpleElements()
This method allows the developer to determine whether all simple XML elements (elements with #PCDATA content) will be mapped to
data members on parent member classes rather
than their own classes. |
void |
setCollapseSimpleElements(boolean collapseSimpleElements)
This method allows the developer to specify that all simple XML elements (elements with #PCDATA content) should map to data
members on parent member classes rather than their
own classes. |
void |
setNamePrefix(java.lang.String namePrefix)
This method allows the developer to set a prefix that will be prepended to the name of every generated interface and class. |
Method Detail |
public void setNamePrefix(java.lang.String namePrefix)
This method allows the developer to set a prefix that will be prepended to the name of every generated interface and class.
String
- prefix that will be prepended to the
name of every generated interface and classpublic java.lang.String getNamePrefix()
This method allows the developer to get the prefix that will be prepended to the name of every generated interface and class. Returns an empty string in the case that a prefix is not prepended.
String
prefix that will be prepended
to the name of every generated interface and classpublic void setCollapseSimpleElements(boolean collapseSimpleElements)
This method allows the developer to specify that all
simple XML elements (elements with
#PCDATA
content) should map to data
members on parent member classes rather than their
own classes.
collapseSimpleElements
- true if simple elements
should be collapsedpublic boolean isCollapsingSimpleElements()
This method allows the developer to determine whether
all simple XML elements (elements with
#PCDATA
content) will be mapped to
data members on parent member classes rather
than their own classes.
boolean
true if simple elements
will be collapsedpublic java.util.List getBindings() throws java.io.IOException
This is integral portion of the Binder
. It
is responsible for returning a Zeus representation of
the set of constraints that this binding represents,
resulting from the input representation (which could
be an XML Schema, DTD, Relax schema, etc.).
List
- the resultant
Binding
s from conversion of
constraints.IOException
- when errors in reading
input occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |