_attributeNames
private List _attributeNames
Ordered List of attribute names
_attributes
private Map _attributes
attribute map
_isDirty
private boolean _isDirty
indicate dirty state
_isParsed
private boolean _isParsed
tag parse status
_lineNumber
private int _lineNumber
_name
private String _name
tag name
_tagListeners
private Set _tagListeners
tag listeners interested in changes. This would be parent xdoc
_value
private String _value
string representation of tag
instanceCount
public static int instanceCount
addTagListener
public final void addTagListener(XTagListener tagListener)
add doc listener interested in chages
- addTagListener in interface XTag
tagListener
- The feature to be added to the TagListener attribute
ensureTagListenersInitialised
private final void ensureTagListenersInitialised()
equals
public final boolean equals(Object o)
- equals in interface XTag
fail
protected final void fail(String message)
throws TagValidationException
Utility method that should be called from
validate()
in
case ov a validation failure. Throws a new TagValidationException
with
message
- the message to include
fireTagChanged
private void fireTagChanged()
fire tagChanged event
getAttributeNames
public final Collection getAttributeNames()
Returns all tag parameters with the given name, or an empty List if none
exist;
- getAttributeNames in interface XTag
getAttributeValue
public final String getAttributeValue(String attributeName)
Returns the first tag parameter with the given name, or null if none exist;
- getAttributeValue in interface XTag
attributeName
- Describe what the parameter does
getInfo
public final String getInfo()
- getInfo in interface XTag
getName
public final String getName()
Returns the full name of the tag, excluding the @
- getName in interface XTag
getValue
public final String getValue()
Returns the full value of the tag.
- getValue in interface XTag
hashCode
public final int hashCode()
- hashCode in interface XTag
init
(package private) final void init(String name,
String value,
XDoc doc,
int lineNumber)
Sets the name and value. Called immediately after initialisation by
XTagFactory. Don't call this method from anywhere else.
name
- value
- doc
- lineNumber
-
parse
private final void parse()
Given the raw javadoc tag content as the value parameter parses it
and sets the parameter. If anything is malformed (not (foo="xxx")+), then
nothing is set.
removeAttribute
public final String removeAttribute(String attributeName)
Removes an attribute
- removeAttribute in interface XTag
attributeName
- atribute to remove
- the removed attribute value or null if it didn't exist
resetValue
private final void resetValue()
setAttribute
public final void setAttribute(String attributeName,
String attributeValue)
Adds a parameter
- setAttribute in interface XTag
attributeName
- The new Attribute valueattributeValue
- The new Attribute value
setAttribute_Impl
private final void setAttribute_Impl(String attributeName,
String attributeValue)
skipWhitespace
private static int skipWhitespace(String s,
int i)
Skips whitespaces, starting from index i till the first non-whitespace
character or end of s and returns the new index.
s
- Describe what the parameter doesi
- Describe what the parameter does
- Describe the return value