public class EnumType extends Type
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumType.ValidValue
Class to hold valid values for EnumType
|
DEFAULT_PRESENCE| Constructor and Description |
|---|
EnumType(Node node)
Construct a new enumType from XML Schema.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveType |
encodingType()
The
PrimitiveType used to encode the enum. |
EnumType.ValidValue |
getValidValue(PrimitiveValue value)
Get the
EnumType.ValidValue represented by a PrimitiveValue. |
EnumType.ValidValue |
getValidValue(String name)
Get the
EnumType.ValidValue represented by a string name. |
PrimitiveValue |
nullValue()
The nullValue of the type
|
int |
size()
The size (in octets) of the encodingType
|
Collection<EnumType.ValidValue> |
validValues()
The collection of valid values for this enumeration.
|
description, name, presence, semanticTypepublic EnumType(Node node) throws XPathExpressionException
node - from the XML Schema ParsingXPathExpressionException - if the XPath is invalidpublic PrimitiveType encodingType()
PrimitiveType used to encode the enum.PrimitiveType used to encode the enum.public int size()
public EnumType.ValidValue getValidValue(PrimitiveValue value)
EnumType.ValidValue represented by a PrimitiveValue.value - to lookupEnumType.ValidValue represented by a PrimitiveValue or null.public EnumType.ValidValue getValidValue(String name)
EnumType.ValidValue represented by a string name.name - to lookupEnumType.ValidValue represented by a string name or null.public PrimitiveValue nullValue()
public Collection<EnumType.ValidValue> validValues()
Copyright © 2013 Real Logic Ltd. All Rights Reserved.