org.exolab.castor.builder.binding.xml
Class EnumBindingType
java.lang.Object
org.exolab.castor.builder.binding.xml.EnumBindingType
- java.io.Serializable
public class EnumBindingType
extends java.lang.Object
implements java.io.Serializable
This type allows the mapping between an XML schema enumeration
and a java class that follows the type-safe enumeration
paradigm.
Additionally, it allows the specify the name of the Java
constant
definition for a given enumeraton value.
EnumBindingType
public EnumBindingType()
addEnumMember
public void addEnumMember(int index,
EnumMember vEnumMember)
throws java.lang.IndexOutOfBoundsException
addEnumMember
public void addEnumMember(EnumMember vEnumMember)
throws java.lang.IndexOutOfBoundsException
enumerateEnumMember
public java.util.Enumeration enumerateEnumMember()
Method enumerateEnumMember.
- an Enumeration over all possible elements of this
collection
getEnumClassName
public EnumClassName getEnumClassName()
Returns the value of field 'enumClassName'.
- the value of field 'EnumClassName'.
getEnumMember
public EnumMember[] getEnumMember()
Method getEnumMember.Returns the contents of the collection
in an Array.
Note: Just in case the collection contents
are changing in another thread, we pass a 0-length Array of
the correct type into the API call. This way we
know
that the Array returned is of exactly the correct length.
- this collection as an Array
getEnumMember
public EnumMember getEnumMember(int index)
throws java.lang.IndexOutOfBoundsException
Method getEnumMember.
- the value of the
org.exolab.castor.builder.binding.EnumMember at the given
index
getEnumMemberCount
public int getEnumMemberCount()
Method getEnumMemberCount.
- the size of this collection
isValid
public boolean isValid()
Method isValid.
- true if this object is valid according to the schema
iterateEnumMember
public java.util.Iterator iterateEnumMember()
Method iterateEnumMember.
- an Iterator over all possible elements in this
collection
removeAllEnumMember
public void removeAllEnumMember()
removeEnumMember
public boolean removeEnumMember(EnumMember vEnumMember)
Method removeEnumMember.
- true if the object was removed from the collection.
removeEnumMemberAt
public EnumMember removeEnumMemberAt(int index)
Method removeEnumMemberAt.
- the element removed from the collection
setEnumClassName
public void setEnumClassName(EnumClassName enumClassName)
Sets the value of field 'enumClassName'.
enumClassName
- the value of field 'enumClassName'.
setEnumMember
public void setEnumMember(int index,
EnumMember vEnumMember)
throws java.lang.IndexOutOfBoundsException
setEnumMember
public void setEnumMember(EnumMember[] vEnumMemberArray)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com