Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.saxonica.schema
Class MaxLengthFacet

    java.lang.Object
      com.saxonica.schema.Facet
          com.saxonica.schema.LengthFacet
              com.saxonica.schema.MaxLengthFacet

All Implemented Interfaces:
  java.io.Serializable

public class MaxLengthFacet
extends LengthFacet

Represents the minLength facet

See Also:
  Serialized Form

Field Summary

Fields inherited from class com.saxonica.schema.Facet
`ENUMERATION, FRACTIONDIGITS, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, PATTERN, TOTALDIGITS, value, WHITESPACE`

Constructor Summary
`MaxLengthFacet()`

Method Summary
`void` | `checkFacetRestriction(UserSimpleType type, SimpleType base)` Check that this facet is legal when used on a type derived by restriction
`java.lang.String` | `getName()` Returns the name of this Facet
`boolean` | `testLength(int actualLength)` Test whether a supplied length conforms to this required length

Methods inherited from class com.saxonica.schema.LengthFacet
`getValue, setValue, testAtomicValue, toLong`

Methods inherited from class com.saxonica.schema.Facet
`appliesToWholeList, getWhitespaceAction, isFixed, setFixed`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MaxLengthFacet

    public MaxLengthFacet()

Method Detail

### getName

    public java.lang.String getName()

  Description copied from class: `Facet`
  Returns the name of this Facet

  Overrides:
    `getName` in class `LengthFacet`

### checkFacetRestriction

    public void checkFacetRestriction(UserSimpleType type,
                                      SimpleType base)
                               throws SchemaException,
                                      ValidationException

  Check that this facet is legal when used on a type derived by restriction

  Overrides:
    `checkFacetRestriction` in class `LengthFacet`
  Parameters:
    `base` - the type from which the restricted type is derived
  Throws:
    `SchemaException` - if the facet is not legal
    `ValidationException`

### testLength

    public boolean testLength(int actualLength)

  Test whether a supplied length conforms to this required length

  Overrides:
    `testLength` in class `LengthFacet`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD