|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> checks >> [ xpath overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.puppycrawl.tools.checkstyle.checks.xpath
Class Attribute

java.lang.Objectcom.puppycrawl.tools.checkstyle.checks.xpath.Attribute
- public class Attribute
- extends java.lang.Object
Data holder for an XPath attribute of an element. The parent element of an Attribute is a DetailAST. The name and value of an Attribute are Strings.
| Field Summary | |
private java.lang.String |
mName
name |
private com.puppycrawl.tools.checkstyle.api.DetailAST |
mParent
element owning this attribute |
private java.lang.String |
mValue
value |
| Constructor Summary | |
Attribute(com.puppycrawl.tools.checkstyle.api.DetailAST aParent,
java.lang.String aName,
java.lang.String aValue)
Constructs an Attribute. |
|
| Method Summary | |
java.lang.String |
getName()
Returns the name of the attribute. |
com.puppycrawl.tools.checkstyle.api.DetailAST |
getParent()
Returns the parent of the attribute. |
java.lang.String |
getValue()
Returns the value of the attribute. |
void |
setName(java.lang.String aName)
Sets the name of the attribute. |
void |
setParent(com.puppycrawl.tools.checkstyle.api.DetailAST aParent)
Sets the parent of the attribute. |
void |
setValue(java.lang.String aValue)
Sets the value of the attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
mParent
private com.puppycrawl.tools.checkstyle.api.DetailAST mParent
- element owning this attribute
mName
private java.lang.String mName
- name
mValue
private java.lang.String mValue
- value
| Constructor Detail |
Attribute
public Attribute(com.puppycrawl.tools.checkstyle.api.DetailAST aParent, java.lang.String aName, java.lang.String aValue)
- Constructs an
Attribute.
| Method Detail |
getName
public java.lang.String getName()
- Returns the name of the attribute.
getValue
public java.lang.String getValue()
- Returns the value of the attribute.
setName
public void setName(java.lang.String aName)
- Sets the name of the attribute.
setValue
public void setValue(java.lang.String aValue)
- Sets the value of the attribute.
getParent
public com.puppycrawl.tools.checkstyle.api.DetailAST getParent()
- Returns the parent of the attribute.
setParent
public void setParent(com.puppycrawl.tools.checkstyle.api.DetailAST aParent)
- Sets the parent of the attribute.
|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> checks >> [ xpath overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.puppycrawl.tools.checkstyle.checks.xpath.Attribute