|
|||||||||||
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(java.lang.Object o)
|
protected void |
fail(java.lang.String message)
Utility method that should be called from validate() in
case ov a validation failure. |
java.util.Collection |
getAttributeNames()
Returns all tag parameters with the given name, or an empty List if none exist; |
java.lang.String |
getAttributeValue(java.lang.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. |
java.lang.String |
getInfo()
|
int |
getLineNumber()
|
java.lang.String |
getName()
Returns the full name of the tag, excluding the @ |
java.lang.String |
getValue()
Returns the full value of the tag. |
int |
hashCode()
|
java.lang.String |
removeAttribute(java.lang.String attributeName)
Removes an attribute |
void |
removeTagListener(XTagListener tagListener)
remove doc listener |
void |
setAttribute(java.lang.String attributeName,
java.lang.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 XTag
public final java.lang.String getAttributeValue(java.lang.String attributeName)
getAttributeValue
in interface XTag
attributeName
- Describe what the parameter does
public final java.util.Collection getAttributeNames()
getAttributeNames
in interface XTag
public final java.lang.String getName()
getName
in interface XTag
public final java.lang.String getValue()
getValue
in interface XTag
public final int getLineNumber()
getLineNumber
in interface XTag
public final java.lang.String getInfo()
getInfo
in interface XTag
public final void setAttribute(java.lang.String attributeName, java.lang.String attributeValue)
setAttribute
in interface XTag
attributeName
- The new Attribute valueattributeValue
- The new Attribute valuepublic final void addTagListener(XTagListener tagListener)
addTagListener
in interface XTag
tagListener
- The feature to be added to the TagListener attributepublic final void removeTagListener(XTagListener tagListener)
removeTagListener
in interface XTag
tagListener
- public final java.lang.String removeAttribute(java.lang.String attributeName)
removeAttribute
in interface XTag
attributeName
- atribute to remove
public final boolean equals(java.lang.Object o)
equals
in interface XTag
public final int hashCode()
hashCode
in interface XTag
public void validate() throws TagValidationException
validate
in interface XTag
TagValidationException
protected final void fail(java.lang.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 |