Class AbstractValidationContext
java.lang.Object
org.apache.jackrabbit.vault.validation.context.AbstractValidationContext
- All Implemented Interfaces:
ValidationContext
- Direct Known Subclasses:
ArchiveValidationContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Retrieves the value of the attribute with the given name.Returns a set of all attribute names which have been set before.setAttribute(String name, Object value) Sets an attribute with the given name to the given value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
getContainerValidationContext, getDependenciesPackageInfo, getFilter, getPackageRootPath, getProperties, isIncremental
-
Field Details
-
attributes
-
-
Constructor Details
-
AbstractValidationContext
protected AbstractValidationContext()
-
-
Method Details
-
setAttribute
Description copied from interface:ValidationContextSets an attribute with the given name to the given value.- Specified by:
setAttributein interfaceValidationContext- Parameters:
name- the name of the attribute to setvalue- the value to set the attribute to- Returns:
- the old value of the attribute with the given name or
nullif there was no value set - See Also:
-
getAttribute
Description copied from interface:ValidationContextRetrieves the value of the attribute with the given name.- Specified by:
getAttributein interfaceValidationContext- Parameters:
name- the name of the attribute to retrieve- Returns:
- the value of the attribute with the given name or
nullif there was no value set - See Also:
-
getAttributeNames
Description copied from interface:ValidationContextReturns a set of all attribute names which have been set before.- Specified by:
getAttributeNamesin interfaceValidationContext- Returns:
- a set of attribute names which contain values
- See Also:
-