com.sun.msv.datatype.xsd

Class ListType

public final class ListType extends ConcreteType implements Discrete

List type. type of the value object is ListValueType.

Author: Kohsuke KAWAGUCHI

Field Summary
XSDatatypeImplitemType
atomic base type
Constructor Summary
ListType(String nsUri, String newTypeName, XSDatatypeImpl itemType)
derives a new datatype from atomic datatype by list
Method Summary
StringconvertToLexicalValue(Object value, SerializationContext context)
intcountLength(Object value)
StringdisplayName()
XSDatatypegetBaseType()
intgetIdType()
ClassgetJavaObjectType()
intgetVariety()
Variety of the ListType is VARIETY_LIST.
booleanisContextDependent()
The list type is context-dependent if its item type is so.
intisFacetApplicable(String facetName)
booleanisFinal(int derivationType)
Object_createValue(String content, ValidationContext context)

Field Detail

itemType

public final XSDatatypeImpl itemType
atomic base type

Constructor Detail

ListType

public ListType(String nsUri, String newTypeName, XSDatatypeImpl itemType)
derives a new datatype from atomic datatype by list

Method Detail

convertToLexicalValue

public String convertToLexicalValue(Object value, SerializationContext context)

countLength

public final int countLength(Object value)

displayName

public final String displayName()

getBaseType

public final XSDatatype getBaseType()

getIdType

public int getIdType()

getJavaObjectType

public Class getJavaObjectType()

getVariety

public final int getVariety()
Variety of the ListType is VARIETY_LIST. So this method always returns VARIETY_LIST.

isContextDependent

public boolean isContextDependent()
The list type is context-dependent if its item type is so.

isFacetApplicable

public final int isFacetApplicable(String facetName)

isFinal

public final boolean isFinal(int derivationType)

_createValue

public Object _createValue(String content, ValidationContext context)