Package snap.props
Class Prop
java.lang.Object
snap.props.Prop
This class represents a property.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Returns the default property class (if different from prop class).Returns the default value.getName()
Returns the name.Class<?>
Returns the return class.boolean
isArray()
Returns whether prop is array.boolean
Returns whether prop value already exists in parent (should be used in place during unarchival).boolean
Returns whether this prop can change an object's props (ArchivalPropsExtra).boolean
Returns whether prop is always instance of PropClass (subclasses not allowed).boolean
Returns whether prop is relation (not primitive).boolean
Returns whether this prop is skipped for archival.void
setDefaultPropClass
(Class<?> aClass) Sets the default property class (if different from prop class).void
setDefaultValue
(Object aValue) Sets the default value.void
setPreexisting
(boolean aValue) Sets whether prop value already exists in parent (should be used in place during unarchival).void
setPropChanger
(boolean aValue) Sets whether this prop can change an object's props (ArchivalPropsExtra).protected void
setPropClass
(Class<?> aClass) Sets the return class.void
setSkipArchival
(boolean aValue) Sets whether this prop is skipped for archival.toString()
Standard toString implementation.Standard toStringProps implementation.
-
Constructor Details
-
Prop
Constructor. -
Prop
Constructor.
-
-
Method Details
-
getName
Returns the name. -
getPropClass
Returns the return class. -
setPropClass
Sets the return class. -
getDefaultPropClass
Returns the default property class (if different from prop class). -
setDefaultPropClass
Sets the default property class (if different from prop class). -
isPropClassConstant
public boolean isPropClassConstant()Returns whether prop is always instance of PropClass (subclasses not allowed). This undoubtedly needs to be a real property one day (PropClassVaries?). -
isArray
public boolean isArray()Returns whether prop is array. -
isRelation
public boolean isRelation()Returns whether prop is relation (not primitive). -
getDefaultValue
Returns the default value. -
setDefaultValue
Sets the default value. -
isSkipArchival
public boolean isSkipArchival()Returns whether this prop is skipped for archival. -
setSkipArchival
public void setSkipArchival(boolean aValue) Sets whether this prop is skipped for archival. -
isPreexisting
public boolean isPreexisting()Returns whether prop value already exists in parent (should be used in place during unarchival). -
setPreexisting
public void setPreexisting(boolean aValue) Sets whether prop value already exists in parent (should be used in place during unarchival). -
isPropChanger
public boolean isPropChanger()Returns whether this prop can change an object's props (ArchivalPropsExtra). -
setPropChanger
public void setPropChanger(boolean aValue) Sets whether this prop can change an object's props (ArchivalPropsExtra). -
toString
Standard toString implementation. -
toStringProps
Standard toStringProps implementation.
-