Interface SchemaFacet
- All Known Subinterfaces:
SchemaFacetBoundary,SchemaFacetBoundaryMaxExclusive,SchemaFacetBoundaryMaxInclusive,SchemaFacetBoundaryMinExclusive,SchemaFacetBoundaryMinInclusive,SchemaFacetEnumeration,SchemaFacetExcludeSegment,SchemaFacetExcludeValue,SchemaFacetFractionDigits,SchemaFacetLength,SchemaFacetMaxLength,SchemaFacetMinLength,SchemaFacetOnLength,SchemaFacetOnMandatoryField,SchemaFacetPattern,SchemaFacetTableRef,SchemaFacetTotalDigits
public interface SchemaFacet
Common interface for constraints on data types
(also known as constraining facets in XML Schema).
-
Method Summary
Modifier and TypeMethodDescriptiongetDocumentation(Locale aLocale, ValueContext aContext) Returns the end-user documentation for this facet.Returns the validation message defined in the data model.Returns the node associated to this facet.Returns the validation policy of this facet.booleanReturnstrueif this facet defines an enumeration of possible values.booleanReturnstrueif this facet defines a nomenclature.booleanReturnstrueif this facet is a foreign key constraint (osd:tableRef).booleanReturnstrueif this facet is amaxExclusivefacet.booleanReturnstrueif this facet is amaxInclusivefacet.booleanReturnstrueif this facet is aminExclusivefacet.booleanReturnstrueif this facet is aminInclusivefacet.booleanReturnstrueif this facet defines either anenumerationor anomenclature.booleanReturnstrueif this facet is anexcludeSegmentfacet.booleanReturnstrueif this facet is anexcludeValuefacet.booleanReturnstrueif this facet is afractionDigitsfacet.booleanReturnstrueif this facet is alengthfacet.booleanReturnstrueif this facet is amaxLengthfacet.booleanReturnstrueif this facet is aminLengthfacet.booleanReturnstrueif this facet is related to a mandatory field (defines bothminOccurs="1"maxOccurs="1").booleanReturnstrueif this facet is aresourceconstraint.booleanReturnstrueif this facet is apatternfacet.booleanReturnstrueif this facet is atotalDigitsfacet.
-
Method Details
-
getSchemaNode
SchemaNode getSchemaNode()Returns the node associated to this facet.- Since:
- 6.0.0
-
getDocumentation
Returns the end-user documentation for this facet. This method can returnnullon programmatic extended facets if it is called during the compilation of the associated data model.- Throws:
IllegalArgumentException- if an argument isnull.- See Also:
-
isFacetOnMandatoryField
boolean isFacetOnMandatoryField()Returnstrueif this facet is related to a mandatory field (defines bothminOccurs="1"maxOccurs="1").- Since:
- 6.0.0
- See Also:
-
isFacetLength
boolean isFacetLength()Returnstrueif this facet is alengthfacet.- See Also:
-
isFacetMinLength
boolean isFacetMinLength()Returnstrueif this facet is aminLengthfacet.- See Also:
-
isFacetMaxLength
boolean isFacetMaxLength()Returnstrueif this facet is amaxLengthfacet.- See Also:
-
isFacetPattern
boolean isFacetPattern()Returnstrueif this facet is apatternfacet.- See Also:
-
isFacetOResource
boolean isFacetOResource()Returnstrueif this facet is aresourceconstraint.- See Also:
-
isEnumerationList
boolean isEnumerationList()Returnstrueif this facet defines an enumeration of possible values. This is the case for the following facets:- a
foreign keyconstraint; - 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:
- a
-
isEnumerationNomenclature
boolean isEnumerationNomenclature()Returnstrueif 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:
- a static nomenclature defined with the extended facet
-
isFacetEnumeration
boolean isFacetEnumeration()Returnstrueif this facet defines either anenumerationor anomenclature. -
isEnumerationTableRef
boolean isEnumerationTableRef()Returnstrueif this facet is a foreign key constraint (osd:tableRef).- See Also:
-
isFacetBoundaryMaxInclusive
boolean isFacetBoundaryMaxInclusive()Returnstrueif this facet is amaxInclusivefacet.- See Also:
-
isFacetBoundaryMaxExclusive
boolean isFacetBoundaryMaxExclusive()Returnstrueif this facet is amaxExclusivefacet.- See Also:
-
isFacetBoundaryMinExclusive
boolean isFacetBoundaryMinExclusive()Returnstrueif this facet is aminExclusivefacet.- See Also:
-
isFacetBoundaryMinInclusive
boolean isFacetBoundaryMinInclusive()Returnstrueif this facet is aminInclusivefacet.- See Also:
-
isFacetTotalDigits
boolean isFacetTotalDigits()Returnstrueif this facet is atotalDigitsfacet.- See Also:
-
isFacetFractionDigits
boolean isFacetFractionDigits()Returnstrueif this facet is afractionDigitsfacet.- See Also:
-
isFacetExcludeValue
boolean isFacetExcludeValue()Returnstrueif this facet is anexcludeValuefacet.- See Also:
-
isFacetExcludeSegment
boolean isFacetExcludeSegment()Returnstrueif this facet is anexcludeSegmentfacet.- See Also:
-
getValidationPolicy
SchemaFacetValidationPolicy getValidationPolicy()Returns the validation policy of this facet. Validation policy properties are defined under the elementosd:validation.- Since:
- 5.8.1
- See Also:
-
getFacetValidationMessage
SchemaFacetValidationMessage getFacetValidationMessage()Returns the validation message defined in the data model. Validation messages are defined within the elementosd:validation,osd:enumerationValidationorosd:mandatoryErrorMessage.- Since:
- 6.0.0
- See Also:
-