Public Member Functions | |
| ContentParticle () | |
| ContentParticle (String reference) | |
| void | setReferenceType (String reference) |
| boolean | isReferenceType () |
| void | setSeqType () |
| boolean | isSeqType () |
| void | setChoiceType () |
| boolean | isChoiceType () |
| String | getReference () |
| Enumeration | getChildren () |
| void | setOneOccurance () |
| boolean | isOneOccurance () |
| void | setZeroOrOneOccurance () |
| boolean | isZeroOrOneOccurance () |
| void | setOneOrMoreOccurances () |
| boolean | isOneOrMoreOccurances () |
| void | setZeroOrMoreOccurances () |
| boolean | isZeroOrMoreOccurances () |
| synchronized void | addChild (ContentParticle cp) |
Implementation of DTD Content Particle specification, used to define the content of an element.
| org.exolab.castor.xml.dtd.ContentParticle.ContentParticle | ( | ) |
Constructor, setting occurance specification to ONE, by default.
| org.exolab.castor.xml.dtd.ContentParticle.ContentParticle | ( | String | reference | ) |
Creates content particle and sets its type to REFERENCE, that is the content is exactly one child-element.
| reference | name of this child-element. |
References org.exolab.castor.xml.dtd.ContentParticle.setReferenceType().
| synchronized void org.exolab.castor.xml.dtd.ContentParticle.addChild | ( | ContentParticle | cp | ) |
Adds child to the vector of child elements (content particles).
| cp | content particle to add to the vector of children. |
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.SeqOrChoiceContPart().
| Enumeration org.exolab.castor.xml.dtd.ContentParticle.getChildren | ( | ) |
Returns enumeration of the children - content particles, that form the content of this Content Particle, if has SEQ or CHOICE type (sequence or choice list), null otherwise.
References org.exolab.castor.xml.dtd.ContentParticle.isChoiceType(), and org.exolab.castor.xml.dtd.ContentParticle.isSeqType().
| String org.exolab.castor.xml.dtd.ContentParticle.getReference | ( | ) |
Returns the name of the child element, if content is exactly one child.
| boolean org.exolab.castor.xml.dtd.ContentParticle.isChoiceType | ( | ) |
True if the content is a choice list of content particles, false otherwise.
Referenced by org.exolab.castor.xml.dtd.ContentParticle.getChildren().
| boolean org.exolab.castor.xml.dtd.ContentParticle.isOneOccurance | ( | ) |
True if ocurence specification of the content particle is ONE, false otherwise.
| boolean org.exolab.castor.xml.dtd.ContentParticle.isOneOrMoreOccurances | ( | ) |
True if occurance specification of the content particle is ONE_OR_MORE, false otherwise.
| boolean org.exolab.castor.xml.dtd.ContentParticle.isReferenceType | ( | ) |
True if the content is exactly on child-element, false otherwise.
| boolean org.exolab.castor.xml.dtd.ContentParticle.isSeqType | ( | ) |
True if the content is a sequence list of content particles, false otherwise.
Referenced by org.exolab.castor.xml.dtd.ContentParticle.getChildren().
| boolean org.exolab.castor.xml.dtd.ContentParticle.isZeroOrMoreOccurances | ( | ) |
True if occurance specification of the content particle is ZERO_OR_MORE, false otherwise.
| boolean org.exolab.castor.xml.dtd.ContentParticle.isZeroOrOneOccurance | ( | ) |
True if occurance specification of the content particle is ZERO_OR_ONE, false otherwise.
| void org.exolab.castor.xml.dtd.ContentParticle.setChoiceType | ( | ) |
Sets the content to choice list of content particles.
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.SeqOrChoiceContPart().
| void org.exolab.castor.xml.dtd.ContentParticle.setOneOccurance | ( | ) |
Sets occurance specification of the content particle to ONE.
| void org.exolab.castor.xml.dtd.ContentParticle.setOneOrMoreOccurances | ( | ) |
Sets occurance specification of the content particle to ONE_OR_MORE.
| void org.exolab.castor.xml.dtd.ContentParticle.setReferenceType | ( | String | reference | ) |
Makes the content particle represent the content with exactly one child-element.
| reference | the name of this child-element - must not be null or equal to empty String. |
Referenced by org.exolab.castor.xml.dtd.ContentParticle.ContentParticle().
| void org.exolab.castor.xml.dtd.ContentParticle.setSeqType | ( | ) |
Sets the content to sequence list of content particles.
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.SeqOrChoiceContPart().
| void org.exolab.castor.xml.dtd.ContentParticle.setZeroOrMoreOccurances | ( | ) |
Sets occurance specification of the content particle to ZERO_OR_MORE.
| void org.exolab.castor.xml.dtd.ContentParticle.setZeroOrOneOccurance | ( | ) |
Sets occurance specification of the content particle to ZERO_OR_ONE.
1.7.0