Package rife.cmf
Class ContentRepository
java.lang.Object
rife.validation.Validation
rife.cmf.ContentRepository
- All Implemented Interfaces:
Cloneable
,Constrained
,ConstrainedPropertyListener
,Validated
Contains the information that's required to describe a content repository.
- Since:
- 1.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used.getName()
Retrieves the name of the content repository.Sets the name of the content repository.void
Sets the name of the content repository.Methods inherited from class rife.validation.Validation
addConstrainedPropertyRules, addConstraint, addConstraint, addGroup, addRule, addValidationError, clone, constraintSet, countValidationErrors, focusGroup, generateConstrainedPropertyRules, getConstrainedBean, getConstrainedProperties, getConstrainedProperty, getErrorIndication, getGroup, getGroups, getLoadingErrors, getRules, getValidatedSubjects, getValidationErrors, hasPropertyConstraint, isSubjectValid, limitSubjectErrors, makeErrorValid, makeSubjectValid, provideValidatedBean, replaceValidationErrors, resetGroup, resetValidation, retrieveValidatedBean, unlimitSubjectErrors, validate, validate, validateGroup, validateGroup
-
Field Details
-
DEFAULT
- See Also:
-
-
Constructor Details
-
ContentRepository
public ContentRepository()Instantiates a newContentRepository
instance.- Since:
- 1.0
-
-
Method Details
-
activateValidation
public void activateValidation()Description copied from class:Validation
This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used.By overriding this method, you can thus isolate all the validation setup code and don't enforce a performance penalty at each object construction when doing it in the default constructor.
- Overrides:
activateValidation
in classValidation
-
name
Sets the name of the content repository.- Parameters:
name
- the name- Returns:
- the current
ContentRepository
instance - Since:
- 1.0
- See Also:
-
setName
Sets the name of the content repository.- Parameters:
name
- the name- Since:
- 1.0
- See Also:
-
getName
Retrieves the name of the content repository.- Returns:
null
if the storedContent
instance has no name; orthe name of the content
- Since:
- 1.0
- See Also:
-