@Entity public class MapConnectorPoint extends PropertyOwner implements IMapAttributeOwner, IMapConnectorPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
MapConnectorPoint.Cardinality
Specifies the cardinality of the projected rows, for an output connector point.
|
static class |
MapConnectorPoint.Direction |
| Modifier and Type | Method and Description |
|---|---|
MapConnector |
connectTo(IMapComponent target)
Connects this connector point to the input connector point of a downstream
component.
|
MapConnector |
connectTo(IMapComponent target,
java.lang.String name)
Connects this connector point to the input connector point of a downstream
component.
|
MapConnector |
connectTo(MapConnectorPoint to)
Connects this connector point to another connector point.
|
MapConnector |
connectTo(MapConnectorPoint to,
java.lang.String connectionName)
Connects this connector point to another connector point.
|
MapAttribute |
createAttribute(MapAttribute sourceAttr)
Create an attribute that is a copy of the specified source attribute.
|
MapAttribute |
createExpressionAttribute(java.lang.String name,
java.lang.String expressionText,
IDataType dataType)
Create an unbound expression attribute in an expression component just downstream of
this component.
|
MapAttribute |
findAttribute(java.lang.String name)
Find an attribute owned by this connector point, with the specified name.
|
MapAttribute |
findAttributeByBusinessName(java.lang.String businessName) |
MapAttribute |
findAttributeByGlobalId(java.lang.String guid) |
java.util.List |
getAllConnectorsTo(IMapComponent target)
Gets a list of MapConnector objects that connect this point to the specified target component.
|
java.util.List |
getAllMapReferences() |
java.util.List |
getAllProperties() |
java.util.List |
getAllProperties(boolean persistentOnly) |
int |
getAttributeCount()
Get the total number of attributes owned by this connector point.
|
java.util.List |
getAttributeExpressions() |
java.util.List |
getAttributes()
Retrieve a list of all the attributes owned by this connector point.
|
IModelObject |
getBoundObject() |
java.lang.String |
getBoundObjectFullName()
Get the full qualified name of the bound object.
|
MapConnectorPoint |
getChildConnectorPoint()
Get the child connector point for this connector point, if any.
|
java.lang.String |
getChildNamespaceId(java.lang.String childClassName) |
MapConnector |
getConnector(MapConnectorPoint point)
Get a connector that connects the specified point to this point.
|
MapConnector |
getConnectorTo(IMapComponent target)
Gets the MapConnector that connects this point to the specified target component,
if they are connected, else null.
|
MapConnector |
getConnectorToLeaf(IMapComponent target)
Gets the MapConnector that connects this point to the specified target component,
if they are connected, else null.
|
MapConnector |
getConnectorToLeafPoint(MapConnectorPoint to)
Get a top-level connector from this point to the specified point, if one
exists.
|
int |
getCPIndex() |
int |
getCPOrder()
Retrieve the order of this connector point relative to the other connector points
of the same direction and owned by the same component.
|
MapConnectorPointDelegate |
getDelegate()
Get the connector point delegate for this connector point, if a delegate is
defined, else null.
|
MapConnectorPoint.Direction |
getDirection()
Get the direction of this connector point, either INPUT or OUTPUT.
|
java.lang.String |
getDisplayableTypeName() |
java.util.List |
getDownstreamConnectedComponents()
Get a list of all downstream components that are connected to this
output connector point.
|
java.util.List |
getDownstreamConnectedLeafComponents()
Get a list of all downstream components that are connected to this
output connector point.
|
java.util.List |
getDownstreamConnectedLeafPoints()
Get a list of all downstream connector points that are connected
to this output connector point.
|
java.util.List |
getDownstreamConnectedPoints()
Get a list of all downstream connector points that are connected
to this output connector point.
|
int |
getFromConnectorCount()
Return the number of input connections to this connector point.
|
java.util.List |
getFromConnectors()
Get a list of all connectors that start at this point (or are connected "from" this
point).
|
java.lang.String |
getFullName()
Return the fully qualified name of this connector point.
|
MapConnectorPoint |
getHighestLevelConnectorPoint()
Get the highest level parent connector point, which reflects the functional connection
point for incoming or outgoing connections to low-level components,
if parent connector points are defined.
|
java.util.List |
getInScopeComponents()
Return a list of all components that are in-scope for this connector point.
|
MapConnectorPoint |
getLowestLevelConnectorPoint()
Get the lowest level child connector point, which reflects the functional connection
point for incoming or outgoing connections to high-level components,
if child connector points are defined.
|
IMapRootContainer |
getMapRootContainer()
Get the top level mapping object that owns this connector point.
|
IPropertyOwner |
getOwner() |
MapComponent |
getOwningComponent()
Get the component that owns this connector point.
|
MapConnectorPoint |
getParentConnectorPoint()
Get the parent connector point for this connector point, if any.
|
java.util.List |
getProjectedAttributes()
Get all projected attributes for this connector point.
|
MapConnectorPointRole |
getRole()
Get the connector point role for this connector point.
|
int |
getToConnectorCount()
Return the number of output connections from this connector point.
|
java.util.List |
getToConnectors()
Get a list of all connectors that end at this point (or are connected "to" this
point).
|
java.util.List |
getUpstreamConnectedComponents()
Get a list of all upstream components that are connected to this
input connector point.
|
java.util.List |
getUpstreamConnectedLeafComponents()
Get a list of all upstream components that are connected to this
input connector point.
|
java.util.List |
getUpstreamConnectedLeafPoints()
Get a list of all upstream connector points that are connected to this
input connector point.
|
java.util.List |
getUpstreamConnectedPoints()
Get a list of all upstream connector points that are connected to this
input connector point.
|
java.util.List |
getUpstreamInScopeAttributes()
Get all attributes that are in-scope for expressions associated with this connector
point.
|
java.util.List |
getUpstreamInScopeLeafConnectorPoints()
Get all connector points that are in-scope for expression associated with this connector
point, and the paths between these connector points and this point do not pass through a
projector component.
|
java.util.List |
getUpstreamInScopeLeafPoints()
Get the upstream, in-scope connector points for this connector point.
|
java.util.List |
getUpstreamInScopeLeafPoints(boolean includeInputPoints)
Get the upstream, in-scope connector points for this connector point.
|
boolean |
hasProjectorAttributes()
Return true if this connector point owns projector attributes.
|
boolean |
isAddAttributeAllowed()
Return true if this connector point is allowed to own and add attributes.
|
boolean |
isBound()
Return true if this connector point is bound to some model object.
|
boolean |
isConnected()
Return true if this connector point has any connections in eiher direction, else false.
|
boolean |
isConnectedFrom(MapConnectorPoint point)
Return true if a connection from the specified connector point to this connector point
already exists.
|
boolean |
isConnectedFromLeaf(MapConnectorPoint point)
Return true if a connection from the specified connector point to this connector point
already exists.
|
boolean |
isConnectedTo(IMapComponent component)
Return true if this connector point is connected to the specified component.
|
boolean |
isConnectedTo(MapConnectorPoint point)
Return true if a connection from this connector point to the specified connector point
already exists.
|
boolean |
isConnectedToLeaf(IMapComponent component)
Return true if this connector point is connected to the specified component.
|
boolean |
isConnectedToNonPassivePoint()
Return true if this connector point has any connections to non-passive
points in either direction, else false.
|
boolean |
isInputPoint()
Return true if this is an input connector point.
|
boolean |
isInScopeFor(IMapComponent target)
Return true if this point is in scope for the target.
|
boolean |
isInScopeFor(MapConnectorPoint targetCP)
Return true if this point is in scope for the target connector point.
|
boolean |
isInScopeFor(MapConnectorPoint targetCP,
boolean includeInputPoints)
Return true if this point is in scope for the target connector point.
|
boolean |
isOutputPoint()
Return true if this is an output connector point.
|
boolean |
isReferencedAttribute(MapAttribute attr)
Return true if the specified attribute is owned by this connector point and
is referenced by a downstream expression.
|
boolean |
isSplitPathFrom(IMapComponent component) |
boolean |
isSplitPathFrom(MapAttribute attr) |
boolean |
isSplitPathFrom(MapConnectorPoint point) |
void |
removeAllAttributes()
Remove all the attributes from this connector point.
|
void |
removeAllAttributes(boolean removeReferencingExpressions)
Remove all the attributes from this connector point.
|
void |
removeAllConnections()
Removes all connections from this connector point.
|
void |
removeAllConnections(boolean removeReferencingExpressions)
Removes all connections from this connector point.
|
void |
removeAttribute(MapAttribute attr)
Remove the specified attribute from this connector point.
|
void |
removeAttribute(MapAttribute attr,
boolean removeReferencingExpressions)
Remove the specified attribute from this connector point.
|
void |
removeAttribute(java.lang.String name)
Remove the attribute with the specified name from this connector point.
|
void |
removeAttribute(java.lang.String name,
boolean removeReferencingExpressions)
Remove the attribute with the specified name from this connector point.
|
void |
removeInputConnection(MapConnector fromConnector)
Removes the specified connector.
|
void |
removeInputConnection(MapConnector fromConnector,
boolean removeReferencingExpressions)
Removes the specified connector.
|
void |
removeInputConnection(MapConnectorPoint from)
Removes the input connection from the specified source point.
|
void |
removeInputConnection(MapConnectorPoint from,
boolean removeReferencedExpressions)
Removes the input connection from the specified source point.
|
void |
removeOutputConnection(MapConnector toConnector)
Removes the specified connector.
|
void |
removeOutputConnection(MapConnector toConnector,
boolean removeReferencingExpressions)
Removes the specified connector.
|
void |
removeOutputConnection(MapConnectorPoint to)
Removes the output connection to the specified target connector point.
|
void |
removeOutputConnection(MapConnectorPoint to,
boolean removeReferencedExpressions)
Removes the output connection to the specified target connector point.
|
void |
reorderAttribute(MapAttribute attr,
java.lang.Integer newPos)
Change the order of the specified attribute in the ordered list.
|
void |
setBoundObject(IModelObject boundObject,
IModelObject fcoObject)
Sets the bound object for this connector point.
|
void |
setChildConnectorPoint(MapConnectorPoint childPoint)
Set a connector point from a child component of this component as
a child connector point for this connector point.
|
void |
setChildConnectorPoint(MapConnectorPoint childPoint,
boolean force)
Set a connector point from a child component of this component as
a child connector point for this connector point.
|
void |
setName(java.lang.String name) |
void |
setParentConnectorPoint(MapConnectorPoint parentPoint)
Set a connector point from a parent component of this component as
a parent connector point for this connector point.
|
java.lang.String |
toString() |
boolean |
validate(java.util.List result,
boolean debug)
Validates the object.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetBigNumericId, getGlobalId, getNumericIdpublic void setName(java.lang.String name)
throws MappingException
MappingExceptionpublic MapComponent getOwningComponent()
public MapConnectorPointRole getRole()
public java.lang.String getChildNamespaceId(java.lang.String childClassName)
public MapConnectorPointDelegate getDelegate()
throws MappingException
MapComponentExceptionMappingExceptionpublic IMapRootContainer getMapRootContainer() throws MapComponentException
MapComponentExceptionpublic void setBoundObject(IModelObject boundObject, IModelObject fcoObject) throws AdapterException, MapComponentException
boundObject - The object that will be bound to this connector point.fcoObject - The first-class (FCO) object that owns the bound object, if any. Can be null.AdapterExceptionPropertyExceptionMapComponentExceptionpublic IModelObject getBoundObject() throws MapComponentException, AdapterException
MapComponentExceptionAdapterExceptionpublic boolean isBound()
public java.lang.String getBoundObjectFullName()
throws MapComponentException,
AdapterException
MapComponentExceptionAdapterExceptionpublic java.util.List getFromConnectors()
public int getFromConnectorCount()
public int getToConnectorCount()
public java.util.List getToConnectors()
public MapConnector connectTo(MapConnectorPoint to) throws MappingException
to - The target connector point.MapComponentExceptionPropertyExceptionMappingExceptionpublic MapConnector connectTo(MapConnectorPoint to, java.lang.String connectionName) throws MappingException
to - The target connector point.connectionName - The name for the newly created connector object.MapComponentExceptionPropertyExceptionMappingExceptionpublic MapConnector connectTo(IMapComponent target, java.lang.String name) throws MappingException
target - The target connector point.name - The name of the new connector point, if one is created. Can be null.MapComponentExceptionPropertyExceptionMappingExceptionpublic MapConnector connectTo(IMapComponent target) throws MappingException
target - The target connector point.MapComponentExceptionPropertyExceptionMappingExceptionpublic MapConnector getConnectorTo(IMapComponent target) throws MapComponentException
target - MapComponentExceptionpublic java.util.List getAllConnectorsTo(IMapComponent target) throws MapComponentException
target - MapComponentExceptionpublic MapConnector getConnectorToLeaf(IMapComponent target) throws MapComponentException
target - MapComponentExceptionPropertyExceptionpublic boolean isInScopeFor(IMapComponent target) throws MappingException, AdapterException
target - AdapterExceptionMappingExceptionpublic boolean isInScopeFor(MapConnectorPoint targetCP) throws MappingException, AdapterException
target - AdapterExceptionMappingExceptionpublic boolean isInScopeFor(MapConnectorPoint targetCP, boolean includeInputPoints) throws MappingException, AdapterException
target - includeInputPoints - If true, the upstream input points are included as valid in-scope points.AdapterExceptionMappingExceptionpublic java.util.List getUpstreamInScopeLeafPoints()
throws MappingException,
AdapterException
MappingExceptionAdapterExceptionpublic java.util.List getUpstreamInScopeLeafPoints(boolean includeInputPoints)
throws MappingException,
AdapterException
includeInputPoints - If true, the input points are also included in the list of upstream in-scope points.MappingExceptionAdapterExceptionpublic boolean isConnectedTo(MapConnectorPoint point) throws MapComponentException
point - The connector point to check for existing connections from this point.MapComponentExceptionpublic boolean isConnectedTo(IMapComponent component)
MapComponentExceptionpublic boolean isConnectedToLeaf(IMapComponent component) throws MapConnectionException
MapConnectionExceptionMapComponentExceptionpublic boolean isConnectedFrom(MapConnectorPoint point)
point - The connector point to check for existing connections to this point.MapComponentExceptionpublic boolean isConnectedFromLeaf(MapConnectorPoint point) throws MapConnectionException
point - The connector point to check for existing connections to this point.MapConnectionExceptionMapComponentExceptionpublic void removeInputConnection(MapConnectorPoint from) throws MapComponentException
from - The source point of the connection to be deleted.MapComponentExceptionpublic void removeInputConnection(MapConnectorPoint from, boolean removeReferencedExpressions) throws MapComponentException
from - The source point of the connection to be deleted.removeReferencedExpressions - If true, remove any expressions that reference through
the removed connector.MapComponentExceptionpublic void removeOutputConnection(MapConnectorPoint to) throws MapComponentException
to - The target point of the connection to be deleted.MapComponentExceptionpublic void removeOutputConnection(MapConnectorPoint to, boolean removeReferencedExpressions) throws MapComponentException
to - The target point of the connection to be deleted.removeReferencedExpressions - If true, remove any expressions that reference through
the removed connector.MapComponentExceptionpublic void removeInputConnection(MapConnector fromConnector) throws MapComponentException
fromConnector - The connector to be removed.MapComponentExceptionpublic void removeInputConnection(MapConnector fromConnector, boolean removeReferencingExpressions) throws MapComponentException
fromConnector - The connector to be removed.removeReferencingExpressions - If true, set all expression text to blank for all
expressions that reference attributes through the removed connection.MapComponentExceptionpublic void removeOutputConnection(MapConnector toConnector) throws MapComponentException
toConnector - The connector to be removed.MapComponentExceptionpublic void removeOutputConnection(MapConnector toConnector, boolean removeReferencingExpressions) throws MapComponentException
toConnector - The connector to be removed.removeReferencingExpressions - If true, set all expression text to blank for all
expressions that reference attributes through the removed connection.MapComponentExceptionpublic void removeAllConnections()
throws MapComponentException
MapComponentExceptionpublic void removeAllConnections(boolean removeReferencingExpressions)
throws MapComponentException
removeReferencingExpressions - If true, set all expression text to blank for all
expressions that reference attributes through the removed connector.MapComponentExceptionpublic java.util.List getUpstreamConnectedLeafPoints()
throws MapConnectionException
MapConnectionExceptionMapComponentExceptionpublic java.util.List getDownstreamConnectedLeafPoints()
throws MapConnectionException
MapConnectionExceptionMapComponentExceptionpublic MapConnector getConnectorToLeafPoint(MapConnectorPoint to) throws MapComponentException
PropertyExceptionMapComponentExceptionpublic java.util.List getUpstreamConnectedPoints()
MapComponentExceptionpublic java.util.List getDownstreamConnectedPoints()
MapComponentExceptionpublic java.util.List getUpstreamConnectedComponents()
MapComponentExceptionpublic java.util.List getDownstreamConnectedComponents()
MapComponentExceptionpublic java.util.List getUpstreamConnectedLeafComponents()
throws MapConnectionException
MapConnectionExceptionMapComponentExceptionpublic java.util.List getDownstreamConnectedLeafComponents()
throws MapConnectionException
MapConnectionExceptionMapComponentExceptionpublic MapConnector getConnector(MapConnectorPoint point)
point - public boolean isConnected()
public boolean isConnectedToNonPassivePoint()
throws MapComponentException
MapComponentExceptionpublic java.util.List getAllProperties()
public java.util.List getAllProperties(boolean persistentOnly)
public MapConnectorPoint.Direction getDirection()
public boolean isInputPoint()
public boolean isOutputPoint()
public boolean isAddAttributeAllowed()
throws MappingException,
AdapterException
MapComponentExceptionAdapterExceptionPropertyExceptionMappingExceptionpublic java.lang.String getFullName()
public void reorderAttribute(MapAttribute attr, java.lang.Integer newPos) throws MappingException, AdapterException
IMapAttributeOwnerreorderAttribute in interface IMapAttributeOwnerattr - The attribute whose order is to be changed.newPos - The new index of the attribute. Null represents undefined/unset/unknown.PropertyExceptionMappingExceptionAdapterExceptionpublic int getAttributeCount()
throws MappingException,
AdapterException
IMapAttributeOwnergetAttributeCount in interface IMapAttributeOwnerPropertyExceptionMappingExceptionAdapterExceptionpublic MapAttribute createExpressionAttribute(java.lang.String name, java.lang.String expressionText, IDataType dataType) throws MappingException, AdapterException
name - expressionText - PropertyExceptionMapComponentExceptionAdapterExceptionMappingExceptionpublic MapAttribute createAttribute(MapAttribute sourceAttr) throws MappingException, AdapterException
IMapAttributeOwnercreateAttribute in interface IMapAttributeOwnerMappingExceptionAdapterExceptionpublic void removeAttribute(MapAttribute attr) throws MappingException
IMapAttributeOwnerremoveAttribute in interface IMapAttributeOwnerattr - The attribute to be removed.MappingExceptionpublic void removeAttribute(MapAttribute attr, boolean removeReferencingExpressions) throws MappingException
IMapAttributeOwnerremoveAttribute in interface IMapAttributeOwnerattr - The attribute to be removed.removeReferencingExpressions - If true, then any expressions that reference the
removed attribute will be removed.MappingExceptionpublic void removeAttribute(java.lang.String name)
throws MappingException
IMapAttributeOwnerremoveAttribute in interface IMapAttributeOwnername - The name of the attribute to be removed.MappingExceptionpublic void removeAttribute(java.lang.String name,
boolean removeReferencingExpressions)
throws MappingException
IMapAttributeOwnerremoveAttribute in interface IMapAttributeOwnername - The name of the attribute to be removed.removeReferencingExpressions - If true, then any expressions that reference the
removed attribute will be removed.MappingExceptionpublic void removeAllAttributes()
throws MapComponentException
MapComponentExceptionpublic void removeAllAttributes(boolean removeReferencingExpressions)
throws MapComponentException
MapComponentExceptionpublic java.util.List getAttributes()
throws MappingException,
AdapterException
IMapAttributeOwnergetAttributes in interface IMapAttributeOwnerPropertyExceptionMappingExceptionAdapterExceptionpublic java.util.List getAttributeExpressions()
throws MappingException,
AdapterException
MappingExceptionAdapterExceptionpublic MapAttribute findAttribute(java.lang.String name) throws MappingException, AdapterException
IMapAttributeOwnerfindAttribute in interface IMapAttributeOwnername - The name of the attribute to fetch.PropertyExceptionAdapterExceptionMappingExceptionpublic MapAttribute findAttributeByBusinessName(java.lang.String businessName) throws AdapterException, MappingException
AdapterExceptionMappingExceptionpublic MapAttribute findAttributeByGlobalId(java.lang.String guid) throws AdapterException, MappingException
AdapterExceptionMappingExceptionpublic boolean isReferencedAttribute(MapAttribute attr)
attr - The attribute for which to determine if it is referenced.public boolean isSplitPathFrom(MapAttribute attr) throws MappingException
MappingExceptionpublic boolean isSplitPathFrom(MapConnectorPoint point) throws MappingException
MappingExceptionpublic boolean isSplitPathFrom(IMapComponent component) throws MappingException
MappingExceptionpublic java.util.List getInScopeComponents()
public java.util.List getUpstreamInScopeAttributes()
throws MappingException,
AdapterException
MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic java.util.List getUpstreamInScopeLeafConnectorPoints()
throws MappingException,
AdapterException
MappingExceptionAdapterExceptionpublic java.util.List getProjectedAttributes()
throws MappingException,
AdapterException
MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic boolean hasProjectorAttributes()
throws MappingException,
AdapterException
MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic void setChildConnectorPoint(MapConnectorPoint childPoint)
childPoint - The connector point to set as the child point.public void setChildConnectorPoint(MapConnectorPoint childPoint, boolean force)
childPoint - The connector point to set as the child point.force - if true, force re-parse of all expression of this connector pointpublic MapConnectorPoint getChildConnectorPoint()
public MapConnectorPoint getLowestLevelConnectorPoint() throws MapConnectionException
MapConnectionExceptionpublic void setParentConnectorPoint(MapConnectorPoint parentPoint)
parentPoint - The connector point to set as the parent point.public MapConnectorPoint getParentConnectorPoint()
MapComponentExceptionpublic MapConnectorPoint getHighestLevelConnectorPoint()
public IPropertyOwner getOwner()
public boolean validate(java.util.List result,
boolean debug)
MapComponentExceptionpublic java.lang.String getDisplayableTypeName()
public java.lang.String toString()
public int getCPOrder()
public int getCPIndex()
public java.util.List getAllMapReferences()