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 Facets
createAtomicTypeFacets
(Integer length, List<Item> enumeration, Integer minLength, Integer maxLength, Item minInclusive, Item maxInclusive, Item minExclusive, Item maxExclusive, Integer totalDigits, Integer fractionDigits) static Facets
createMaxFacets
(Item max, boolean isInclusive) static Facets
createMinFacets
(Item min, boolean isInclusive) static Facets
createMinMaxFacets
(Item min, Item max, boolean isInclusive) static Facets
createTimezoneFacets
(TimezoneFacet explicitTimezone) static Facets
void
setConstraints
(List<String> constraints) void
setEnumeration
(List<Item> enumeration) void
setExplicitTimezone
(TimezoneFacet explicitTimezone) void
setFractionDigits
(Integer fractionDigits) void
void
setMaxExclusive
(Item maxExclusive) void
setMaxInclusive
(Item maxInclusive) void
setMaxLength
(Integer maxLength) void
setMinExclusive
(Item minExclusive) void
setMinInclusive
(Item minInclusive) void
setMinLength
(Integer minLength) void
setTotalDigits
(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
-