org.simantics.databoard.type
Class ArrayType

java.lang.Object
  extended by org.simantics.databoard.type.Datatype
      extended by org.simantics.databoard.type.ArrayType

public class ArrayType
extends Datatype


Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.type.Datatype
Datatype.Visitor<T>, Datatype.Visitor1
 
Field Summary
 Datatype componentType
           
 
Constructor Summary
ArrayType()
           
ArrayType(Datatype componentType)
           
ArrayType(Datatype componentType, Range length)
           
ArrayType(Datatype componentType, java.lang.String length)
           
 
Method Summary
<T> T
accept(Datatype.Visitor<T> v)
           
 void accept(Datatype.Visitor1 v, java.lang.Object obj)
           
 Datatype componentType()
           
 int getComponentCount()
          Get component type count
 Datatype getComponentType()
          Deprecated. 
 Datatype getComponentType(ChildReference path)
          Get component type
 Datatype getComponentType(int index)
          Get component type
 Range getLength()
           
 java.lang.String getLengthStr()
           
 int hashCode()
           
 int maxLength()
           
 int minLength()
           
 void setComponentType(Datatype componentType)
           
 void setLength(Range range)
           
 void setLength(java.lang.String length)
           
 
Methods inherited from class org.simantics.databoard.type.Datatype
equals, toSingleLineString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

componentType

public Datatype componentType
Constructor Detail

ArrayType

public ArrayType()

ArrayType

public ArrayType(Datatype componentType)

ArrayType

public ArrayType(Datatype componentType,
                 java.lang.String length)

ArrayType

public ArrayType(Datatype componentType,
                 Range length)
Method Detail

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 java.lang.Object

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)