Interface HeaderDescriptor.AttributeConstraintFilter

All Known Implementing Classes:
HeaderDescriptor.DefaultAttributeConstraintFilter
Enclosing class:
HeaderDescriptor

public static interface HeaderDescriptor.AttributeConstraintFilter
Filter which decides if an attribute has to be treated as mandatory and initial only.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Is the given attribute described by given descriptor initial only?
    boolean
    Is the given attribute described by given descriptor mandatory?
  • Method Details

    • isMandatory

      boolean isMandatory(AttributeDescriptor ad)
      Is the given attribute described by given descriptor mandatory?
      Parameters:
      ad - attribute descriptor to check for mandatory property
      Returns:
      true if attribute has to be treated as mandatory
    • isInitialOnly

      boolean isInitialOnly(AttributeDescriptor ad)
      Is the given attribute described by given descriptor initial only?
      Parameters:
      ad - attribute descriptor to check for initial only property
      Returns:
      true if attribute has to be treated as initial only