Class AbstractRangeFacet

Direct Known Subclasses:
AbstractDigitsFacet, XSDate, XSDateTime, XSDouble, XSDuration, XSFloat, XSGDay, XSGMonth, XSGMonthDay, XSGYear, XSGYearMonth, XSTime

public abstract class AbstractRangeFacet extends AbstractWhiteSpaceFacet
A base class for types which support the range, whiteSpace and pattern facets.
Since:
1.1
Version:
$Revision: 6623 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
Author:
Ralf Joachim
  • Constructor Details

    • AbstractRangeFacet

      public AbstractRangeFacet()
  • Method Details

    • hasMaximum

      public final boolean hasMaximum()
      Returns true if a maximum (inclusive or exclusive) has been set.
      Returns:
      True if a maximum (inclusive or exclusive) has been set.
    • getMaxExclusive

      public final String getMaxExclusive()
      Returns the maximum exclusive value that this XSDate can hold.
      Returns:
      The maximum exclusive value that this XSDate can hold. If no maximum exclusive value has been set, Null will be returned.
    • setMaxExclusive

      public final void setMaxExclusive(String max)
      Sets the maximum exclusive value that this XSDate can hold.
      Parameters:
      max - The maximum exclusive value this XSDate can be.
    • getMaxInclusive

      public final String getMaxInclusive()
      Returns the maximum inclusive value that this XSDate can hold.
      Returns:
      The maximum inclusive value that this XSDate can hold. If no maximum inclusive value has been set, Null will be returned.
    • setMaxInclusive

      public final void setMaxInclusive(String max)
      Sets the maximum inclusive value that this XSDate can hold.
      Parameters:
      max - The maximum inclusive value this XSDate can be.
    • hasMinimum

      public final boolean hasMinimum()
      Returns true if a minimum (inclusive or exclusive) has been set.
      Returns:
      True if a minimum (inclusive or exclusive) has been set.
    • getMinExclusive

      public final String getMinExclusive()
      Returns the minimum exclusive value that this XSDate can hold.
      Returns:
      The minimum exclusive value that this XSDate can hold. If no minimum exclusive value has been set, Null will be returned.
    • setMinExclusive

      public final void setMinExclusive(String min)
      Sets the minimum exclusive value that this XSDate can hold.
      Parameters:
      min - The minimum exclusive value this XSDate can be.
    • getMinInclusive

      public final String getMinInclusive()
      Returns the minimum inclusive value that this XSDate can hold.
      Returns:
      The minimum inclusive value that this XSDate can be.
    • setMinInclusive

      public final void setMinInclusive(String min)
      Sets the minimum inclusive value that this XSDate can hold.
      Parameters:
      min - The minimum inclusive value this XSDate can be.
    • setPositiveInfinity

      public final void setPositiveInfinity(String positiveInfity)
    • setNegativeInfinity

      public final void setNegativeInfinity(String negativeInfity)
    • hasPositiveInfinity

      public final boolean hasPositiveInfinity()
    • hasNegavtiveInfinity

      public final boolean hasNegavtiveInfinity()
    • getPositiveInfinity

      public final String getPositiveInfinity()
    • getNegativeInfinity

      public final String getNegativeInfinity()
    • setFacet

      protected void setFacet(Facet facet)
      Set the given facet for XSType if applicable.
      Overrides:
      setFacet in class AbstractWhiteSpaceFacet
      Parameters:
      facet - The facet to set for XSType.
    • setRangeFacet

      protected final void setRangeFacet(Facet facet)
      Transfer given facet if it is a range.
      Parameters:
      facet - The facet to transfer.
    • codeRangeFacet

      protected final void codeRangeFacet(JSourceCode jsc, String validatorName)
      Generate the source code for pattern facet validation.
      Parameters:
      jsc - The JSourceCode to fill in.
      validatorName - The name of the TypeValidator that the range should be added to.