|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.descriptors.BasicParameter
public class BasicParameter
Base implementation of all the parameter interfaces.
| Constructor Summary | |
|---|---|
BasicParameter()
Creates a new instance of BasicParameter |
|
| Method Summary | |
|---|---|
void |
add(java.util.List value)
|
void |
add(java.lang.Object o)
|
boolean |
check(Parameter type)
|
boolean |
check(Property property)
|
boolean |
check(java.lang.String type,
java.util.List value)
|
boolean |
check(java.lang.String type,
java.lang.Object value)
|
void |
clear()
|
ParameterInternal |
duplicate()
|
java.lang.Object |
get()
|
java.lang.String |
getDescription()
|
java.lang.Class |
getParameterClass()
|
SyntaxObject |
getRestrictions()
|
java.lang.String |
getType()
Name of this parameter. |
java.util.List<java.lang.Object> |
getValue()
Returns the current value of this object. |
boolean |
isStructural()
Will modification of this parameter cause a structural change in the component that has it? |
ParameterInternal |
prototype()
|
void |
set(java.util.List value)
|
void |
set(java.lang.Object value)
|
void |
set(Property o)
|
void |
setDescription(java.lang.String d)
|
void |
setParameterClass(java.lang.Class type)
Sets the Class that this parameter will hold. |
void |
setRestrictions(SyntaxObject syntax)
|
void |
setStructural(boolean b)
Set this as a parameter whose changes means the application structure needs to be rebuilt. |
void |
setType(java.lang.String name)
Sets the name that this parameter will be accessed by |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicParameter()
| Method Detail |
|---|
public void setStructural(boolean b)
ParameterInternal
setStructural in interface ParameterInternalb - is a structural parameter or not.public boolean isStructural()
Parameter
isStructural in interface Parameterpublic void set(Property o)
set in interface Parameterpublic java.lang.String getDescription()
getDescription in interface Parameterpublic void setDescription(java.lang.String d)
setDescription in interface ParameterInternalpublic void setType(java.lang.String name)
ParameterInternal
setType in interface ParameterInternalname - name of the parameterpublic void setRestrictions(SyntaxObject syntax)
setRestrictions in interface ParameterInternalpublic SyntaxObject getRestrictions()
getRestrictions in interface ParametergetRestrictions in interface ParameterInternalpublic void add(java.lang.Object o)
add in interface Parameterpublic java.lang.String getType()
Parameter
getType in interface Parameterpublic java.util.List<java.lang.Object> getValue()
Parameter
getValue in interface Parameterpublic java.lang.Class getParameterClass()
getParameterClass in interface Parameterpublic void setParameterClass(java.lang.Class type)
ParameterInternal
setParameterClass in interface ParameterInternaltype - Class expected for the parameter's valuepublic boolean check(Property property)
check in interface Parameter
public boolean check(java.lang.String type,
java.lang.Object value)
check in interface Parameterpublic boolean check(Parameter type)
check in interface Parameterpublic void clear()
clear in interface Parameterpublic void add(java.util.List value)
add in interface Parameter
public boolean check(java.lang.String type,
java.util.List value)
check in interface Parameterpublic ParameterInternal duplicate()
duplicate in interface Parameterduplicate in interface ParameterInternalpublic ParameterInternal prototype()
prototype in interface Parameterpublic java.lang.Object get()
get in interface Parameterpublic void set(java.lang.Object value)
set in interface Parameterpublic void set(java.util.List value)
set in interface Parameter
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||