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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis 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.voidSets 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 newContentRepositoryinstance.- Since:
- 1.0
-
-
Method Details
-
activateValidation
public void activateValidation()Description copied from class:ValidationThis 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:
activateValidationin classValidation
-
name
Sets the name of the content repository.- Parameters:
name- the name- Returns:
- the current
ContentRepositoryinstance - 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:
nullif the storedContentinstance has no name; orthe name of the content
- Since:
- 1.0
- See Also:
-