public static class TypedAttribute.AttrData extends Object
TypedAttribute.| 构造器 | 说明 |
|---|---|
AttrData() |
A constructor used to create an
AttrData instance in which the attribute name and value are empty
strings and the attribute type is TypedAttribute.UNDEFINED_ATTR. |
AttrData(String attrName,
String attrValue) |
A constructor used to create an
AttrData instance in which the attribute name is attrName,
the attribute value is attrValue, and the attribute type is TypedAttribute.UNDEFINED_ATTR. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAttrName() |
Obtains the attribute name of this
AttrData. |
int |
getAttrType() |
Obtains the attribute type of this
AttrData. |
String |
getAttrValue() |
Obtains the attribute value of this
AttrData. |
void |
setAttrName(String attrName) |
Sets the attribute name for this
AttrData. |
void |
setAttrType(int attrType) |
Sets the attribute type for this
AttrData. |
void |
setAttrValue(String attrValue) |
Sets the attribute value for this
AttrData. |
public AttrData()
AttrData instance in which the attribute name and value are empty
strings and the attribute type is TypedAttribute.UNDEFINED_ATTR.public AttrData(String attrName, String attrValue)
AttrData instance in which the attribute name is attrName,
the attribute value is attrValue, and the attribute type is TypedAttribute.UNDEFINED_ATTR.public String getAttrName()
AttrData.public void setAttrName(String attrName)
AttrData.attrName - Indicates the attribute name to set.public String getAttrValue()
AttrData.public void setAttrValue(String attrValue)
AttrData.attrValue - Indicates the attribute value to set.public int getAttrType()
AttrData.public void setAttrType(int attrType)
AttrData.attrType - Indicates the attribute type to set.