public class UntypedAttribute extends java.lang.Object implements AttributeDefinition
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
role
Role associated to this attribute.
|
protected java.lang.Object |
value |
Constructor and Description |
---|
UntypedAttribute(java.lang.Object value)
Constructor.
|
UntypedAttribute(java.lang.Object value,
java.lang.String role)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRole()
Get role.
|
java.lang.Object |
getValue()
Get value.
|
void |
setRole(java.lang.String role)
Set role.
|
void |
setValue(java.lang.Object value)
Set value.
|
java.lang.String |
toString()
Get String representation of this object.
|
protected java.lang.String role
protected java.lang.Object value
public UntypedAttribute(java.lang.Object value)
value
- Object to store.public UntypedAttribute(java.lang.Object value, java.lang.String role)
value
- Object to store.role
- Asociated role.public java.lang.String getRole()
public void setRole(java.lang.String role)
setRole
in interface AttributeDefinition
role
- Associated role.public java.lang.Object getValue()
getValue
in interface AttributeDefinition
public void setValue(java.lang.Object value)
value
- New value.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.