Top Description Fields Constructors Methods
com.sun.msv.datatype.xsd

public Class LengthFacet

extends DataTypeWithValueConstraintFacet
Class Inheritance
Imports
org.relaxng.datatype.DatatypeException, .ValidationContext

"length", "minLength", and "maxLength" facet validator. this class also detects inconsistent facet setting (for example, minLength=100 and maxLength=0)
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public final int
private static final long

Constructor Summary

AccessConstructor and Description
protected
LengthFacet(String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets)

protected
LengthFacet(String nsUri, String typeName, XSDatatypeImpl baseType, int _length, boolean _isFixed)

Method Summary

Modifier and TypeMethod and Description
public Object
_createValue(String content, ValidationContext context)

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl._createValue.

converts a whitespace-processed lexical value into the corresponding value object
protected void
Inherited from com.sun.msv.datatype.xsd.DataTypeWithValueConstraintFacet:
checkFormatneedValueCheck

Field Detail

lengthback to summary
public final int length
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.DataTypeWithValueConstraintFacet.serialVersionUID.

Constructor Detail

LengthFacetback to summary
protected LengthFacet(String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets) throws DatatypeException
LengthFacetback to summary
protected LengthFacet(String nsUri, String typeName, XSDatatypeImpl baseType, int _length, boolean _isFixed) throws DatatypeException

Method Detail

_createValueback to summary
public Object _createValue(String content, ValidationContext context)

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl._createValue.

Doc from com.sun.msv.datatype.xsd.XSDatatypeImpl._createValue.

converts a whitespace-processed lexical value into the corresponding value object

diagnoseByFacetback to summary
protected void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException

Implements abstract com.sun.msv.datatype.xsd.DataTypeWithFacet.diagnoseByFacet.