|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.ghn.service.handlers.Property
public class Property
A named property with a value and a description.
| Constructor Summary | |
|---|---|
Property(String name,
Object value)
Creates an instance with a given name and value. |
|
Property(String name,
Object value,
String description)
Creates an instance with a given name, value, and description. |
|
| Method Summary | ||
|---|---|---|
String |
description()
Returns the description of this property. |
|
void |
display(boolean display)
Sets whether the property is intended for display |
|
boolean |
equals(Object obj)
|
|
int |
hashCode()
|
|
boolean |
is(Class<?> type)
Returns true if the value of this property has a given type. |
|
boolean |
isDisplay()
Returns true if the property is intended for display |
|
String |
name()
Returns the name of this property. |
|
String |
toString()
|
|
Object |
value()
Returns the value of this property. |
|
|
value(Class<S> type)
Returns the value of this property under a given type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Property(String name,
Object value)
name - the namevalue - the value
public Property(String name,
Object value,
String description)
name - the namevalue - the valuedescription - the description| Method Detail |
|---|
public String name()
public void display(boolean display)
display - true if the property is intended for displaypublic boolean isDisplay()
true if the property is intended for display
true if the property is intended for displaypublic Object value()
public <S> S value(Class<S> type)
IllegalStateException - if the value cannot be returned under the given type.public boolean is(Class<?> type)
true if the value of this property has a given type.
type - the type
true if the value of this property has a given typepublic String description()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||