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)
    • 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)