|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.nrl.parser.operators.PropertyAwareObject net.sourceforge.nrl.parser.operators.Parameter
public class Parameter
A default implementation of an operator parameter.
Field Summary | |
---|---|
static String |
IMPLEMENTATION_DETAILS_CHANGED
Event - implementation details changed. |
static String |
NAMED_CHANGED
Event - name changed. |
static String |
TYPE_CHANGED
Event - type changed. |
static String |
TYPE_IS_COLLECTION_CHANGED
Event - type collection indicator changed. |
static String |
TYPE_NAME_CHANGED
Event - type name changed. |
Constructor Summary | |
---|---|
Parameter()
|
|
Parameter(Parameter other)
|
Method Summary | |
---|---|
void |
addImplementationDetail(IImplementationDetail detail)
|
String |
getImplementationDetail(String label)
Get an implementation detail associated with the parameter, given its label. |
Collection<IImplementationDetail> |
getImplementationDetails()
Return all implementation details associated with the parameter. |
String |
getName()
Return the parameter name. |
NRLDataType |
getNRLDataType()
Return the NRL type of the parameter. |
IModelElement |
getType()
Return the parameter type. |
String |
getTypeName()
Return the type name as shown in the definition |
boolean |
isTypeCollection()
Return true if the parameter type is a collection. |
void |
removeImplementationDetail(IImplementationDetail detail)
|
List<NRLError> |
resolveModelReferences(IModelCollection models)
Resolve all parameter type and return type references against models. |
void |
setName(String name)
|
void |
setNRLDataType(NRLDataType type)
Set the NRL type of the parameter. |
void |
setType(IModelElement type)
Set the model type of the parameter. |
void |
setTypeIsCollection(boolean isCollection)
Set a flag indicating whether the type is a collection type. |
void |
setTypeName(String typeName)
Set the type name |
Methods inherited from class net.sourceforge.nrl.parser.operators.PropertyAwareObject |
---|
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAMED_CHANGED
public static final String IMPLEMENTATION_DETAILS_CHANGED
public static final String TYPE_CHANGED
public static final String TYPE_IS_COLLECTION_CHANGED
public static final String TYPE_NAME_CHANGED
Constructor Detail |
---|
public Parameter()
public Parameter(Parameter other)
Method Detail |
---|
public void addImplementationDetail(IImplementationDetail detail)
public String getImplementationDetail(String label)
IParameter
See IImplementationDetail
for more information.
getImplementationDetail
in interface IParameter
label
- the label
public Collection<IImplementationDetail> getImplementationDetails()
IParameter
IImplementationDetail
for more
information.
getImplementationDetails
in interface IParameter
IImplementationDetail
objectspublic String getName()
IParameter
getName
in interface IParameter
public NRLDataType getNRLDataType()
IParameter
NRLDataType.UNKNOWN
.
getNRLDataType
in interface IParameter
public IModelElement getType()
IParameter
IParameter.resolveModelReferences(IModelCollection)
is called.
getType
in interface IParameter
public String getTypeName()
IParameter
getTypeName
in interface IParameter
public boolean isTypeCollection()
IParameter
isTypeCollection
in interface IParameter
public List<NRLError> resolveModelReferences(IModelCollection models)
IParameter
resolveModelReferences
in interface IParameter
models
- the models
public void removeImplementationDetail(IImplementationDetail detail)
public void setName(String name)
public void setNRLDataType(NRLDataType type)
IParameter
setNRLDataType
in interface IParameter
type
- the new typepublic void setType(IModelElement type)
IParameter
setType
in interface IParameter
type
- the new typepublic void setTypeIsCollection(boolean isCollection)
IParameter
setTypeIsCollection
in interface IParameter
isCollection
- true if the type is a collectionpublic void setTypeName(String typeName)
IParameter
setTypeName
in interface IParameter
typeName
- the name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |