ORG.oclc.xml.parser
Class ElementDecl
java.lang.Object
|
+--ORG.oclc.xml.om.ElementImpl
|
+--ORG.oclc.xml.parser.ElementDecl
- public class ElementDecl
- extends ElementImpl
The class represents an element declaration in an XML Document Type Definition (DTD).
Methods inherited from class ORG.oclc.xml.om.ElementImpl |
addChild,
addChild,
getAttribute,
getAttribute,
getAttributes,
getChild,
getChildren,
getElements,
getParent,
getTagName,
getText,
getType,
isAttributeQualified,
numAttributes,
numElements,
qualifyName,
removeAttribute,
removeAttribute,
removeChild,
saveAttributes,
setAttribute,
setAttribute,
setParent,
setText,
toString |
getContent
public final ContentModel getContent()
- Retrieves the content model object for the element declaration.
- Returns:
- the content model for the element.
getName
public final Name getName()
- Retrieves the name of the element declaration.
- Returns:
- the
Name
object containing the element declaration
name.
findAttDef
public final AttDef findAttDef(Name name)
- Retrieves the attribute definition of the named attribute.
- Parameters:
name
- The name of the attribute.- Returns:
- an attribute definition object; returns null if it is not found.
toSchema
public Element toSchema()
- Overrides:
- toSchema in class ElementImpl
save
public void save(XMLOutputStream o)
throws IOException
- Saves the element declaration in DTD syntax to the given
output stream.
- Parameters:
o
- The output stream to write to.- Returns:
- No return value.
- Throws:
- IOException - if there is a problem writing to the output
stream.
- Overrides:
- save in class ElementImpl