Class MetaProperty
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.metaproperties.MetaProperty
 
- 
- All Implemented Interfaces:
- CopyConstructorClonable,- java.io.Serializable
 - Direct Known Subclasses:
- TypedMetaProperty
 
 public class MetaProperty extends java.lang.Object implements java.io.Serializable, CopyConstructorClonable The base MetaProperty class. A metaproperty represets a setting. It has a name and a value. While not marked as abstract, there are currently no public constructors. The reason is that everything should ideally be a TypedMetaProperty.A WellKnownMetaProperty is a special typed meta property defining a common setting. Ideally each stored setting would have a defined WellKnownMetaProperty, since they have utilities to make it easier to retrieve/set setting values in a type safe way. Not-yet-implemented idea: A MetaProperty can be marked as Immutable, in which case its value cannot be changed and it cannot be altered/replaced/removed from a collection. The purpose of of immutable properties is to allow subclasses to enforce certain settings. By having immutable settings we could easily merge between StandardGroup and HistoricalGroup without worry. Another possible flag is REQUIRED (can't be removed) - See Also:
- TypedMetaProperty,- WellKnownMetaProperty, Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description MetaProperty()protectedMetaProperty(MetaProperty copy)protectedMetaProperty(java.lang.String name, java.lang.Object value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()java.lang.ObjectgetValue()<T> TgetValueAs(java.lang.Class<T> clazz)voidsetName(java.lang.String name)voidsetValue(java.lang.Object value)java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
MetaPropertypublic MetaProperty() 
 - 
MetaPropertyprotected MetaProperty(java.lang.String name, java.lang.Object value)
 - 
MetaPropertyprotected MetaProperty(MetaProperty copy) 
 
- 
 - 
Method Detail- 
getNamepublic final java.lang.String getName() 
 - 
setNamepublic void setName(java.lang.String name) 
 - 
getValueAspublic <T> T getValueAs(java.lang.Class<T> clazz) 
 - 
getValuepublic java.lang.Object getValue() 
 - 
setValuepublic void setValue(java.lang.Object value) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-