Open SiteSearch 4.1.1
Final

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).


Fields inherited from class ORG.oclc.xml.om.ElementImpl
attrlist
 
Method Summary
 AttDef findAttDef(Name name)
          Retrieves the attribute definition of the named attribute.
 ContentModel getContent()
          Retrieves the content model object for the element declaration.
 Name getName()
          Retrieves the name of the element declaration.
 void save(XMLOutputStream o)
          Saves the element declaration in DTD syntax to the given output stream.
 Element toSchema()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

Open SiteSearch 4.1.1
Final