public class Attribute extends Object implements Serializable
Constructor and Description |
---|
Attribute()
Constructor for an empty attribute
|
Attribute(String id,
AttributeModel model,
String value)
Constructor that takes 3 parameters : an id, an Attribute model and a String value
|
Attribute(String name,
String id,
String type,
String value)
Constructor that create an attribute with name,id,type and value
|
Modifier and Type | Method and Description |
---|---|
String |
getId() |
AttributeModel |
getModel() |
String |
getValue() |
void |
setId(String id) |
void |
setModel(AttributeModel model) |
void |
setValue(String value) |
String |
toString() |
public Attribute()
public Attribute(String name, String id, String type, String value)
name
- name of the attributeid
- id that identify that attributetype
- which can be Text,Date, Boolean, Number, or ListOfValuevalue
- value of that attributepublic Attribute(String id, AttributeModel model, String value)
id
- id of an attributemodel
- model of an attributevalue
- value of this attributepublic void setValue(String value)
public AttributeModel getModel()
public void setModel(AttributeModel model)
public String getValue()
public void setId(String id)
public String getId()
Copyright © 2018 DocDoku. All rights reserved.