This is built from bottom up so that we can eliminate redundant constructs, and produce the most concise content model definition in XML.
| Modifier and Type | Class and Description |
|---|---|
| private static class | Tree.
"S|T", "S,T", and "S&T". |
| private static class | Tree.
"T?" |
| private static class | Tree.
"T+" |
| pack-priv abstract static class | Tree.
Represents a terminal tree node, such as element, wildcard, etc. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | canBeTopLevel()
Returns true if the top node of this tree can appear as a valid top-level content model in XML Schema. |
| pack-priv abstract boolean | |
| pack-priv static Tree | |
| pack-priv Tree | makeOptional(boolean
if false this method becomes no-op. This is so that we can write
the caller fluently. really)Returns "T?" from "T". |
| pack-priv Tree | makeRepeated(boolean
if false this method becomes no-op. This is so that we can write
the caller fluently. really)Returns "T+" from "T". |
| protected abstract void | write(ContentModelContainer parent, boolean isOptional, boolean repeated)
Writes out the content model. |
| protected void | |
| protected final void | writeOccurs(Occurs o, boolean isOptional, boolean repeated)
Convenience method to write occurrence constraints. |
| Tree | back to summary |
|---|---|
| pack-priv Tree() | |
| canBeTopLevel | back to summary |
|---|---|
| pack-priv boolean canBeTopLevel() Returns true if the top node of this tree can appear as a valid top-level content model in XML Schema. Model groups and occurrences that have model group in it can. | |
| isNullable | back to summary |
|---|---|
| pack-priv abstract boolean isNullable() Returns true if this tree accepts empty sequence. | |
| makeGroup | back to summary |
|---|---|
| pack-priv static Tree makeGroup(GroupKind kind, List<Tree> children) Returns a group tree. | |
| makeOptional | back to summary |
|---|---|
| pack-priv Tree makeOptional(boolean really) Returns "T?" from "T".
| |
| makeRepeated | back to summary |
|---|---|
| pack-priv Tree makeRepeated(boolean really) Returns "T+" from "T".
| |
| write | back to summary |
|---|---|
| protected abstract void write(ContentModelContainer parent, boolean isOptional, boolean repeated) Writes out the content model. Normall this runs recursively until we write out the whole content model. | |
| write | back to summary |
|---|---|
| protected void write(TypeDefParticle ct) Writes inside the given complex type. | |
| writeOccurs | back to summary |
|---|---|
| protected final void writeOccurs(Occurs o, boolean isOptional, boolean repeated) Convenience method to write occurrence constraints. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | canBeTopLevel()
Overrides org. Returns true if the top node of this tree can appear as a valid top-level content model in XML Schema. |
| pack-priv boolean | isNullable()
Implements abstract org. Returns true if this tree accepts empty sequence. |
| protected void | write(ContentModelContainer parent, boolean isOptional, boolean repeated)
Implements abstract org. Writes out the content model. |
| children | back to summary |
|---|---|
| private final Tree[] children | |
| kind | back to summary |
|---|---|
| private final GroupKind kind | |
| Group | back to summary |
|---|---|
| private Group(GroupKind kind, Tree... children) | |
| canBeTopLevel | back to summary |
|---|---|
| pack-priv boolean canBeTopLevel() Overrides org. Doc from org. Returns true if the top node of this tree can appear as a valid top-level content model in XML Schema. Model groups and occurrences that have model group in it can.
| |
| isNullable | back to summary |
|---|---|
| pack-priv boolean isNullable() Implements abstract org. Doc from org. Returns true if this tree accepts empty sequence.
| |
| write | back to summary |
|---|---|
| protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) Implements abstract org. Doc from org. Writes out the content model. Normall this runs recursively until we write out the whole content model.
| |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isNullable()
Implements abstract org. Returns true if this tree accepts empty sequence. |
| pack-priv Tree | makeOptional(boolean really)
Overrides org. Returns "T?" from "T". |
| protected void | write(ContentModelContainer parent, boolean isOptional, boolean repeated)
Implements abstract org. Writes out the content model. |
| body | back to summary |
|---|---|
| private final Tree body | |
| Optional | back to summary |
|---|---|
| private Optional(Tree body) | |
| isNullable | back to summary |
|---|---|
| pack-priv boolean isNullable() Implements abstract org. Doc from org. Returns true if this tree accepts empty sequence.
| |
| makeOptional | back to summary |
|---|---|
| pack-priv Tree makeOptional(boolean really) Overrides org. Doc from org. Returns "T?" from "T".
| |
| write | back to summary |
|---|---|
| protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) Implements abstract org. Doc from org. Writes out the content model. Normall this runs recursively until we write out the whole content model.
| |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isNullable()
Implements abstract org. Returns true if this tree accepts empty sequence. |
| pack-priv Tree | makeRepeated(boolean really)
Overrides org. Returns "T+" from "T". |
| protected void | write(ContentModelContainer parent, boolean isOptional, boolean repeated)
Implements abstract org. Writes out the content model. |
| body | back to summary |
|---|---|
| private final Tree body | |
| Repeated | back to summary |
|---|---|
| private Repeated(Tree body) | |
| isNullable | back to summary |
|---|---|
| pack-priv boolean isNullable() Implements abstract org. Doc from org. Returns true if this tree accepts empty sequence.
| |
| makeRepeated | back to summary |
|---|---|
| pack-priv Tree makeRepeated(boolean really) Overrides org. Doc from org. Returns "T+" from "T".
| |
| write | back to summary |
|---|---|
| protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) Implements abstract org. Doc from org. Writes out the content model. Normall this runs recursively until we write out the whole content model.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isNullable()
Implements abstract org. Returns true if this tree accepts empty sequence. |
| Term | back to summary |
|---|---|
| pack-priv Term() | |
| isNullable | back to summary |
|---|---|
| pack-priv boolean isNullable() Implements abstract org. Doc from org. Returns true if this tree accepts empty sequence.
| |