com.wutka.dtd
Class DTDAttribute
- DTDOutput
public class DTDAttribute
Represents a DTD Attribute in an ATTLIST declaration
$Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $ 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)
|
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
|
decl
public DTDDecl decl
The attribute's declaration (required, fixed, implied)
defaultValue
public String defaultValue
The attribute's default value (null if not declared)
name
public String name
The name of the attribute
type
public Object type
The type of the attribute (either String, DTDEnumeration or
DTDNotationList)
DTDAttribute
public DTDAttribute()
DTDAttribute
public DTDAttribute(String aName)
equals
public boolean equals(Object ob)
getDecl
public DTDDecl getDecl()
Returns the declaration
getDefaultValue
public String getDefaultValue()
Returns the default value
getName
public String getName()
Returns the attribute name
getType
public Object getType()
Gets the type of the attribute
setDecl
public void setDecl(DTDDecl aDecl)
Sets the declaration (fixed, required, implied)
setDefaultValue
public void setDefaultValue(String aDefaultValue)
Sets the default value
setName
public void setName(String aName)
Sets the name of the attribute
setType
public void setType(Object aType)
Sets the type of the attribute
write
public void write(PrintWriter out)
throws IOException
Writes this attribute to an output stream
- write in interface DTDOutput
Copyright (c) 2001 Mark Wutka.