public class Property extends Object implements Externalizable
| Constructor and Description |
|---|
Property()
The default constructor.
|
Property(String name,
String value)
The constructor.
|
Property(String name,
String value,
PropertyType type)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName() |
Double |
getNumber() |
PropertyType |
getType() |
String |
getValue() |
int |
hashCode() |
void |
readExternal(ObjectInput ois) |
void |
setName(String name) |
void |
setNumber(Double number) |
void |
setType(PropertyType type) |
void |
setValue(String value) |
String |
toString() |
void |
writeExternal(ObjectOutput oos) |
public Property()
public Property(String name, String value)
name - The namevalue - The valuepublic Property(String name, String value, PropertyType type)
name - The namevalue - The valuetype - The typepublic String getName()
public void setName(String name)
name - the name to setpublic String getValue()
public void setValue(String value)
value - the value to setpublic PropertyType getType()
public void setType(PropertyType type)
type - the type to setpublic Double getNumber()
public void setNumber(Double number)
number - the number to setpublic void readExternal(ObjectInput ois) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput oos) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.