public interface SchemaFacet
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentation(Locale aLocale,
ValueContext aContext)
Returns the end-user documentation for this facet.
|
SchemaFacetValidationPolicy |
getValidationPolicy()
Returns the validation policy of this facet.
|
boolean |
isEnumerationList()
Returns
true if this facet defines an enumeration of
possible values. |
boolean |
isEnumerationNomenclature()
Returns
true if this facet defines a nomenclature. |
boolean |
isEnumerationTableRef()
Returns
true if this facet is a
foreign key constraint (osd:tableRef). |
boolean |
isFacetBoundaryMaxExclusive()
Returns
true if this facet is a
maxExclusive facet. |
boolean |
isFacetBoundaryMaxInclusive()
Returns
true if this facet is a
maxInclusive facet. |
boolean |
isFacetBoundaryMinExclusive()
Returns
true if this facet is a
minExclusive facet. |
boolean |
isFacetBoundaryMinInclusive()
Returns
true if this facet is a
minInclusive facet. |
boolean |
isFacetEnumeration()
Returns
true if this facet defines either an
enumeration or a nomenclature. |
boolean |
isFacetExcludeSegment()
Returns
true if this facet is an
excludeSegment facet. |
boolean |
isFacetExcludeValue()
Returns
true if this facet is an
excludeValue facet. |
boolean |
isFacetFractionDigits()
Returns
true if this facet is a
fractionDigits facet. |
boolean |
isFacetLength()
Returns
true if this facet is a length facet. |
boolean |
isFacetMaxLength()
Returns
true if this facet is a maxLength facet. |
boolean |
isFacetMinLength()
Returns
true if this facet is a minLength facet. |
boolean |
isFacetOResource()
Returns
true if this facet is a resource constraint. |
boolean |
isFacetPattern()
Returns
true if this facet is a pattern facet. |
boolean |
isFacetTotalDigits()
Returns
true if this facet is a
totalDigits facet. |
String getDocumentation(Locale aLocale, ValueContext aContext)
null on programmatic extended facets
if it is called during the compilation of the associated data model.IllegalArgumentException - if an argument is null.Constraint.toUserDocumentation(Locale, ValueContext)boolean isFacetLength()
true if this facet is a length facet.SchemaFacetLengthboolean isFacetMinLength()
true if this facet is a minLength facet.SchemaFacetMinLengthboolean isFacetMaxLength()
true if this facet is a maxLength facet.SchemaFacetMaxLengthboolean isFacetPattern()
true if this facet is a pattern facet.SchemaFacetPatternboolean isFacetOResource()
true if this facet is a resource constraint.SchemaFacetOResourceboolean isEnumerationList()
true if this facet defines an enumeration of
possible values.
This is the case for the following facets:
foreign key constraint;xs:enumeration;osd:enumeration;enumeration constraint.SchemaFacetEnumerationboolean isEnumerationNomenclature()
true if this facet defines a nomenclature.
This is the case for the following facets:
osd:nomenclature (deprecated);osd:FacetOResource;osd:nomenclature (deprecated);nomenclature constraint (deprecated).SchemaFacetEnumerationboolean isFacetEnumeration()
true if this facet defines either an
enumeration or a nomenclature.boolean isEnumerationTableRef()
true if this facet is a
foreign key constraint (osd:tableRef).SchemaFacetTableRefboolean isFacetBoundaryMaxInclusive()
true if this facet is a
maxInclusive facet.SchemaFacetBoundaryMaxInclusiveboolean isFacetBoundaryMaxExclusive()
true if this facet is a
maxExclusive facet.SchemaFacetBoundaryMaxExclusiveboolean isFacetBoundaryMinExclusive()
true if this facet is a
minExclusive facet.SchemaFacetBoundaryMinExclusiveboolean isFacetBoundaryMinInclusive()
true if this facet is a
minInclusive facet.SchemaFacetBoundaryMinInclusiveboolean isFacetTotalDigits()
true if this facet is a
totalDigits facet.SchemaFacetTotalDigitsboolean isFacetFractionDigits()
true if this facet is a
fractionDigits facet.SchemaFacetFractionDigitsboolean isFacetExcludeValue()
true if this facet is an
excludeValue facet.SchemaFacetExcludeValueboolean isFacetExcludeSegment()
true if this facet is an
excludeSegment facet.SchemaFacetExcludeSegmentSchemaFacetValidationPolicy getValidationPolicy()
osd:validation.SchemaFacetValidationPolicy