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
TYPE
static final Type TYPE
- Schema node element type.
CONNECTION_EVENT
static final String CONNECTION_EVENT
- Connection changed event.
- See Also:
- Constant Field Values
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.