|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.type.Datatype
org.simantics.databoard.type.UnionType
public class UnionType
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.simantics.databoard.type.Datatype |
---|
Datatype.Visitor<T>, Datatype.Visitor1 |
Field Summary | |
---|---|
Component[] |
components
|
Constructor Summary | |
---|---|
UnionType()
|
|
UnionType(Component... components)
|
Method Summary | ||
---|---|---|
|
accept(Datatype.Visitor<T> v)
|
|
void |
accept(Datatype.Visitor1 v,
java.lang.Object obj)
|
|
void |
addComponent(java.lang.String name,
Datatype type)
|
|
Component |
getComponent(int i)
|
|
Component |
getComponent(java.lang.String fieldName)
Get component by name. |
|
int |
getComponentCount()
Get component type count |
|
java.lang.Integer |
getComponentIndex(java.lang.String fieldName)
Get tag by name. |
|
int |
getComponentIndex2(java.lang.String fieldName)
Get tag by name. |
|
Component[] |
getComponents()
|
|
Datatype |
getComponentType(ChildReference path)
Get component type |
|
Datatype |
getComponentType(int index)
Get component type |
|
Datatype |
getComponentType(java.lang.String fieldName)
Get component Datatype by field name |
|
int |
hashCode()
|
|
void |
removeComponent(java.lang.String tagName)
|
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 |
---|
public Component[] components
Constructor Detail |
---|
public UnionType()
public UnionType(Component... components)
Method Detail |
---|
public void addComponent(java.lang.String name, Datatype type)
public void removeComponent(java.lang.String tagName)
public int hashCode()
hashCode
in class java.lang.Object
public void accept(Datatype.Visitor1 v, java.lang.Object obj)
accept
in class Datatype
public <T> T accept(Datatype.Visitor<T> v)
accept
in class Datatype
public int getComponentCount()
Datatype
getComponentCount
in class Datatype
public Datatype getComponentType(ChildReference path)
Datatype
getComponentType
in class Datatype
path
- child path or null to return this.
public Component getComponent(int i)
public Component[] getComponents()
public java.lang.Integer getComponentIndex(java.lang.String fieldName)
fieldName
- component name
null
if one does not existpublic int getComponentIndex2(java.lang.String fieldName)
fieldName
- component name
public Datatype getComponentType(java.lang.String fieldName)
fieldName
-
null
public Component getComponent(java.lang.String fieldName)
fieldName
- component name
null
if one does not existpublic Datatype getComponentType(int index)
Datatype
getComponentType
in class Datatype
index
- component index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |