Interface SchemaFacet

    • Method Detail

      • getSchemaNode

        SchemaNode getSchemaNode()
        Returns the node associated to this facet.
        Since:
        6.0.0
      • isFacetOnMandatoryField

        boolean isFacetOnMandatoryField()
        Returns true if this facet is related to a mandatory field (defines both minOccurs="1" maxOccurs="1").
        Since:
        6.0.0
        See Also:
        SchemaFacetOnMandatoryField
      • isFacetLength

        boolean isFacetLength()
        Returns true if this facet is a length facet.
        See Also:
        SchemaFacetLength
      • isFacetMinLength

        boolean isFacetMinLength()
        Returns true if this facet is a minLength facet.
        See Also:
        SchemaFacetMinLength
      • isFacetMaxLength

        boolean isFacetMaxLength()
        Returns true if this facet is a maxLength facet.
        See Also:
        SchemaFacetMaxLength
      • isFacetPattern

        boolean isFacetPattern()
        Returns true if this facet is a pattern facet.
        See Also:
        SchemaFacetPattern
      • isFacetOResource

        boolean isFacetOResource()
        Returns true if this facet is a resource constraint.
        See Also:
        SchemaFacetOResource
      • isEnumerationList

        boolean isEnumerationList()
        Returns true if this facet defines an enumeration of possible values. This is the case for the following facets:
        • a foreign key constraint;
        • a static enumeration defined with the standard XML Schema facet xs:enumeration;
        • a dynamic enumeration defined with the extended facet osd:enumeration;
        • a programmatic enumeration constraint.
        See Also:
        SchemaFacetEnumeration
      • isEnumerationNomenclature

        boolean isEnumerationNomenclature()
        Returns true if this facet defines a nomenclature. This is the case for the following facets:
        • a static nomenclature defined with the extended facet osd:nomenclature (deprecated);
        • a resource facet, osd:FacetOResource;
        • a dynamic nomenclature defined with the extended facet osd:nomenclature (deprecated);
        • a programmatic nomenclature constraint (deprecated).
        See Also:
        SchemaFacetEnumeration
      • isEnumerationTableRef

        boolean isEnumerationTableRef()
        Returns true if this facet is a foreign key constraint (osd:tableRef).
        See Also:
        SchemaFacetTableRef
      • isFacetBoundaryMaxInclusive

        boolean isFacetBoundaryMaxInclusive()
        Returns true if this facet is a maxInclusive facet.
        See Also:
        SchemaFacetBoundaryMaxInclusive
      • isFacetBoundaryMaxExclusive

        boolean isFacetBoundaryMaxExclusive()
        Returns true if this facet is a maxExclusive facet.
        See Also:
        SchemaFacetBoundaryMaxExclusive
      • isFacetBoundaryMinExclusive

        boolean isFacetBoundaryMinExclusive()
        Returns true if this facet is a minExclusive facet.
        See Also:
        SchemaFacetBoundaryMinExclusive
      • isFacetBoundaryMinInclusive

        boolean isFacetBoundaryMinInclusive()
        Returns true if this facet is a minInclusive facet.
        See Also:
        SchemaFacetBoundaryMinInclusive
      • isFacetTotalDigits

        boolean isFacetTotalDigits()
        Returns true if this facet is a totalDigits facet.
        See Also:
        SchemaFacetTotalDigits
      • isFacetFractionDigits

        boolean isFacetFractionDigits()
        Returns true if this facet is a fractionDigits facet.
        See Also:
        SchemaFacetFractionDigits
      • isFacetExcludeValue

        boolean isFacetExcludeValue()
        Returns true if this facet is an excludeValue facet.
        See Also:
        SchemaFacetExcludeValue
      • isFacetExcludeSegment

        boolean isFacetExcludeSegment()
        Returns true if this facet is an excludeSegment facet.
        See Also:
        SchemaFacetExcludeSegment
      • getFacetValidationMessage

        SchemaFacetValidationMessage getFacetValidationMessage()
        Returns the validation message defined in the data model. Validation messages are defined within the element osd:validation, osd:enumerationValidation or osd:mandatoryErrorMessage.
        Since:
        6.0.0
        See Also:
        SchemaFacetValidationMessage