Interface SchemaFacet
-
- All Known Subinterfaces:
SchemaFacetBoundary,SchemaFacetBoundaryMaxExclusive,SchemaFacetBoundaryMaxInclusive,SchemaFacetBoundaryMinExclusive,SchemaFacetBoundaryMinInclusive,SchemaFacetEnumeration,SchemaFacetExcludeSegment,SchemaFacetExcludeValue,SchemaFacetFractionDigits,SchemaFacetLength,SchemaFacetMaxLength,SchemaFacetMinLength,SchemaFacetOnLength,SchemaFacetOnMandatoryField,SchemaFacetPattern,SchemaFacetTableRef,SchemaFacetTotalDigits
public interface SchemaFacetCommon interface for constraints on data types (also known as constraining facets in XML Schema).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDocumentation(Locale aLocale, ValueContext aContext)Returns the end-user documentation for this facet.SchemaFacetValidationMessagegetFacetValidationMessage()Returns the validation message defined in the data model.SchemaNodegetSchemaNode()Returns the node associated to this facet.SchemaFacetValidationPolicygetValidationPolicy()Returns the validation policy of this facet.booleanisEnumerationList()Returnstrueif this facet defines an enumeration of possible values.booleanisEnumerationNomenclature()Returnstrueif this facet defines a nomenclature.booleanisEnumerationTableRef()Returnstrueif this facet is a foreign key constraint (osd:tableRef).booleanisFacetBoundaryMaxExclusive()Returnstrueif this facet is amaxExclusivefacet.booleanisFacetBoundaryMaxInclusive()Returnstrueif this facet is amaxInclusivefacet.booleanisFacetBoundaryMinExclusive()Returnstrueif this facet is aminExclusivefacet.booleanisFacetBoundaryMinInclusive()Returnstrueif this facet is aminInclusivefacet.booleanisFacetEnumeration()Returnstrueif this facet defines either anenumerationor anomenclature.booleanisFacetExcludeSegment()Returnstrueif this facet is anexcludeSegmentfacet.booleanisFacetExcludeValue()Returnstrueif this facet is anexcludeValuefacet.booleanisFacetFractionDigits()Returnstrueif this facet is afractionDigitsfacet.booleanisFacetLength()Returnstrueif this facet is alengthfacet.booleanisFacetMaxLength()Returnstrueif this facet is amaxLengthfacet.booleanisFacetMinLength()Returnstrueif this facet is aminLengthfacet.booleanisFacetOnMandatoryField()Returnstrueif this facet is related to a mandatory field (defines bothminOccurs="1"maxOccurs="1").booleanisFacetOResource()Returnstrueif this facet is aresourceconstraint.booleanisFacetPattern()Returnstrueif this facet is apatternfacet.booleanisFacetTotalDigits()Returnstrueif this facet is atotalDigitsfacet.
-
-
-
Method Detail
-
getSchemaNode
SchemaNode getSchemaNode()
Returns the node associated to this facet.- Since:
- 6.0.0
-
getDocumentation
String getDocumentation(Locale aLocale, ValueContext aContext)
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:
Constraint.toUserDocumentation(Locale, ValueContext)
-
isFacetOnMandatoryField
boolean isFacetOnMandatoryField()
Returnstrueif this facet is related to a mandatory field (defines bothminOccurs="1"maxOccurs="1").- Since:
- 6.0.0
- See Also:
SchemaFacetOnMandatoryField
-
isFacetLength
boolean isFacetLength()
Returnstrueif this facet is alengthfacet.- See Also:
SchemaFacetLength
-
isFacetMinLength
boolean isFacetMinLength()
Returnstrueif this facet is aminLengthfacet.- See Also:
SchemaFacetMinLength
-
isFacetMaxLength
boolean isFacetMaxLength()
Returnstrueif this facet is amaxLengthfacet.- See Also:
SchemaFacetMaxLength
-
isFacetPattern
boolean isFacetPattern()
Returnstrueif this facet is apatternfacet.- See Also:
SchemaFacetPattern
-
isFacetOResource
boolean isFacetOResource()
Returnstrueif this facet is aresourceconstraint.- See Also:
SchemaFacetOResource
-
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:
SchemaFacetEnumeration
- 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:
SchemaFacetEnumeration
- 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:
SchemaFacetTableRef
-
isFacetBoundaryMaxInclusive
boolean isFacetBoundaryMaxInclusive()
Returnstrueif this facet is amaxInclusivefacet.- See Also:
SchemaFacetBoundaryMaxInclusive
-
isFacetBoundaryMaxExclusive
boolean isFacetBoundaryMaxExclusive()
Returnstrueif this facet is amaxExclusivefacet.- See Also:
SchemaFacetBoundaryMaxExclusive
-
isFacetBoundaryMinExclusive
boolean isFacetBoundaryMinExclusive()
Returnstrueif this facet is aminExclusivefacet.- See Also:
SchemaFacetBoundaryMinExclusive
-
isFacetBoundaryMinInclusive
boolean isFacetBoundaryMinInclusive()
Returnstrueif this facet is aminInclusivefacet.- See Also:
SchemaFacetBoundaryMinInclusive
-
isFacetTotalDigits
boolean isFacetTotalDigits()
Returnstrueif this facet is atotalDigitsfacet.- See Also:
SchemaFacetTotalDigits
-
isFacetFractionDigits
boolean isFacetFractionDigits()
Returnstrueif this facet is afractionDigitsfacet.- See Also:
SchemaFacetFractionDigits
-
isFacetExcludeValue
boolean isFacetExcludeValue()
Returnstrueif this facet is anexcludeValuefacet.- See Also:
SchemaFacetExcludeValue
-
isFacetExcludeSegment
boolean isFacetExcludeSegment()
Returnstrueif this facet is anexcludeSegmentfacet.- See Also:
SchemaFacetExcludeSegment
-
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:
SchemaFacetValidationPolicy
-
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:
SchemaFacetValidationMessage
-
-