|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.utwente.CoCompose.translate.ImplementationGenerator
Represents an implementation generator for a Composite. It links to the files containing the implementation generator declaration and the actual implementation generator class.
Constructor Summary | |
ImplementationGenerator()
Constructs an ImplementationGenerator. |
Method Summary | |
void |
accept(ModelVisitor visitor)
Accepts a ModelVisitor. |
void |
addRolePart(ImplementationRolePart rolepart)
Adds a role part to the implementation generator. |
void |
copyAttributes(ImplementationGenerator fromImplementation)
Copies the attributes from the given implementation generator to self. |
Composite |
getComposite()
Gets the composite to which this solution pattern belongs. |
java.lang.String |
getFilename()
Gets the name of the file that contains the actual solution pattern. |
java.lang.String |
getLanguage()
Gets the language in which this solution pattern is expressed. |
Model |
getModel()
Retrieves the model context. |
java.util.Set |
getRoleForms(java.lang.String roleName,
Logger logger)
Gets the possible concept forms for a concept filling a role part of this implementation generator. |
java.util.Enumeration |
getRoleParts()
Gets the implementation generator role parts. |
java.util.Enumeration |
getRoleParts(java.lang.String roleName)
Gets the implementation generator role parts for a given role name. |
void |
setComposite(Composite composite)
Sets the composite to which this solution pattern belongs. |
void |
setFilename(java.lang.String filename)
Sets the name of the file that contains the actual solution pattern. |
void |
setLanguage(java.lang.String language)
Sets the language in which this solution pattern is expressed. |
void |
toXML(org.xml.sax.helpers.DefaultHandler handler)
Create XML from this object using a SAX DefaultHandler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImplementationGenerator()
Method Detail |
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- The solution pattern language.public java.lang.String getFilename()
public void setFilename(java.lang.String filename) throws CoComposeException
filename
- The file name.
CoComposeException
- if the file specified by the filename could not be parsed.public Composite getComposite()
public void setComposite(Composite composite)
composite
- The composite that owns this solution pattern.public Model getModel()
public java.util.Enumeration getRoleParts()
public java.util.Enumeration getRoleParts(java.lang.String roleName)
roleName
- the role name of the role parts.
public void addRolePart(ImplementationRolePart rolepart)
rolepart
- The role part to add.public void copyAttributes(ImplementationGenerator fromImplementation) throws CoComposeException
fromImplementation
- The implementation generator to copy from.
CoComposeException
- if the copy could not be made.public java.util.Set getRoleForms(java.lang.String roleName, Logger logger)
roleName
- The role name of the role to get the construct forms for.logger
- The object to log to.
public void toXML(org.xml.sax.helpers.DefaultHandler handler) throws org.xml.sax.SAXException
handler
- The SAX DefaultHandler.
org.xml.sax.SAXException
- if an XML handler error occurs.public void accept(ModelVisitor visitor) throws CoComposeException
visitor
- The visitor object to accept.
CoComposeException
- if visiting operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |