xjavadoc

Interface XTag

public interface XTag

Author: Aslak Hellesxy

UNKNOWN: 11. januar 2002

Method Summary
voidaddTagListener(XTagListener tagListener)
booleanequals(Object o)
CollectiongetAttributeNames()
Returns all tag attribute names, in the order they occur in the source.
StringgetAttributeValue(String attributeName)
Returns the value of the tag parameter with the given name, or null if none exist;
XDocgetDoc()
Returns the XDoc object we belong to.
StringgetInfo()
intgetLineNumber()
StringgetName()
Returns the full name of the tag, excluding the @
StringgetValue()
Returns the full value of the tag.
inthashCode()
StringremoveAttribute(String attributeName)
voidremoveTagListener(XTagListener tagListener)
voidsetAttribute(String attributeName, String attributeValue)
Adds a parameter
voidvalidate()
Validates the tag.

Method Detail

addTagListener

public void addTagListener(XTagListener tagListener)

equals

public boolean equals(Object o)

getAttributeNames

public Collection getAttributeNames()
Returns all tag attribute names, in the order they occur in the source.

Returns: The Parameters value

getAttributeValue

public String getAttributeValue(String attributeName)
Returns the value of the tag parameter with the given name, or null if none exist;

Parameters: attributeName Describe what the parameter does

Returns: The Parameter value

getDoc

public XDoc getDoc()
Returns the XDoc object we belong to.

Returns: the XDoc object we belong to.

getInfo

public String getInfo()

getLineNumber

public int getLineNumber()

getName

public String getName()
Returns the full name of the tag, excluding the @

Returns: Describe the return value

getValue

public String getValue()
Returns the full value of the tag.

Returns: Describe the return value

hashCode

public int hashCode()

removeAttribute

public String removeAttribute(String attributeName)

removeTagListener

public void removeTagListener(XTagListener tagListener)

setAttribute

public void setAttribute(String attributeName, String attributeValue)
Adds a parameter

Parameters: attributeName name of the attribute attributeValue value of the attribute

validate

public void validate()
Validates the tag.

Throws: TagValidationException if the content of the tag is somehow invalid