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