public class AttributeListWrapper extends Object implements AttributeList
| Constructor and Description |
|---|
AttributeListWrapper(NamedNodeMap namedNodeMap) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Returns the number of attributes in the list.
|
String |
getName(int i)
Returns the name of the attribute at the given index.
|
String |
getType(int i)
Returns the type of the attribute at the specified index.
|
String |
getType(String name)
Return the type of the attribute with the given name.
|
String |
getValue(int i)
Return the value of the attribute at the specified index
|
String |
getValue(String name)
Get the value of an attribute (by name).
|
public AttributeListWrapper(NamedNodeMap namedNodeMap)
public int getLength()
getLength in interface AttributeListpublic String getName(int i)
getName in interface AttributeListi - The position of the attribute in the list.public String getType(int i)
getType in interface AttributeListi - The position of the attribute in the list.public String getValue(int i)
getValue in interface AttributeListi - The position of the attribute in the list.public String getType(String name)
getType in interface AttributeListname - The attribute name.public String getValue(String name)
getValue in interface AttributeListname - The attribute name.AttributeList.getValue(java.lang.String)Copyright © 2016. All rights reserved.