public class Attribute extends Object
StructuredOutput.| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the attribute.
|
Object |
getValue()
Returns the value of the attribute.
|
static Attribute |
set(String name,
Object value)
Creates a new attribute with the given name and value.
|
void |
setName(String name)
Sets the name of the attribute.
|
void |
setValue(Object value)
Sets the value of the attribute.
|
public String getName()
public void setName(String name)
name - the name of the attributepublic Object getValue()
public void setValue(Object value)
value - the value of the attribute.Copyright © 2018. All rights reserved.