Class AbstractValidationContext
- java.lang.Object
-
- org.apache.jackrabbit.vault.validation.context.AbstractValidationContext
-
- All Implemented Interfaces:
ValidationContext
- Direct Known Subclasses:
ArchiveValidationContext
public abstract class AbstractValidationContext extends Object implements ValidationContext
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull Map<String,Object>
attributes
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractValidationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
Retrieves the value of the attribute with the given name.Set<String>
getAttributeNames()
Returns a set of all attribute names which have been set before.Object
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, wait
-
Methods inherited from interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
getContainerValidationContext, getDependenciesPackageInfo, getFilter, getPackageRootPath, getProperties, isIncremental
-
-
-
-
Method Detail
-
setAttribute
public Object setAttribute(String name, Object value)
Description copied from interface:ValidationContext
Sets an attribute with the given name to the given value.- Specified by:
setAttribute
in 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
null
if there was no value set - See Also:
ValidationContext.getAttribute(String)
-
getAttribute
public Object getAttribute(String name)
Description copied from interface:ValidationContext
Retrieves the value of the attribute with the given name.- Specified by:
getAttribute
in interfaceValidationContext
- Parameters:
name
- the name of the attribute to retrieve- Returns:
- the value of the attribute with the given name or
null
if there was no value set - See Also:
ValidationContext.setAttribute(String, Object)
,ValidationContext.getAttributeNames()
-
getAttributeNames
public Set<String> getAttributeNames()
Description copied from interface:ValidationContext
Returns a set of all attribute names which have been set before.- Specified by:
getAttributeNames
in interfaceValidationContext
- Returns:
- a set of attribute names which contain values
- See Also:
ValidationContext.getAttribute(String)
,ValidationContext.setAttribute(String, Object)
-
-