Top Description Fields Constructors Methods
org.dom4j.dtd

public Class AttributeDecl

extends Object
implements Decl
Class Inheritance
All Implemented Interfaces
org.dom4j.dtd.Decl

AttributeDecl represents an attribute declaration in a DTD.

Author
James Strachan
Version
$Revision: 1.7 $

Field Summary

Modifier and TypeField and Description
private String
attributeName

Holds value of property attributeName.

private String
elementName

Holds value of property elementName.

private String
type

Holds value of property type.

private String
value

Holds value of property value.

private String
valueDefault

Holds value of property valueDefault.

Constructor Summary

AccessConstructor and Description
public
public
AttributeDecl(String elementName, String attributeName, String type, String valueDefault, String value)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Value of property attributeName.
getAttributeName
()

Getter for property attributeName.

public String

Returns:

Value of property elementName.
getElementName
()

Getter for property elementName.

public String

Returns:

Value of property type.
getType
()

Getter for property type.

public String

Returns:

Value of property value.
getValue
()

Getter for property value.

public String

Returns:

Value of property valueDefault.
getValueDefault
()

Getter for property valueDefault.

public void
setAttributeName(String
New value of property attributeName.
attributeName
)

Setter for property attributeName.

public void
setElementName(String
New value of property elementName.
elementName
)

Setter for property elementName.

public void
setType(String
New value of property type.
type
)

Setter for property type.

public void
setValue(String
New value of property value.
value
)

Setter for property value.

public void
setValueDefault(String
New value of property valueDefault.
valueDefault
)

Setter for property valueDefault.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributeNameback to summary
private String attributeName

Holds value of property attributeName.

elementNameback to summary
private String elementName

Holds value of property elementName.

typeback to summary
private String type

Holds value of property type.

valueback to summary
private String value

Holds value of property value.

valueDefaultback to summary
private String valueDefault

Holds value of property valueDefault.

Constructor Detail

AttributeDeclback to summary
public AttributeDecl()
AttributeDeclback to summary
public AttributeDecl(String elementName, String attributeName, String type, String valueDefault, String value)

Method Detail

getAttributeNameback to summary
public String getAttributeName()

Getter for property attributeName.

Returns:String

Value of property attributeName.

getElementNameback to summary
public String getElementName()

Getter for property elementName.

Returns:String

Value of property elementName.

getTypeback to summary
public String getType()

Getter for property type.

Returns:String

Value of property type.

getValueback to summary
public String getValue()

Getter for property value.

Returns:String

Value of property value.

getValueDefaultback to summary
public String getValueDefault()

Getter for property valueDefault.

Returns:String

Value of property valueDefault.

setAttributeNameback to summary
public void setAttributeName(String attributeName)

Setter for property attributeName.

Parameters
attributeName:String

New value of property attributeName.

setElementNameback to summary
public void setElementName(String elementName)

Setter for property elementName.

Parameters
elementName:String

New value of property elementName.

setTypeback to summary
public void setType(String type)

Setter for property type.

Parameters
type:String

New value of property type.

setValueback to summary
public void setValue(String value)

Setter for property value.

Parameters
value:String

New value of property value.

setValueDefaultback to summary
public void setValueDefault(String valueDefault)

Setter for property valueDefault.

Parameters
valueDefault:String

New value of property valueDefault.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.