Class Facets

java.lang.Object
org.rumbledb.types.Facets

public class Facets extends Object
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 Details

    • Facets

      public Facets()
  • Method Details

    • getIntegerFacets

      public static Facets getIntegerFacets()
      Returns:
      Facets for the integer derived type (fractionDigits=0, pattern per XSD 1.1 §3.4.13)
    • createMinMaxFacets

      public static Facets createMinMaxFacets(Item min, Item max, boolean isInclusive)
    • createMinFacets

      public static Facets createMinFacets(Item min, boolean isInclusive)
    • createMaxFacets

      public static Facets createMaxFacets(Item max, boolean isInclusive)
    • createTimezoneFacets

      public static Facets createTimezoneFacets(TimezoneFacet explicitTimezone)
    • getMinInclusive

      public Item getMinInclusive()
    • setMinInclusive

      public void setMinInclusive(Item minInclusive)
    • getMaxInclusive

      public Item getMaxInclusive()
    • setMaxInclusive

      public void setMaxInclusive(Item maxInclusive)
    • getMinExclusive

      public Item getMinExclusive()
    • setMinExclusive

      public void setMinExclusive(Item minExclusive)
    • getMaxExclusive

      public Item getMaxExclusive()
    • setMaxExclusive

      public void setMaxExclusive(Item maxExclusive)
    • getLength

      public Integer getLength()
    • setLength

      public void setLength(Integer length)
    • getMinLength

      public Integer getMinLength()
    • setMinLength

      public void setMinLength(Integer minLength)
    • getMaxLength

      public Integer getMaxLength()
    • setMaxLength

      public void setMaxLength(Integer maxLength)
    • getTotalDigits

      public Integer getTotalDigits()
    • setTotalDigits

      public void setTotalDigits(Integer totalDigits)
    • getFractionDigits

      public Integer getFractionDigits()
    • setFractionDigits

      public void setFractionDigits(Integer fractionDigits)
    • getConstraints

      public List<String> getConstraints()
    • setConstraints

      public void setConstraints(List<String> constraints)
    • getEnumeration

      public List<Item> getEnumeration()
    • setEnumeration

      public void setEnumeration(List<Item> enumeration)
    • getExplicitTimezone

      public TimezoneFacet getExplicitTimezone()
    • setExplicitTimezone

      public void setExplicitTimezone(TimezoneFacet explicitTimezone)
    • getWhiteSpace

      public WhitespaceFacet getWhiteSpace()
    • setWhiteSpace

      public void setWhiteSpace(WhitespaceFacet whiteSpace)
    • getPattern

      public List<String> getPattern()
    • setPattern

      public void setPattern(List<String> pattern)
    • getOrdered

      public OrderedFacetValue getOrdered()
    • setOrdered

      public void setOrdered(OrderedFacetValue ordered)
    • getBounded

      public Boolean getBounded()
    • setBounded

      public void setBounded(Boolean bounded)
    • getCardinality

      public CardinalityFacetValue getCardinality()
    • setCardinality

      public void setCardinality(CardinalityFacetValue cardinality)
    • getNumeric

      public Boolean getNumeric()
    • setNumeric

      public void setNumeric(Boolean numeric)
    • createPatternFacets

      public static Facets createPatternFacets(List<String> patterns)
      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

      public static Facets createWhitespaceFacets(WhitespaceFacet whiteSpace)
    • createAtomicTypeFacets

      public static Facets createAtomicTypeFacets(Integer length, List<Item> enumeration, Integer minLength, Integer maxLength, Item minInclusive, Item maxInclusive, Item minExclusive, Item maxExclusive, Integer totalDigits, Integer fractionDigits)