public class ContainerAttribute
extends java.lang.Object
Constructor and Description |
---|
ContainerAttribute() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Attribute> |
getAttributes() |
java.lang.String |
getAttributeValue(java.lang.String attributeName)
return value of attribute given its name
|
java.lang.String |
getAttributeValue(java.lang.String name,
boolean ignoreCase,
boolean nullProof)
Returns the value of the requested attribute, ignore the case of the name as directed, and returning null
or empty string as directed.
|
java.lang.String |
getName() |
java.lang.String |
getType() |
void |
setAttributes(java.util.List<Attribute> attributes) |
void |
setName(java.lang.String name) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.util.List<Attribute> getAttributes()
public void setAttributes(java.util.List<Attribute> attributes)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAttributeValue(java.lang.String name, boolean ignoreCase, boolean nullProof)
name
- Name of Attribute whose value to returnignoreCase
- Ignore case in the name searchnullProof
- If true return empty string instead of null.public java.lang.String getAttributeValue(java.lang.String attributeName)
attributeName
-