|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wutka.dtd.DTDAttribute
Represents a DTD Attribute in an ATTLIST declaration
Field Summary | |
DTDDecl |
decl
The attribute's declaration (required, fixed, implied) |
String |
defaultValue
The attribute's default value (null if not declared) |
String |
name
The name of the attribute |
Object |
type
The type of the attribute (either String, DTDEnumeration or DTDNotationList) |
Constructor Summary | |
DTDAttribute()
|
|
DTDAttribute(String aName)
|
Method Summary | |
boolean |
equals(Object ob)
|
DTDDecl |
getDecl()
Returns the declaration |
String |
getDefaultValue()
Returns the default value |
String |
getName()
Returns the attribute name |
Object |
getType()
Gets the type of the attribute |
void |
setDecl(DTDDecl aDecl)
Sets the declaration (fixed, required, implied) |
void |
setDefaultValue(String aDefaultValue)
Sets the default value |
void |
setName(String aName)
Sets the name of the attribute |
void |
setType(Object aType)
Sets the type of the attribute |
void |
write(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 |
public String name
public Object type
public DTDDecl decl
public String defaultValue
Constructor Detail |
public DTDAttribute()
public DTDAttribute(String aName)
Method Detail |
public void write(PrintWriter out) throws IOException
write
in interface DTDOutput
public boolean equals(Object ob)
equals
in class Object
public void setName(String aName)
public String getName()
public void setType(Object aType)
public Object getType()
public void setDecl(DTDDecl aDecl)
public DTDDecl getDecl()
public void setDefaultValue(String aDefaultValue)
public String getDefaultValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |