com.wutka.dtd

Class DTDAttribute

Implemented Interfaces:
DTDOutput

public class DTDAttribute
extends Object
implements DTDOutput

Represents a DTD Attribute in an ATTLIST declaration
Version:
$Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $
Author:
Mark Wutka

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

Field Details

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)

Constructor Details

DTDAttribute

public DTDAttribute()

DTDAttribute

public DTDAttribute(String aName)

Method Details

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
Specified by:
write in interface DTDOutput

Copyright (c) 2001 Mark Wutka.