public class AttributeType
extends java.lang.Object
Constructor and Description |
---|
AttributeType(WorkspaceComponent parent,
java.lang.String typeName,
java.lang.Class<?> dataType,
boolean visible)
Construct an attribute type object with no method name.
|
AttributeType(WorkspaceComponent parent,
java.lang.String typeName,
java.lang.String methodName,
java.lang.Class<?> dataType,
boolean visible)
Construct an attribute type object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName() |
java.lang.String |
getBaseDescription()
Returns the description string of this datatype, with a method name if
there is one.
|
java.lang.Class |
getDataType() |
java.lang.String |
getDescription(java.lang.String baseName)
Returns a description using a custom base name (e.g.
|
java.lang.String |
getMethodName() |
WorkspaceComponent |
getParentComponent() |
java.lang.String |
getSimpleDescription(java.lang.String baseName)
Like getDescription(String) but does not add the method base name.
|
java.lang.String |
getTypeName() |
boolean |
isVisible() |
void |
setVisible(boolean visible) |
java.lang.String |
toString() |
public AttributeType(WorkspaceComponent parent, java.lang.String typeName, java.lang.String methodName, java.lang.Class<?> dataType, boolean visible)
parent
- reference to parent componenttypeName
- String identification of type idmethodName
- name of methoddataType
- data type (return type for producers; argument type for
consumers)visible
- whether this attribute should be visible for a given
component.public AttributeType(WorkspaceComponent parent, java.lang.String typeName, java.lang.Class<?> dataType, boolean visible)
parent
- reference to parent componenttypeName
- String identification of type iddataType
- data type (return type for producers; argument type for
consumers)visible
- whether this attribute should be visible for a given
component.public java.lang.String getDescription(java.lang.String baseName)
baseName
- the custom base namepublic java.lang.String getSimpleDescription(java.lang.String baseName)
baseName
- the custom base namepublic java.lang.String getBaseDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isVisible()
public void setVisible(boolean visible)
visible
- the visible to setpublic java.lang.String getTypeName()
public java.lang.String getAttributeName()
public java.lang.Class getDataType()
public WorkspaceComponent getParentComponent()
public java.lang.String getMethodName()