be.ac.vub.cocompose.lang.core
Interface RefinedElement

All Superinterfaces:
Cloneable, Element, ModelElement, Namespace, RelationElement, VisitedElement
All Known Subinterfaces:
Concept, Role
All Known Implementing Classes:
DefaultConcept, DefaultRefinedElement, DefaultRole

public interface RefinedElement
extends RelationElement

Interface for elements that can have refinements. The "CompositeType" construct was previously used for this.

Since:
0.1.0
Version:
0.2.0, 12/01/2004
Author:
Dennis Wagelaar

Method Summary
 void addInheritsFrom(int index, RefinedElement inheritsFrom)
          Adds an inherited element to this concept.
 void addInheritsFrom(RefinedElement inheritsFrom)
          Adds an inherited element to this concept.
 void addSuperimposesOn(int index, RefinedElement superimposesOn)
          Adds a superimposition element to this concept.
 void addSuperimposesOn(RefinedElement superimposesOn)
          Adds a superimposition element to this concept.
 String getIconUri()
          Gets the icon image URI.
 List getInheritsFrom()
          Gets the inherited elements.
 List getRefinements()
           
 List getSuperimposesOn()
          Gets the superimposition elements.
 void removeInheritsFrom(RefinedElement inheritsFrom)
          Removes an inherited element from this concept.
 void removeSuperimposesOn(RefinedElement superimposesOn)
          Removes a superimposition element from this concept.
 void setIconUri(String uri)
          Gets the icon image URI.
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.RelationElement
addRelationship, addRelationship, getBackgroundColor, getPosition, getRelationships, getSourceRelationships, getTargetRelationships, removeRelationship, setBackgroundColor, setPosition
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace
addOwnedElement, addOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, isRegistered, registerNameChange, removeOwnedElement
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getId, getModel, getName, getNamespace, setId, setName, setNamespace
 
Methods inherited from interface be.ac.vub.cocompose.lang.Element
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface be.ac.vub.cocompose.lang.VisitedElement
accept
 

Method Detail

getRefinements

public List getRefinements()

getInheritsFrom

public List getInheritsFrom()
Gets the inherited elements.

Returns:
the list of inherited elements.

addInheritsFrom

public void addInheritsFrom(RefinedElement inheritsFrom)
Adds an inherited element to this concept.

Parameters:
inheritsFrom - the inherited element to add.

addInheritsFrom

public void addInheritsFrom(int index,
                            RefinedElement inheritsFrom)
Adds an inherited element to this concept.

Parameters:
index - the index at which to add the element.
inheritsFrom - the inherited element to add.

removeInheritsFrom

public void removeInheritsFrom(RefinedElement inheritsFrom)
Removes an inherited element from this concept.

Parameters:
inheritsFrom - the inherited element to remove.

getSuperimposesOn

public List getSuperimposesOn()
Gets the superimposition elements.

Returns:
the list of superimposition elements.

addSuperimposesOn

public void addSuperimposesOn(RefinedElement superimposesOn)
Adds a superimposition element to this concept.

Parameters:
superimposesOn - the superimposition element to add.

addSuperimposesOn

public void addSuperimposesOn(int index,
                              RefinedElement superimposesOn)
Adds a superimposition element to this concept.

Parameters:
index - the index at which to add the element.
superimposesOn - the superimposition element to add.

removeSuperimposesOn

public void removeSuperimposesOn(RefinedElement superimposesOn)
Removes a superimposition element from this concept.

Parameters:
superimposesOn - the superimposition element to remove.

getIconUri

public String getIconUri()
Gets the icon image URI.

Returns:
the icon URI.

setIconUri

public void setIconUri(String uri)
Gets the icon image URI.

Parameters:
uri - the icon URI.