|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--xjavadoc.DefaultXTag
| Field Summary | |
static int |
instanceCount
|
| Constructor Summary | |
DefaultXTag()
|
|
| Method Summary | |
void |
addTagListener(XTagListener tagListener)
add doc listener interested in chages |
boolean |
equals(Object o)
|
protected void |
fail(String message)
Utility method that should be called from validate() in
case ov a validation failure. |
Collection |
getAttributeNames()
Returns all tag parameters with the given name, or an empty List if none exist; |
String |
getAttributeValue(String attributeName)
Returns the first tag parameter with the given name, or null if none exist; |
XDoc |
getDoc()
Returns the XDoc object we belong to. |
String |
getInfo()
|
int |
getLineNumber()
|
String |
getName()
Returns the full name of the tag, excluding the @ |
String |
getValue()
Returns the full value of the tag. |
int |
hashCode()
|
String |
removeAttribute(String attributeName)
Removes an attribute |
void |
removeTagListener(XTagListener tagListener)
remove doc listener |
void |
setAttribute(String attributeName,
String attributeValue)
Adds a parameter |
void |
validate()
Validates the tag |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int instanceCount
| Constructor Detail |
public DefaultXTag()
| Method Detail |
public XDoc getDoc()
XTag
getDoc in interface XTagpublic String getAttributeValue(String attributeName)
getAttributeValue in interface XTagattributeName - Describe what the parameter does
public Collection getAttributeNames()
getAttributeNames in interface XTagpublic String getName()
getName in interface XTagpublic String getValue()
getValue in interface XTagpublic int getLineNumber()
getLineNumber in interface XTagpublic String getInfo()
getInfo in interface XTag
public void setAttribute(String attributeName,
String attributeValue)
setAttribute in interface XTagattributeName - The new Attribute valueattributeValue - The new Attribute valuepublic void addTagListener(XTagListener tagListener)
addTagListener in interface XTagtagListener - The feature to be added to the TagListener attributepublic void removeTagListener(XTagListener tagListener)
removeTagListener in interface XTagtagListener - public String removeAttribute(String attributeName)
removeAttribute in interface XTagattributeName - atribute to remove
public boolean equals(Object o)
equals in interface XTagequals in class Objectpublic int hashCode()
hashCode in interface XTaghashCode in class Object
public void validate()
throws TagValidationException
validate in interface XTagTagValidationException
protected void fail(String message)
throws TagValidationException
validate() in
case ov a validation failure. Throws a new TagValidationException
with
message - the message to include
TagValidationException - always thrown.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||