Class HeaderDescriptor.DefaultAttributeConstraintFilter
- java.lang.Object
-
- de.hybris.platform.impex.jalo.header.HeaderDescriptor.DefaultAttributeConstraintFilter
-
- All Implemented Interfaces:
HeaderDescriptor.AttributeConstraintFilter
- Enclosing class:
- HeaderDescriptor
protected static class HeaderDescriptor.DefaultAttributeConstraintFilter extends java.lang.Object implements HeaderDescriptor.AttributeConstraintFilter
Default implementation of an attribute constraint filter which decides for mandatory if the attributeis not private and not optional and for initial only if it is not writable and and initial.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultAttributeConstraintFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisInitialOnly(AttributeDescriptor ad)Is the given attribute described by given descriptor initial only?booleanisMandatory(AttributeDescriptor ad)Is the given attribute described by given descriptor mandatory?
-
-
-
Method Detail
-
isInitialOnly
public boolean isInitialOnly(AttributeDescriptor ad)
Description copied from interface:HeaderDescriptor.AttributeConstraintFilterIs the given attribute described by given descriptor initial only?- Specified by:
isInitialOnlyin interfaceHeaderDescriptor.AttributeConstraintFilter- Parameters:
ad- attribute descriptor to check for initial only property- Returns:
- true if attribute has to be treated as initial only
-
isMandatory
public boolean isMandatory(AttributeDescriptor ad)
Description copied from interface:HeaderDescriptor.AttributeConstraintFilterIs the given attribute described by given descriptor mandatory?- Specified by:
isMandatoryin interfaceHeaderDescriptor.AttributeConstraintFilter- Parameters:
ad- attribute descriptor to check for mandatory property- Returns:
- true if attribute has to be treated as mandatory
-
-