public class Attribute extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected String | nameAttribute name. | 
| protected String | valueAttribute value. | 
| Constructor and Description | 
|---|
| Attribute(String name,
         String value)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Attribute | getAttribute(Element elem,
            String attrName)Create class instance by name from element. | 
| static String | getAttributeValue(Element elem,
                 String attrName)Get attribute value from element. | 
| String | getName() | 
| String | getValue() | 
| void | setValue(String value) | 
protected final String name
protected String value
public String getName()
public String getValue()
public void setValue(String value)
public static Attribute getAttribute(Element elem, String attrName)
elem - element for find attributeattrName - attribute nameCopyright © 2002 - 2013 - Wolf Paulus - wolfpaulus.com. All rights reserved.