|
||||||||||
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 . |
boolean |
isCollapsingSimpleElements()
This will indicate whether simple elements are being collapsed for this binder. |
boolean |
isIgnoringIDAttributes()
This will indicate if the id attribute on elements handled
by this Binder should be ignored in determine if an
element is collapsible. |
void |
setIsCollapsingSimpleElements(boolean isCollapsingSimpleElements)
This sets whether or not to "collapse" simple elements. |
void |
setIsIgnoringIDAttributes(boolean isIgnoringIDAttributes)
This indicates if the id attribute on elements handled by
this Binder should be ignored in determine if an
element is collapsible. |
Method Detail |
public void setIsCollapsingSimpleElements(boolean isCollapsingSimpleElements)
This sets whether or not to "collapse" simple elements. An element is
simple if it only has character-based content, and no attributes. If
these are collapsed, then they are not turned into full-fledged
Java objects (with only a getValue()
method), but instead
become properties with primitive return values on their parents. So
an element named "display-name" with only textual content could be
accessed through it's parent object by invoking
getDisplayName()
on the parent, instead of
getDisplayName().getValue()
. By default, elements are
not collapsed.
isCollapsingSimpleElements
- whether or not to collapse simple
elements.public boolean isCollapsingSimpleElements()
This will indicate whether simple elements are being collapsed for
this binder. An element is
simple if it only has character-based content, and no attributes. If
these are collapsed, then they are not turned into full-fledged
Java objects (with only a getValue()
method), but instead
become properties with primitive return values on their parents. So
an element named "display-name" with only textual content could be
accessed through it's parent object by invoking
getDisplayName()
on the parent, instead of
getDisplayName().getValue()
. By default, elements are
not collapsed.
boolean
- whether simple elements are being
collapsed.public void setIsIgnoringIDAttributes(boolean isIgnoringIDAttributes)
This indicates if the id
attribute on elements handled by
this Binder
should be ignored in determine if an
element is collapsible. If
is false, this has
no effect.
isCollapsingSimpleElements()
ignoringIDAttributes
- whether or not to ignore ID attributes.public boolean isIgnoringIDAttributes()
This will indicate if the id
attribute on elements handled
by this Binder
should be ignored in determine if an
element is collapsible. If
is false, this has
no effect.
isCollapsingSimpleElements()
boolean
- whether ID attributes are ignored.public 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 |