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 FacetscreatePatternFacets(List<String> patterns) Creates a Facets with the given pattern regex strings.static FacetscreateTimezoneFacets(TimezoneFacet explicitTimezone) static FacetscreateWhitespaceFacets(WhitespaceFacet whiteSpace) static FacetsvoidsetBounded(Boolean bounded) voidsetCardinality(CardinalityFacetValue cardinality) voidsetConstraints(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) voidsetNumeric(Boolean numeric) voidsetOrdered(OrderedFacetValue ordered) voidsetPattern(List<String> pattern) voidsetTotalDigits(Integer totalDigits) voidsetWhiteSpace(WhitespaceFacet whiteSpace)
-
Constructor Details
-
Facets
public Facets()
-
-
Method Details
-
getIntegerFacets
- Returns:
- Facets for the integer derived type (fractionDigits=0, pattern per XSD 1.1 §3.4.13)
-
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
-
getWhiteSpace
-
setWhiteSpace
-
getPattern
-
setPattern
-
getOrdered
-
setOrdered
-
getBounded
-
setBounded
-
getCardinality
-
setCardinality
-
getNumeric
-
setNumeric
-
createPatternFacets
Creates a Facets with the given pattern regex strings. Multiple patterns in a single derivation step are OR-ed per XSD 1.1 §4.3.4.2.- Parameters:
patterns- regex strings for this derivation step- Returns:
- Facets containing the pattern
-
createWhitespaceFacets
-
createAtomicTypeFacets
-