Class MetaShortcut
- java.lang.Object
-
- ru.ispras.microtesk.model.metadata.MetaShortcut
-
- All Implemented Interfaces:
MetaData
public final class MetaShortcut extends java.lang.Object implements MetaData
The MetaShortcut class describes a shortcut way to refer to an operation in some specific context. A shortcut is composition of operations. Shortcuts can be used when there is a unique way to build a composite object. The context is the name of the operation to be parameterized with a shortcut object.
-
-
Constructor Summary
Constructors Constructor Description MetaShortcut(java.lang.String contextName, MetaOperation operation)
Creates a shortcut object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContextName()
Returns the context identifier that describes the operation that can be parameterized with (can refer to) the given shortcut operation.Type
getDataType()
Returns the type associated with the metadata element ornull
if the element has no type.java.lang.String
getName()
Returns the shortcut name.MetaOperation
getOperation()
Returns a metadata object describing the signature of the shortcut operation.
-
-
-
Constructor Detail
-
MetaShortcut
public MetaShortcut(java.lang.String contextName, MetaOperation operation)
Creates a shortcut object.- Parameters:
contextName
- Context identifier.operation
- Description of the shortcut operation signature.- Throws:
java.lang.IllegalArgumentException
- if any of the arguments isnull
.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the shortcut name.
-
getDataType
public Type getDataType()
Description copied from interface:MetaData
Returns the type associated with the metadata element ornull
if the element has no type.- Specified by:
getDataType
in interfaceMetaData
- Returns:
- type of the metadata element or
null
if the element has no type.
-
getContextName
public java.lang.String getContextName()
Returns the context identifier that describes the operation that can be parameterized with (can refer to) the given shortcut operation.- Returns:
- Name of the context in which the shortcut can be referred.
-
getOperation
public MetaOperation getOperation()
Returns a metadata object describing the signature of the shortcut operation.- Returns:
- Metadata describing the shortcut operation.
-
-