Class PrometheusValidateInfoSet<T extends PrometheusDataInfoItem>
java.lang.Object
io.github.tonywasher.joceanus.prometheus.validate.PrometheusValidateInfoSet<T>
- Type Parameters:
T- the infoItem type
Validate InfoSet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidautoCorrect(PrometheusDataInfoClass pClass) AutoCorrect an existing value (if necessary).voidautoCorrect(PrometheusDataInfoSet<T> pInfoSet) autoCorrect values after change.Obtain the owner.Obtain the infoSet.getOwner()Obtain the owner.abstract MetisFieldRequiredDetermine if an infoSet class is required.protected voidsetDefault(PrometheusDataInfoClass pClass) Set default value for a class.voidstoreEditSet(PrometheusEditSet pEditSet) Store EditSet details.voidstoreInfoSet(PrometheusDataInfoSet<T> pInfoSet) Store InfoSet details.voidvalidate(PrometheusDataInfoSet<T> pInfoSet) Validate the infoSet.abstract voidvalidateClass(T pInfo, PrometheusDataInfoClass pClass) Validate the class.
-
Constructor Details
-
PrometheusValidateInfoSet
protected PrometheusValidateInfoSet()Constructor.
-
-
Method Details
-
getEditSet
Obtain the owner.- Returns:
- the owner
-
getInfoSet
Obtain the infoSet.- Returns:
- the infoSet
-
getOwner
Obtain the owner.- Returns:
- the owner
-
storeEditSet
Store EditSet details.- Parameters:
pEditSet- the editSet
-
storeInfoSet
Store InfoSet details.- Parameters:
pInfoSet- the infoSet
-
validate
Validate the infoSet.- Parameters:
pInfoSet- the infoSet
-
isClassRequired
Determine if an infoSet class is required.- Parameters:
pClass- the infoSet class- Returns:
- the status
-
validateClass
Validate the class.- Parameters:
pInfo- the infopClass- the infoClass
-
autoCorrect
autoCorrect values after change.- Parameters:
pInfoSet- the infoSet- Throws:
OceanusException- on error
-
setDefault
Set default value for a class.- Parameters:
pClass- the class to autoCorrect- Throws:
OceanusException- on error
-
autoCorrect
AutoCorrect an existing value (if necessary).- Parameters:
pClass- the class to autoCorrect- Throws:
OceanusException- on error
-