org.simantics.databoard.type
Class MapType

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

public class MapType
extends Datatype


Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.type.Datatype
Datatype.Visitor<T>, Datatype.Visitor1
 
Constructor Summary
MapType()
           
MapType(Datatype keyType, Datatype valueType)
           
 
Method Summary
<T> T
accept(Datatype.Visitor<T> v)
           
 void accept(Datatype.Visitor1 v, java.lang.Object obj)
           
 int getComponentCount()
          Get component type count
 Datatype getComponentType(ChildReference path)
          Get component type
 Datatype getComponentType(int index)
          Get component type
 Datatype getKeyType()
          Deprecated. 
 Datatype getValueType()
          Deprecated. 
 int hashCode()
           
 Datatype keyType()
           
 void setKeyType(Datatype keyType)
           
 void setValueType(Datatype valueType)
           
 Datatype valueType()
           
 
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
 

Constructor Detail

MapType

public MapType()

MapType

public MapType(Datatype keyType,
               Datatype valueType)
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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

keyType

public Datatype keyType()

valueType

public Datatype valueType()

getKeyType

@Deprecated
public Datatype getKeyType()
Deprecated. 


getValueType

@Deprecated
public Datatype getValueType()
Deprecated. 


setKeyType

public void setKeyType(Datatype keyType)

setValueType

public void setValueType(Datatype valueType)