|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.lang.DefaultModelVisitor
be.ac.vub.cocompose.lang.DefaultSuperModelVisitor
be.ac.vub.cocompose.io.xmi.XMIElementWriter
Writes a CoCompose model to an XMI file.
Field Summary |
Fields inherited from class be.ac.vub.cocompose.lang.DefaultModelVisitor |
current |
Constructor Summary | |
XMIElementWriter()
|
Method Summary | |
Attributes |
getRootAttributes()
Gets the root attributes to add to the first element. |
ContentHandler |
getXmlHandler()
Gets the XML handler. |
protected void |
insertReference(String refName,
ModelElement from,
ModelElement to)
Inserts an XMI tag that refers to the given model element. |
void |
setRootAttributes(Attributes rootAttributes)
Sets the root attributes to add to the first element. |
void |
setStacked(ModelVisitor stacked)
Sets a stacked visitor for this and the contained visitors. |
void |
setXmlHandler(ContentHandler xmlHandler)
Sets the XML handler. |
void |
visitCompositeConstraint(CompositeConstraint compositeConstraint)
Visits a CompositeConstraint. |
void |
visitConcept(Concept concept)
Visits a concept. |
void |
visitElementConstraint(ElementConstraint elementConstraint)
Visits an ElementConstraint. |
void |
visitImplementationGenerator(ImplementationGenerator implementationGenerator)
Visits an ImplementationGenerator. |
void |
visitImplementationPattern(ImplementationPattern implementationPattern)
Visits an ImplementationPattern. |
void |
visitModel(Model model)
Visits a Model. |
void |
visitModelProperty(ModelProperty modelProperty)
Visits a ModelProperty. |
void |
visitNamespace(Namespace namespace)
Visits a Namespace. |
void |
visitRefinedElement(RefinedElement refinedElement)
Visits a RefinedElement. |
void |
visitRelationElement(RelationElement relationElement)
Visits a RelationElement. |
void |
visitRelationship(Relationship relationship)
Visits a Relationship. |
void |
visitRole(Role role)
Visits a Role. |
void |
visitSolutionPattern(SolutionPattern solutionPattern)
Visits a SolutionPattern. |
Methods inherited from class be.ac.vub.cocompose.lang.DefaultSuperModelVisitor |
visitAndConstraint, visitConstraint, visitImplementationRolePart, visitModelTransformation, visitMultiplicity, visitOrConstraint, visitProperty, visitRefinement, visitSimpleProperty |
Methods inherited from class be.ac.vub.cocompose.lang.DefaultModelVisitor |
getStacked, visit, visitModelElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMIElementWriter()
Method Detail |
public void setXmlHandler(ContentHandler xmlHandler)
xmlHandler
- - the XML handler.public ContentHandler getXmlHandler()
public void visitNamespace(Namespace namespace) throws ModelElementException
visitNamespace
in interface ModelVisitor
visitNamespace
in class DefaultSuperModelVisitor
namespace
- - the element to visit.
ModelElementException
public void visitModel(Model model) throws ModelElementException
visitModel
in interface ModelVisitor
visitModel
in class DefaultSuperModelVisitor
model
- - the element to visit.
ModelElementException
public void visitRelationship(Relationship relationship) throws ModelElementException
visitRelationship
in interface ModelVisitor
visitRelationship
in class DefaultSuperModelVisitor
relationship
- - the element to visit.
ModelElementException
public void visitRelationElement(RelationElement relationElement) throws ModelElementException
visitRelationElement
in interface ModelVisitor
visitRelationElement
in class DefaultSuperModelVisitor
relationElement
- - the element to visit.
ModelElementException
public void visitSolutionPattern(SolutionPattern solutionPattern) throws ModelElementException
visitSolutionPattern
in interface ModelVisitor
visitSolutionPattern
in class DefaultSuperModelVisitor
solutionPattern
- - the element to visit.
ModelElementException
public void visitImplementationGenerator(ImplementationGenerator implementationGenerator) throws ModelElementException
visitImplementationGenerator
in interface ModelVisitor
visitImplementationGenerator
in class DefaultSuperModelVisitor
implementationGenerator
- - the element to visit.
ModelElementException
public void visitImplementationPattern(ImplementationPattern implementationPattern) throws ModelElementException
visitImplementationPattern
in interface ModelVisitor
visitImplementationPattern
in class DefaultSuperModelVisitor
implementationPattern
- - the element to visit.
ModelElementException
public void visitRefinedElement(RefinedElement refinedElement) throws ModelElementException
visitRefinedElement
in interface ModelVisitor
visitRefinedElement
in class DefaultSuperModelVisitor
refinedElement
- - the element to visit.
ModelElementException
public void visitConcept(Concept concept) throws ModelElementException
visitConcept
in interface ModelVisitor
visitConcept
in class DefaultSuperModelVisitor
concept
- - the element to visit.
ModelElementException
public void visitRole(Role role) throws ModelElementException
visitRole
in interface ModelVisitor
visitRole
in class DefaultSuperModelVisitor
role
- - the element to visit.
ModelElementException
public void visitElementConstraint(ElementConstraint elementConstraint) throws ModelElementException
visitElementConstraint
in interface ModelVisitor
visitElementConstraint
in class DefaultSuperModelVisitor
elementConstraint
- - the element to visit.
ModelElementException
public void visitCompositeConstraint(CompositeConstraint compositeConstraint) throws ModelElementException
visitCompositeConstraint
in interface ModelVisitor
visitCompositeConstraint
in class DefaultSuperModelVisitor
compositeConstraint
- - the element to visit.
ModelElementException
public void visitModelProperty(ModelProperty modelProperty) throws ModelElementException
visitModelProperty
in interface ModelVisitor
visitModelProperty
in class DefaultSuperModelVisitor
modelProperty
- - the element to visit.
ModelElementException
public Attributes getRootAttributes()
public void setRootAttributes(Attributes rootAttributes)
rootAttributes
- - the root attributes.public void setStacked(ModelVisitor stacked)
setStacked
in interface ModelVisitor
setStacked
in class DefaultModelVisitor
stacked
- - the stacked visitor.protected void insertReference(String refName, ModelElement from, ModelElement to) throws ModelElementException, SAXException
refName
- the name of the reference.from
- the origin of the reference.to
- the target of the reference.
ModelElementException
- if the reference could not be made.
SAXException
- if xml could not be created.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |