com.sun.msv.datatype.xsd

Class UnionType

public final class UnionType extends ConcreteType

union type.

Author: Kohsuke KAWAGUCHI

Field Summary
XSDatatypeImpl[]memberTypes
member types
Constructor Summary
UnionType(String nsUri, String newTypeName, XSDatatype[] memberTypes)
derives a new datatype from atomic datatypes by union
Method Summary
StringconvertToLexicalValue(Object o, SerializationContext context)
StringdisplayName()
XSDatatypegetBaseType()
ClassgetJavaObjectType()
intgetVariety()
Variety of the UnionType is VARIETY_UNION.
booleanisContextDependent()
The union type is context-dependent if one of the member types is so.
intisFacetApplicable(String facetName)
Object_createValue(String content, ValidationContext context)

Field Detail

memberTypes

public final XSDatatypeImpl[] memberTypes
member types

Constructor Detail

UnionType

public UnionType(String nsUri, String newTypeName, XSDatatype[] memberTypes)
derives a new datatype from atomic datatypes by union

Method Detail

convertToLexicalValue

public String convertToLexicalValue(Object o, SerializationContext context)

displayName

public final String displayName()

getBaseType

public final XSDatatype getBaseType()

getJavaObjectType

public Class getJavaObjectType()

getVariety

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

isContextDependent

public boolean isContextDependent()
The union type is context-dependent if one of the member types is so.

isFacetApplicable

public final int isFacetApplicable(String facetName)

_createValue

public Object _createValue(String content, ValidationContext context)