|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.model.AttributeAssingnment
The AttributeAssingnment Class represents connections between (different) Attributes in a certain Production. There is always a destination and one or more sources. The scope of an AttributeAssingnment is bounded to a Production it belongs to.
Production
, Serialized FormInner Class Summary | |
class |
AttributeAssingnment.AttribKey
The inner AttribKey class is used to represent the the elements that can be assigned to each other. |
Field Summary | |
static int |
INVALID_ASSIGNMENT
|
static int |
NO_ASSIGNMENT
|
static String |
SEPBegin
|
static String |
SEPEnd
|
static int |
VALID_ASSIGNMENT
|
Constructor Summary | |
AttributeAssingnment(Production belongsTo,
Production.ListElement le,
Attribute anAttribute)
Creates a new AttributeAssingnment for the given Production with the given ListElement and Attribute as Destination. |
Method Summary | |
void |
addSource(Production.ListElement le,
Attribute anAttribute)
Adds a new Source with the given ListElement and Attribute to this Assingnment. |
String |
attribKeyString(AttributeAssingnment.AttribKey ak)
Returns the Ox Representation for a given AttribKey Object. |
String |
attribKeyString(String ak)
Returns the Ox Representation for a given Internal String Representation of an AttribKey. |
String |
convert2Internal(String in)
Builds an internal Representation of a Function Description from the ox-like Representation. |
String |
convert2User(String in)
Builds an ox-like Representation of a Function Description from the internal Representation. |
AttributeAssingnment.AttribKey |
getDestination()
Returns the Destination AttribKey. |
String |
getFuncDesc()
Returns this Assignments Function Code. |
int |
getSourceCount()
Returns the Number of Sources this Assignment has. |
Object[] |
getSourceList()
Returns all Sources of this Assignment as Array of Objects. |
Iterator |
getSources()
Returns all Sources of this Assignment as Iterator. |
int |
getState()
Returns this Assignments State. |
void |
removeSource(AttributeAssingnment.AttribKey ak)
Removes the given AttribKey from this Assingnments list of Sources. |
void |
removeSource(Production.ListElement sourcele,
Attribute sourceAttr)
Removes the AttribKey with the given ListElement and Attribute from this Assingnments list of Sources. |
Iterator |
setFuncDesc(String functioncode)
Gives the AttributeAssingnment a new Function Description. |
StringBuffer |
toOx(StringBuffer sb)
Support for Ox File generation. |
StringBuffer |
toOx(StringBuffer sb,
int indent)
Support for Ox File generation. |
String |
toString()
|
Object[] |
uses(Symbol s,
Attribute a)
Returns all AttribKeys of this Assignment built from the given Symbol and Attribute (all AttribKeys depending on the existence of the given Symbol and Attribute). |
void |
validateObject()
This Method is needed for proper Serialisation of AttributeAssingnments.It's called at the Java Serialisation Process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String SEPBegin
public static final String SEPEnd
public static final int NO_ASSIGNMENT
public static final int INVALID_ASSIGNMENT
public static final int VALID_ASSIGNMENT
Constructor Detail |
public AttributeAssingnment(Production belongsTo, Production.ListElement le, Attribute anAttribute)
Method Detail |
public void validateObject()
validateObject
in interface ObjectInputValidation
public void addSource(Production.ListElement le, Attribute anAttribute) throws AssignLoopException, AssignException
public void removeSource(AttributeAssingnment.AttribKey ak)
public void removeSource(Production.ListElement sourcele, Attribute sourceAttr)
public Object[] getSourceList()
public Iterator getSources()
public int getSourceCount()
public AttributeAssingnment.AttribKey getDestination()
public Iterator setFuncDesc(String functioncode)
public String getFuncDesc()
public int getState()
public String toString()
toString
in class Object
public StringBuffer toOx(StringBuffer sb)
public StringBuffer toOx(StringBuffer sb, int indent)
public String attribKeyString(String ak)
public String attribKeyString(AttributeAssingnment.AttribKey ak)
public Object[] uses(Symbol s, Attribute a)
public String convert2Internal(String in) throws ModelException
public String convert2User(String in)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |