public class EMFComponent extends ICEObject implements Component
iComponentVisitor
iComponentListener
Constructor and Description |
---|
EMFComponent()
The nullary constructor
|
EMFComponent(java.io.File file)
The constructor, takes a Java file pointing to the XML schema model.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IComponentVisitor visitor)
This operation directs the Component to call back to an IComponentVisitor
so that the visitor can perform its required actions for the exact type
of the Component.
|
java.lang.Object |
clone()
This operation provides a deep copy of the EMFComponent.
|
void |
copy(EMFComponent otherEMFComponent)
This operation performs a deep copy of the attributes of another
EMFComponent into the current EMFComponent.
|
boolean |
equals(java.lang.Object otherEMFComponent)
This operation is used to check equality between the EMFComponent and
another EMFComponent.
|
TreeComposite |
getEMFTreeComposite()
Return the generated EMFTreeComposite that represents the Ecore domain
model.
|
int |
hashCode()
This operation returns the hashcode value of the EMFComponent.
|
boolean |
load(java.io.File file)
Load the given File as an XMLResource.
|
boolean |
load(java.io.File schema,
java.io.File file)
Load the XML file with a given XML schema.
|
boolean |
save()
Save the XMLResource to System.out.
|
boolean |
save(java.io.File saveFile)
Save the XMLResource to the given Java File.
|
java.lang.String |
saveToString()
Save the XMLResource to a java.lang.String
|
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
getClass, notify, notifyAll, toString, wait, wait, wait
register, unregister, update
getDescription, getId, getName, setDescription, setId, setName
public EMFComponent()
public EMFComponent(java.io.File file)
file
- The XML Schemapublic TreeComposite getEMFTreeComposite()
public boolean save(java.io.File saveFile)
saveFile
- public boolean load(java.io.File schema, java.io.File file)
schema
- file
- public boolean load(java.io.File file)
file
- public boolean equals(java.lang.Object otherEMFComponent)
equals
in interface Identifiable
equals
in class ICEObject
otherEMFComponent
- The other Identifiable entity that should be compared with this one.
True if the Identifiable entitys are equal, false otherwise.
Identifiable.equals(Object otherObject)
public int hashCode()
hashCode
in interface Identifiable
hashCode
in class ICEObject
The hashcode of the Identifiable entity.
Identifiable.hashCode()
public void copy(EMFComponent otherEMFComponent)
otherEMFComponent
- public java.lang.Object clone()
clone
in interface Identifiable
clone
in class ICEObject
The new clone.
public void accept(IComponentVisitor visitor)
Component
This operation directs the Component to call back to an IComponentVisitor so that the visitor can perform its required actions for the exact type of the Component.
public boolean save()
public java.lang.String saveToString()