|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.TagAttribute
public class TagAttribute
Represents a single tag attribute.
Tag,
Serialized Form| Constructor Summary | |
|---|---|
|
TagAttribute(java.lang.String name,
boolean required)
Creates a new unary attribute for a tag. |
|
TagAttribute(java.lang.String name,
java.lang.String value,
boolean quoted)
Creates a new attribute for a tag. |
protected |
TagAttribute(TagAttribute attribute)
Creates a new attribute for a tag from an existing attribute. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Allows the Attribute to be cloned. |
boolean |
equals(java.lang.Object obj)
Determines if this attribute is the same as another object. |
java.lang.Integer |
getIntegerValue()
Returns the value of this attribute as an Integer. |
java.lang.String |
getName()
Returns the attribute name. |
protected Tag |
getTag()
Returns the Tag instance to which this attribute belongs. |
java.lang.String |
getValue(Browser browser)
Returns the value of this attribute. |
int |
hashCode()
Returns the hash code value of this object. |
boolean |
isQuoted()
Returns whether the attribute value will be quoted or not, |
boolean |
isUnary()
Returns whether this attribute is a unary value or not, |
boolean |
isWritable()
Determines whether this attribute will be used or not. |
void |
setName(java.lang.String name)
Sets the attribute name. |
void |
setQuoted(boolean quoted)
Determines if the attribute value will be quoted or not, |
protected void |
setTag(Tag tag)
Sets the Tag instance to which this attribute belongs. |
void |
setUnary(boolean unary)
Determines if this attribute is a unary value or not, |
void |
setValue(java.lang.String value)
Sets the value of this attribute. |
void |
setWritable(boolean writable)
Determines if this attribute will be used or not. |
java.lang.String |
toString()
Returns the attribute name/value pair to be included in a tag. |
java.lang.String |
toString(Browser browser)
Returns the attribute name/value pair to be included in a tag. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TagAttribute(java.lang.String name,
boolean required)
name - The attribute name.required - true if the attribute is to be writable, or false if it is
not.
public TagAttribute(java.lang.String name,
java.lang.String value,
boolean quoted)
name - The attribute name.value - The value of the attribute.quoted - Places quotes around the attribute value.protected TagAttribute(TagAttribute attribute)
attribute - The attribute.| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.ObjectTagException - if the clone fails.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to be compared to this attribute.
name as this Attribute.public java.lang.Integer getIntegerValue()
public java.lang.String getName()
public java.lang.String getValue(Browser browser)
browser - the browser to which the results are to be output.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isQuoted()
public boolean isUnary()
public boolean isWritable()
public void setName(java.lang.String name)
name - the attribute name.
java.lang.NullPointerException - if the specified name is null.public void setQuoted(boolean quoted)
quoted - true if the attribute value will be quoted.public void setUnary(boolean unary)
unary - true if this attribute is a unary value.public void setValue(java.lang.String value)
writable property
will be set to false.
value - the value of this attribute.public void setWritable(boolean writable)
writable - true if this attribute will be used.public java.lang.String toString()
toString in class java.lang.Objectwritable.public java.lang.String toString(Browser browser)
browser - the browser to which the results are to be output.
writable.protected Tag getTag()
protected void setTag(Tag tag)
tag - Tag instance to which this attribute belongs.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||