java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.LayoutStandard
Record Components:
layout - the files and directories expected beneath the directory
schemaTypeGUID - unique identifier of the DirectorySchemaType that describes the layout
schemaTypeQualifiedName - qualified name of the DirectorySchemaType
ruleGUID - unique identifier of the LayoutStandardRule that governs the directory (null if there is none)
ruleQualifiedName - qualified name of the LayoutStandardRule (null if there is none)
enforcementMode - enforcement mode from the LayoutStandardRule (null if there is no rule, or it is not set)

public record LayoutStandard(DirectoryLayout layout, String schemaTypeGUID, String schemaTypeQualifiedName, String ruleGUID, String ruleQualifiedName, String enforcementMode) extends Record
LayoutStandard is the layout standard that applies to a directory, as retrieved from open metadata.
  • Field Details

    • ADVISORY

      public static final String ADVISORY
      Value of enforcementMode when violations are counted in the conformance score and nothing more.
      See Also:
    • ENFORCED

      public static final String ENFORCED
      Value of enforcementMode when each violation is also raised as a request for action.
      See Also:
  • Constructor Details

    • LayoutStandard

      public LayoutStandard(DirectoryLayout layout, String schemaTypeGUID, String schemaTypeQualifiedName, String ruleGUID, String ruleQualifiedName, String enforcementMode)
      Creates an instance of a LayoutStandard record class.
      Parameters:
      layout - the value for the layout record component
      schemaTypeGUID - the value for the schemaTypeGUID record component
      schemaTypeQualifiedName - the value for the schemaTypeQualifiedName record component
      ruleGUID - the value for the ruleGUID record component
      ruleQualifiedName - the value for the ruleQualifiedName record component
      enforcementMode - the value for the enforcementMode record component
  • Method Details

    • isEnforced

      public boolean isEnforced()
      Is each violation to be raised as a request for action? This needs a LayoutStandardRule - a layout that is attached to a directory without one is advisory. A rule is enforced unless its enforcement mode is advisory.
      Returns:
      boolean
    • getEffectiveEnforcementMode

      public String getEffectiveEnforcementMode()
      Return the enforcement mode that is in effect.
      Returns:
      advisory or enforced
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • layout

      public DirectoryLayout layout()
      Returns the value of the layout record component.
      Returns:
      the value of the layout record component
    • schemaTypeGUID

      public String schemaTypeGUID()
      Returns the value of the schemaTypeGUID record component.
      Returns:
      the value of the schemaTypeGUID record component
    • schemaTypeQualifiedName

      public String schemaTypeQualifiedName()
      Returns the value of the schemaTypeQualifiedName record component.
      Returns:
      the value of the schemaTypeQualifiedName record component
    • ruleGUID

      public String ruleGUID()
      Returns the value of the ruleGUID record component.
      Returns:
      the value of the ruleGUID record component
    • ruleQualifiedName

      public String ruleQualifiedName()
      Returns the value of the ruleQualifiedName record component.
      Returns:
      the value of the ruleQualifiedName record component
    • enforcementMode

      public String enforcementMode()
      Returns the value of the enforcementMode record component.
      Returns:
      the value of the enforcementMode record component