org.obe.xpdl.model.data
Class ArrayType
java.lang.Object
org.obe.util.AbstractBean
org.obe.xpdl.model.data.MultiValuedType
org.obe.xpdl.model.data.ArrayType
- All Implemented Interfaces:
- java.beans.beancontext.BeanContextChild, java.io.Serializable, Type
- public final class ArrayType
- extends MultiValuedType
Data type which describes an array. All items in the array must be of the
same type.
- Author:
- Adrian Price
- See Also:
- Serialized Form
Fields inherited from interface org.obe.xpdl.model.data.Type |
ARRAY_TYPE, BOOLEAN_TYPE, DATETIME_TYPE, DECLARED_TYPE, DEFAULT_TYPE, ENUMERATION_TYPE, EXTERNAL_REFERENCE_TYPE, FLOAT_TYPE, INTEGER_TYPE, LIST_TYPE, PERFORMER_TYPE, RECORD_TYPE, REFERENCE_TYPE, SCHEMA_TYPE, STRING_TYPE, UNDEFINED_TYPE, UNION_TYPE |
Constructor Summary |
ArrayType()
|
ArrayType(Type type,
int lowerIndex,
int upperIndex)
Construct a new ArrayType object. |
ArrayType(Type type,
java.lang.String lowerIndex,
java.lang.String upperIndex)
Construct a new ArrayType object. |
Methods inherited from class org.obe.util.AbstractBean |
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArrayType
public ArrayType()
ArrayType
public ArrayType(Type type,
java.lang.String lowerIndex,
java.lang.String upperIndex)
- Construct a new ArrayType object.
- Parameters:
type
- The array data typelowerIndex
- The lower index of the arrayupperIndex
- The upper index of the array
ArrayType
public ArrayType(Type type,
int lowerIndex,
int upperIndex)
- Construct a new ArrayType object.
- Parameters:
type
- The array data typelowerIndex
- The lower index of the arrayupperIndex
- The upper index of the array
value
public int value()
- Description copied from interface:
Type
- The data type's ordinal value.
- Returns:
- Ordinal value:
Type.STRING_TYPE
, Type.FLOAT_TYPE
,
Type.INTEGER_TYPE
, Type.REFERENCE_TYPE
, Type.DATETIME_TYPE
,
Type.BOOLEAN_TYPE
, Type.PERFORMER_TYPE
, Type.DECLARED_TYPE
,
Type.SCHEMA_TYPE
, Type.EXTERNAL_REFERENCE_TYPE
,
Type.RECORD_TYPE
, Type.UNION_TYPE
, Type.ENUMERATION_TYPE
,
Type.ARRAY_TYPE
, Type.LIST_TYPE
getLowerIndex
public int getLowerIndex()
setLowerIndex
public void setLowerIndex(int lowerIndex)
setLowerIndex
public void setLowerIndex(java.lang.String lowerIndex)
getUpperIndex
public int getUpperIndex()
setUpperIndex
public void setUpperIndex(int upperIndex)
setUpperIndex
public void setUpperIndex(java.lang.String upperIndex)
isAssignableFrom
public boolean isAssignableFrom(Type fromType)
- Description copied from interface:
Type
- Checks type compatibility in an assignment.
- Parameters:
fromType
- The type of the 'rvalue'.
- Returns:
true
if a value of type fromType
can
be assigned or converted to a value of type toType
.
toString
public java.lang.String toString()
OBE-1.0 Copyright (C) 2002-2006 Adrian Price. All Rights Reserved.