@Entity public class Property extends Object implements Serializable
Type | Property and Description |
---|---|
XmlProperty |
toXml |
Constructor and Description |
---|
Property()
Creates a new instance of Property.
|
Property(String name)
Creates a new instance of Property.
|
Property(String name,
Set<Attribute> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attribute)
Adds a attribute to the collection.
|
boolean |
equals(Object o) |
Set<Attribute> |
getAttributes() |
Set<Attribute> |
getAttributeSet() |
int |
getGroupingNum()
Getter for property id.
|
Long |
getId()
Getter for property id.
|
String |
getName()
Getter for property name.
|
State |
getState() |
int |
hashCode() |
void |
setAttributes(Set<Attribute> attributes) |
void |
setGroupingNum(int groupingNum)
Setter for property id.
|
void |
setId(Long id)
Setter for property id.
|
void |
setName(String name)
Setter for property name.
|
void |
setState(State state) |
static String |
toLogger(Property data)
Creates a compact string representation for the log.
|
XmlProperty |
toXmlProperty() |
public Property()
public Property(String name)
name
- value
- public Long getId()
public void setId(Long id)
id
- property idpublic int getGroupingNum()
public void setGroupingNum(int groupingNum)
id
- property idpublic String getName()
public void setName(String name)
name
- property namepublic State getState()
public void setState(State state)
public void setAttributes(Set<Attribute> attributes)
attributes
- the attributes to setpublic void addAttribute(Attribute attribute)
attribute
- public XmlProperty toXmlProperty()
public static String toLogger(Property data)
data
- the Property to logCopyright © 2010-2014 Michigan State University. All Rights Reserved.