public final class CProperty extends Object
Constructor and Description |
---|
CProperty(String name,
Class<?> type,
Object value)
Constructs this CProperty from the supplied type and value.
|
CProperty(String name,
Object value)
Constructs this CProperty from the supplied name and value.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of this CProperty.
|
Class<?> |
getType()
Gets the type of this CProperty.
|
Object |
getValue()
Gets the value of this CProperty.
|
void |
setValue(Object value)
Sets the value for this CProperty.
|
String |
toString()
Creates a String representation of this CProperty.
|
public CProperty(String name, Object value)
name
- The name for this CProperty.value
- The value for this CProperty.NullPointerException
- When either the supplied name or value is
null.IllegalArgumentException
- When the supplied name is empty.public CProperty(String name, Class<?> type, Object value)
name
- The name for this CProperty.type
- The type for this CProperty.value
- The value for this CProperty.NullPointerException
- When the supplied type is nullIllegalArgumentException
- When the supplied type does not match
the type of the supplied value.public String getName()
public Class<?> getType()
public Object getValue()
public void setValue(Object value)
value
- The value for this CProperty.Copyright © 2008–2018. All rights reserved.