Package org.rumbledb.types
Class Facets
java.lang.Object
org.rumbledb.types.Facets
Facets class represent a container with the ability to get and set facets and is intended to be a mutable proxy that
will be passed to a DerivedAtomicType to indicate the specified facets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FacetscreateAtomicTypeFacets(Integer length, List<Item> enumeration, Integer minLength, Integer maxLength, Item minInclusive, Item maxInclusive, Item minExclusive, Item maxExclusive, Integer totalDigits, Integer fractionDigits) static FacetscreateMaxFacets(Item max, boolean isInclusive) static FacetscreateMinFacets(Item min, boolean isInclusive) static FacetscreateMinMaxFacets(Item min, Item max, boolean isInclusive) static FacetscreateTimezoneFacets(TimezoneFacet explicitTimezone) static FacetsvoidsetConstraints(List<String> constraints) voidsetEnumeration(List<Item> enumeration) voidsetExplicitTimezone(TimezoneFacet explicitTimezone) voidsetFractionDigits(Integer fractionDigits) voidvoidsetMaxExclusive(Item maxExclusive) voidsetMaxInclusive(Item maxInclusive) voidsetMaxLength(Integer maxLength) voidsetMinExclusive(Item minExclusive) voidsetMinInclusive(Item minInclusive) voidsetMinLength(Integer minLength) voidsetTotalDigits(Integer totalDigits)
-
Constructor Details
-
Facets
public Facets()
-
-
Method Details
-
getIntegerFacets
- Returns:
- Facets for the integer derived type
-
createMinMaxFacets
-
createMinFacets
-
createMaxFacets
-
createTimezoneFacets
-
getMinInclusive
-
setMinInclusive
-
getMaxInclusive
-
setMaxInclusive
-
getMinExclusive
-
setMinExclusive
-
getMaxExclusive
-
setMaxExclusive
-
getLength
-
setLength
-
getMinLength
-
setMinLength
-
getMaxLength
-
setMaxLength
-
getTotalDigits
-
setTotalDigits
-
getFractionDigits
-
setFractionDigits
-
getConstraints
-
setConstraints
-
getEnumeration
-
setEnumeration
-
getExplicitTimezone
-
setExplicitTimezone
-
createAtomicTypeFacets
-