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 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs the given attribute described by given descriptor initial only?booleanIs the given attribute described by given descriptor mandatory?
-
Constructor Details
-
DefaultAttributeConstraintFilter
protected DefaultAttributeConstraintFilter()
-
-
Method Details
-
isInitialOnly
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
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
-