public class AttributeModel extends AbstractModel
A meta attribute describing or otherwise annotating it's holder.
Constructor and Description |
---|
AttributeModel(String name,
String value)
Create an attribute model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
String |
getName() |
String |
getType() |
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(String name) |
void |
setType(String type) |
void |
setValue(String value) |
public boolean isMergeableWith(Model model)
Model
model
- the model to comparepublic void merge(Model model)
Model
model
- the model to merge withpublic Model createCopy()
Model
public String getName()
public void setName(String name)
name
- the name to setpublic String getType()
public void setType(String type)
type
- the type to setpublic String getValue()
public void setValue(String value)
value
- the value to set