public class AttributeModel extends AbstractModel
A meta attribute describing or otherwise annotating it's holder.
| Constructor and Description |
|---|
AttributeModel(java.lang.String name,
java.lang.String value)
Create an attribute model
|
| Modifier and Type | Method and Description |
|---|---|
Model |
createCopy()
Create a deep copy of this model.
|
java.lang.String |
getName() |
java.lang.String |
getType() |
java.lang.String |
getValue() |
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model
|
void |
merge(Model model)
Merge the model into the current model
|
void |
setName(java.lang.String name) |
void |
setType(java.lang.String type) |
void |
setValue(java.lang.String value) |
public AttributeModel(java.lang.String name,
java.lang.String value)
name - the name of the attributevalue - the value of the attributepublic boolean isMergeableWith(Model model)
Modelmodel - the model to comparepublic void merge(Model model)
Modelmodel - the model to merge withpublic Model createCopy()
Modelpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic java.lang.String getType()
public void setType(java.lang.String type)
type - the type to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - the value to set