pl.edu.agh.cast.schema.model.presentation
Interface ISchemaNode

All Superinterfaces:
Identifiable, IDisposable, IElement, IPresentationElement<IElement>, IPropertyChangeProvider, IPropertyContainer, IReplicable, ISchemaElement<IElement>, IValidatable, Observer, Serializable
All Known Implementing Classes:
SchemaNode

public interface ISchemaNode
extends ISchemaElement<IElement>

Interface which describes node of schema diagram. ISchemaNode derives IEntity objects which are represented by the node in the diagram. Each node have a set of incoming and outgoing connections, however connection determines by itself if it is directed or not.

Author:
AGH CAST Team

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.presentation.IPresentationElement
IPresentationElement.Properties, IPresentationElement.PropertyCategory
 
Field Summary
static String CONNECTION_EVENT
          Connection changed event.
static Type TYPE
          Schema node element type.
 
Fields inherited from interface pl.edu.agh.cast.data.model.presentation.IPresentationElement
ATTRIBUTE_CHANGE_EVENT
 
Method Summary
 void addAllConnections(Collection<? extends ISchemaConnection> connectionsToAdd)
          Adds connections from collection to this node.
 void addConnection(ISchemaConnection connection)
          Adds connection to this node.
 List<? extends ISchemaConnection> getConnections()
          Gets all connections associated with this node.
 boolean removeAllConnections(Collection<? extends ISchemaConnection> connectionsToRemove)
          Removes connections from collection to this node.
 boolean removeConnection(ISchemaConnection connection)
          Removes specified connection from this node.
 
Methods inherited from interface pl.edu.agh.cast.data.model.presentation.IPresentationElement
getDerivedType, getLabel, getOriginalElements, getVisualElement, hasAssociatedVisualElement, setDerivedType, setLabel, setOriginalElements, setSuppressAllEvents, setVisualElement
 
Methods inherited from interface pl.edu.agh.cast.data.model.IElement
getDataSet
 
Methods inherited from interface pl.edu.agh.cast.data.model.Identifiable
getId, getType
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyContainer
addProperty, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, matches, removeProperty, setProperty
 
Methods inherited from interface java.util.Observer
update
 
Methods inherited from interface pl.edu.agh.cast.common.IValidatable
isValid
 
Methods inherited from interface pl.edu.agh.cast.common.IDisposable
dispose
 
Methods inherited from interface pl.edu.agh.cast.common.IReplicable
replicate, replicateTo
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

TYPE

static final Type TYPE
Schema node element type.


CONNECTION_EVENT

static final String CONNECTION_EVENT
Connection changed event.

See Also:
Constant Field Values
Method Detail

getConnections

@PropertyGetter(name="CONNECTIONS",
                type=REFERENCE_LIST,
                matchable=true)
List<? extends ISchemaConnection> getConnections()
Gets all connections associated with this node.

Returns:
collection of schema connection objects

addAllConnections

void addAllConnections(Collection<? extends ISchemaConnection> connectionsToAdd)
Adds connections from collection to this node.

Parameters:
connectionsToAdd - collection of connections

removeAllConnections

boolean removeAllConnections(Collection<? extends ISchemaConnection> connectionsToRemove)
Removes connections from collection to this node.

Parameters:
connectionsToRemove - collection of connections
Returns:
true if any of the specified connections has been removed

addConnection

void addConnection(ISchemaConnection connection)
Adds connection to this node.

Parameters:
connection - connection to add

removeConnection

boolean removeConnection(ISchemaConnection connection)
Removes specified connection from this node. Warning:

Parameters:
connection - connection to remove
Returns:
true if node was associated with the connection; false otherwise


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.