com.wutka.dtd
Class DTDAttribute

java.lang.Object
  |
  +--com.wutka.dtd.DTDAttribute
All Implemented Interfaces:
DTDOutput

public class DTDAttribute
extends java.lang.Object
implements DTDOutput

Represents a DTD Attribute in an ATTLIST declaration


Field Summary
 DTDDecl decl
          The attribute's declaration (required, fixed, implied)
 java.lang.String defaultValue
          The attribute's default value (null if not declared)
 java.lang.String name
          The name of the attribute
 java.lang.Object type
          The type of the attribute (either String, DTDEnumeration or DTDNotationList)
 
Constructor Summary
DTDAttribute()
           
DTDAttribute(java.lang.String aName)
           
 
Method Summary
 boolean equals(java.lang.Object ob)
           
 DTDDecl getDecl()
          Returns the declaration
 java.lang.String getDefaultValue()
          Returns the default value
 java.lang.String getName()
          Returns the attribute name
 java.lang.Object getType()
          Gets the type of the attribute
 void setDecl(DTDDecl aDecl)
          Sets the declaration (fixed, required, implied)
 void setDefaultValue(java.lang.String aDefaultValue)
          Sets the default value
 void setName(java.lang.String aName)
          Sets the name of the attribute
 void setType(java.lang.Object aType)
          Sets the type of the attribute
 void write(java.io.PrintWriter out)
          Writes this attribute to an output stream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of the attribute

type

public java.lang.Object type
The type of the attribute (either String, DTDEnumeration or DTDNotationList)

decl

public DTDDecl decl
The attribute's declaration (required, fixed, implied)

defaultValue

public java.lang.String defaultValue
The attribute's default value (null if not declared)
Constructor Detail

DTDAttribute

public DTDAttribute()

DTDAttribute

public DTDAttribute(java.lang.String aName)
Method Detail

write

public void write(java.io.PrintWriter out)
           throws java.io.IOException
Writes this attribute to an output stream
Specified by:
write in interface DTDOutput

equals

public boolean equals(java.lang.Object ob)
Overrides:
equals in class java.lang.Object

setName

public void setName(java.lang.String aName)
Sets the name of the attribute

getName

public java.lang.String getName()
Returns the attribute name

setType

public void setType(java.lang.Object aType)
Sets the type of the attribute

getType

public java.lang.Object getType()
Gets the type of the attribute

setDecl

public void setDecl(DTDDecl aDecl)
Sets the declaration (fixed, required, implied)

getDecl

public DTDDecl getDecl()
Returns the declaration

setDefaultValue

public void setDefaultValue(java.lang.String aDefaultValue)
Sets the default value

getDefaultValue

public java.lang.String getDefaultValue()
Returns the default value