Public Member Functions | |
| Element (DTDdocument document, String name) | |
| Element (DTDdocument document) | |
| String | getName () |
| DTDdocument | getDocument () |
| Iterator | getMixedContentChildren () |
| Enumeration | getAttributes () |
| ContentParticle | getContent () |
| void | setName (String name) |
| void | setAnyContent () |
| boolean | isAnyContent () |
| void | setEmptyContent () |
| boolean | isEmptyContent () |
| void | setMixedContent () |
| boolean | isMixedContent () |
| void | setElemOnlyContent (ContentParticle cp) |
| boolean | isElemOnlyContent () |
| synchronized void | addMixedContentChild (String child) throws DTDException |
| synchronized void | addAttribute (Attribute attribute) |
Implementation of DTD Element declaration specification.
| org.exolab.castor.xml.dtd.Element.Element | ( | DTDdocument | document, | |
| String | name | |||
| ) |
Constructor, setting the name of the element and owning DTD document.
| document | must not be null. |
| org.exolab.castor.xml.dtd.Element.Element | ( | DTDdocument | document | ) |
Constructor, setting owning DTD document of the element.
| document | must not be null. |
| synchronized void org.exolab.castor.xml.dtd.Element.addAttribute | ( | Attribute | attribute | ) |
Adds attribute to the element. If the element already has the attribute with the same name, does nothing.
References org.exolab.castor.xml.dtd.Attribute.getName().
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().
| synchronized void org.exolab.castor.xml.dtd.Element.addMixedContentChild | ( | String | child | ) | throws DTDException |
Adds name of a child to the set of children's names.
| DTDException | if there already exists the child with the same name. |
| Enumeration org.exolab.castor.xml.dtd.Element.getAttributes | ( | ) |
Returns enumeration of the attributes of the element.
| ContentParticle org.exolab.castor.xml.dtd.Element.getContent | ( | ) |
Returns Content Particle, representing the content of the element, if has ELEMENTS_ONLY content, null otherwise.
References org.exolab.castor.xml.dtd.Element.isElemOnlyContent().
| DTDdocument org.exolab.castor.xml.dtd.Element.getDocument | ( | ) |
Returns DTD document owning this element.
| Iterator org.exolab.castor.xml.dtd.Element.getMixedContentChildren | ( | ) |
Returns iterator of the set of mixed children, if of MIXED content, null otherwise.
References org.exolab.castor.xml.dtd.Element.isMixedContent().
| String org.exolab.castor.xml.dtd.Element.getName | ( | ) |
Returns the name of the element.
| boolean org.exolab.castor.xml.dtd.Element.isAnyContent | ( | ) |
True if the element is of ANY content type, false otherwise.
| boolean org.exolab.castor.xml.dtd.Element.isElemOnlyContent | ( | ) |
True if the element is of ELEMENTS_ONLY content type, false otherwise.
Referenced by org.exolab.castor.xml.dtd.Element.getContent().
| boolean org.exolab.castor.xml.dtd.Element.isEmptyContent | ( | ) |
True if the element is of EMPTY content type, false otherwise.
| boolean org.exolab.castor.xml.dtd.Element.isMixedContent | ( | ) |
True if the element is of MIXED content type, false otherwise.
Referenced by org.exolab.castor.xml.dtd.Element.getMixedContentChildren().
| void org.exolab.castor.xml.dtd.Element.setAnyContent | ( | ) |
Sets the content type of the element to ANY.
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.ElementDecl().
| void org.exolab.castor.xml.dtd.Element.setElemOnlyContent | ( | ContentParticle | cp | ) |
Sets the content type of the element to ELEMENTS_ONLY.
| cp | Content Particle representing content of the element. |
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.ElementDecl().
| void org.exolab.castor.xml.dtd.Element.setEmptyContent | ( | ) |
Sets the content type of the element to EMPTY.
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.ElementDecl().
| void org.exolab.castor.xml.dtd.Element.setMixedContent | ( | ) |
Sets the content type of the element to MIXED.
| void org.exolab.castor.xml.dtd.Element.setName | ( | String | name | ) |
Sets the name of the element.
Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.ElementDecl().
1.7.0