org.simantics.databoard.type
Class ArrayType
java.lang.Object
org.simantics.databoard.type.Datatype
org.simantics.databoard.type.ArrayType
- All Implemented Interfaces:
- java.lang.Cloneable
public class ArrayType
- extends Datatype
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
KEY_LENGTH
public static final java.lang.String KEY_LENGTH
- Metadata key for array length
- See Also:
- Constant Field Values
componentType
public Datatype componentType
ArrayType
public ArrayType()
ArrayType
public ArrayType(Datatype componentType)
ArrayType
public ArrayType(Datatype componentType,
java.lang.String length)
ArrayType
public ArrayType(Datatype componentType,
Range length)
getComponentCount
public int getComponentCount()
- Description copied from class:
Datatype
- Get component type count
- Specified by:
getComponentCount
in class Datatype
- Returns:
- component count
getComponentType
public Datatype getComponentType(int index)
- Description copied from class:
Datatype
- Get component type
- Specified by:
getComponentType
in class Datatype
- Parameters:
index
- component index
- Returns:
- datatype
getComponentType
public Datatype getComponentType(ChildReference path)
- Description copied from class:
Datatype
- Get component type
- Specified by:
getComponentType
in class Datatype
- Parameters:
path
- child path or null to return this.
- Returns:
- datatype
hashCode
public int hashCode()
- Overrides:
hashCode
in class Datatype
accept
public void accept(Datatype.Visitor1 v,
java.lang.Object obj)
- Specified by:
accept
in class Datatype
accept
public <T> T accept(Datatype.Visitor<T> v)
- Specified by:
accept
in class Datatype
componentType
public Datatype componentType()
getComponentType
@Deprecated
public Datatype getComponentType()
- Deprecated.
setComponentType
public void setComponentType(Datatype componentType)
minLength
public int minLength()
maxLength
public int maxLength()
getLength
public Range getLength()
getLengthStr
public java.lang.String getLengthStr()
setLength
public void setLength(java.lang.String length)
setLength
public void setLength(Range range)