|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectxjavadoc.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()
|
(package private) void |
init(String name,
String value,
XDoc doc,
int lineNumber)
Sets the name and value. |
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 final XDoc getDoc()
XTag
getDoc in interface XTagpublic final String getAttributeValue(String attributeName)
getAttributeValue in interface XTagattributeName - Describe what the parameter does
public final Collection getAttributeNames()
getAttributeNames in interface XTagpublic final String getName()
getName in interface XTagpublic final String getValue()
getValue in interface XTagpublic final int getLineNumber()
getLineNumber in interface XTagpublic final String getInfo()
getInfo in interface XTag
public final void setAttribute(String attributeName,
String attributeValue)
setAttribute in interface XTagattributeName - The new Attribute valueattributeValue - The new Attribute valuepublic final void addTagListener(XTagListener tagListener)
addTagListener in interface XTagtagListener - The feature to be added to the TagListener attributepublic final void removeTagListener(XTagListener tagListener)
removeTagListener in interface XTagtagListener - public final String removeAttribute(String attributeName)
removeAttribute in interface XTagattributeName - atribute to remove
public final boolean equals(Object o)
equals in interface XTagpublic final int hashCode()
hashCode in interface XTag
public void validate()
throws TagValidationException
validate in interface XTagTagValidationException
protected final 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.
final void init(String name,
String value,
XDoc doc,
int lineNumber)
name - value - doc - lineNumber -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||