Record Class LayoutStandard
java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.LayoutStandard
- Record Components:
layout- the files and directories expected beneath the directoryschemaTypeGUID- unique identifier of the DirectorySchemaType that describes the layoutschemaTypeQualifiedName- qualified name of the DirectorySchemaTyperuleGUID- 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLayoutStandard(DirectoryLayout layout, String schemaTypeGUID, String schemaTypeQualifiedName, String ruleGUID, String ruleQualifiedName, String enforcementMode) Creates an instance of aLayoutStandardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenforcementModerecord component.final booleanIndicates whether some other object is "equal to" this one.Return the enforcement mode that is in effect.final inthashCode()Returns a hash code value for this object.booleanIs 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.layout()Returns the value of thelayoutrecord component.ruleGUID()Returns the value of theruleGUIDrecord component.Returns the value of theruleQualifiedNamerecord component.Returns the value of theschemaTypeGUIDrecord component.Returns the value of theschemaTypeQualifiedNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ADVISORY
Value of enforcementMode when violations are counted in the conformance score and nothing more.- See Also:
-
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 aLayoutStandardrecord class.- Parameters:
layout- the value for thelayoutrecord componentschemaTypeGUID- the value for theschemaTypeGUIDrecord componentschemaTypeQualifiedName- the value for theschemaTypeQualifiedNamerecord componentruleGUID- the value for theruleGUIDrecord componentruleQualifiedName- the value for theruleQualifiedNamerecord componentenforcementMode- the value for theenforcementModerecord 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
Return the enforcement mode that is in effect.- Returns:
- advisory or enforced
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-
schemaTypeGUID
Returns the value of theschemaTypeGUIDrecord component.- Returns:
- the value of the
schemaTypeGUIDrecord component
-
schemaTypeQualifiedName
Returns the value of theschemaTypeQualifiedNamerecord component.- Returns:
- the value of the
schemaTypeQualifiedNamerecord component
-
ruleGUID
Returns the value of theruleGUIDrecord component.- Returns:
- the value of the
ruleGUIDrecord component
-
ruleQualifiedName
Returns the value of theruleQualifiedNamerecord component.- Returns:
- the value of the
ruleQualifiedNamerecord component
-
enforcementMode
Returns the value of theenforcementModerecord component.- Returns:
- the value of the
enforcementModerecord component
-