Package snap.props
Class PropSet
java.lang.Object
snap.props.PropSet
This class holds a list of props for a PropObject class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a Prop.addPropNamed
(String aPropName, Class<?> aClass) Adds new property for given name and class.addPropNamed
(String aPropName, Class<?> aClass, Object aDefault) Adds new property for given name, class and default value.protected void
Clears any caches.Prop[]
Returns array of archival props (Prop.SkipArchival is false).Returns the default object.getPropForName
(String aName) Returns a prop for given name.String[]
Returns all known property names.Class<? extends PropObject>
Returns the PropObject class.Prop[]
getProps()
Returns the props.static PropSet
getPropSetForPropObject
(PropObject aPropObj) Returns the PropSet for given class.void
removeProp
(int anIndex) Removes prop at given index.void
removeProp
(Prop aProp) Removes prop at given index.toString()
Standard toString implementation.
-
Constructor Details
-
PropSet
Constructor.
-
-
Method Details
-
getPropObjectClass
Returns the PropObject class. -
getProps
Returns the props. -
addProp
Adds a Prop. -
removeProp
public void removeProp(int anIndex) Removes prop at given index. -
removeProp
Removes prop at given index. -
getPropForName
Returns a prop for given name. -
addPropNamed
Adds new property for given name and class. -
addPropNamed
Adds new property for given name, class and default value. -
getDefaultInstance
Returns the default object. -
getPropNames
Returns all known property names. -
getArchivalProps
Returns array of archival props (Prop.SkipArchival is false). -
clearCaches
protected void clearCaches()Clears any caches. -
toString
Standard toString implementation. -
getPropSetForPropObject
Returns the PropSet for given class.
-