|
|||||||||
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 ParameterInternal
b
- is a structural parameter or not.public boolean isStructural()
Parameter
isStructural
in interface Parameter
public void set(Property o)
set
in interface Parameter
public java.lang.String getDescription()
getDescription
in interface Parameter
public void setDescription(java.lang.String d)
setDescription
in interface ParameterInternal
public void setType(java.lang.String name)
ParameterInternal
setType
in interface ParameterInternal
name
- name of the parameterpublic void setRestrictions(SyntaxObject syntax)
setRestrictions
in interface ParameterInternal
public SyntaxObject getRestrictions()
getRestrictions
in interface Parameter
getRestrictions
in interface ParameterInternal
public void add(java.lang.Object o)
add
in interface Parameter
public java.lang.String getType()
Parameter
getType
in interface Parameter
public java.util.List<java.lang.Object> getValue()
Parameter
getValue
in interface Parameter
public java.lang.Class getParameterClass()
getParameterClass
in interface Parameter
public void setParameterClass(java.lang.Class type)
ParameterInternal
setParameterClass
in interface ParameterInternal
type
- 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 Parameter
public boolean check(Parameter type)
check
in interface Parameter
public void clear()
clear
in interface Parameter
public void add(java.util.List value)
add
in interface Parameter
public boolean check(java.lang.String type, java.util.List value)
check
in interface Parameter
public ParameterInternal duplicate()
duplicate
in interface Parameter
duplicate
in interface ParameterInternal
public ParameterInternal prototype()
prototype
in interface Parameter
public java.lang.Object get()
get
in interface Parameter
public void set(java.lang.Object value)
set
in interface Parameter
public 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 |