com.wutka.dtd
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DTDAttribute() |
DTDAttribute(java.lang.String aName) |
Modifier and Type | Method and Description |
---|---|
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
|
public java.lang.String name
public java.lang.Object type
public DTDDecl decl
public java.lang.String defaultValue
public DTDAttribute()
public DTDAttribute(java.lang.String aName)
public void write(java.io.PrintWriter out) throws java.io.IOException
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public void setName(java.lang.String aName)
public java.lang.String getName()
public void setType(java.lang.Object aType)
public java.lang.Object getType()
public void setDecl(DTDDecl aDecl)
public DTDDecl getDecl()
public void setDefaultValue(java.lang.String aDefaultValue)
public java.lang.String getDefaultValue()
Copyright (c) 2001 Mark Wutka.