Package cruise.umple.compiler
Class FeatureNode
java.lang.Object
cruise.umple.compiler.FeatureNode
- Direct Known Subclasses:
CompoundFeatureNode
,FeatureLeaf
,FragmentFeatureLeaf
public class FeatureNode
extends java.lang.Object
A Feature model consists of some FeatureNodels, which can be leaf nodes or fragmentFeature nodes.
-
Constructor Summary
Constructors Constructor Description FeatureNode(FeatureModel aFeatureModel)
-
Method Summary
-
Constructor Details
-
Method Details
-
setId
public boolean setId(int aId) -
setName
public boolean setName(java.lang.String aName) -
setIsLeaf
public boolean setIsLeaf(boolean aIsLeaf) -
setIsCompoundFeature
public boolean setIsCompoundFeature(boolean aIsCompoundFeature) -
getId
public int getId()each new FeatureNode has a unique id -
getName
public java.lang.String getName() -
getIsLeaf
public boolean getIsLeaf() -
getIsCompoundFeature
public boolean getIsCompoundFeature() -
getIncomingFeatureLink
-
getIncomingFeatureLinks
A feature node in the feature diagram may have 0 or more incoming/outgoing links. -
numberOfIncomingFeatureLinks
public int numberOfIncomingFeatureLinks() -
hasIncomingFeatureLinks
public boolean hasIncomingFeatureLinks() -
indexOfIncomingFeatureLink
-
getOutgoingFeatureLink
-
getOutgoingFeatureLinks
-
numberOfOutgoingFeatureLinks
public int numberOfOutgoingFeatureLinks() -
hasOutgoingFeatureLinks
public boolean hasOutgoingFeatureLinks() -
indexOfOutgoingFeatureLink
-
getFeatureModel
-
getCompoundFeatureNode
-
hasCompoundFeatureNode
public boolean hasCompoundFeatureNode() -
minimumNumberOfIncomingFeatureLinks
public static int minimumNumberOfIncomingFeatureLinks() -
addIncomingFeatureLink
-
removeIncomingFeatureLink
-
addIncomingFeatureLinkAt
-
addOrMoveIncomingFeatureLinkAt
-
minimumNumberOfOutgoingFeatureLinks
public static int minimumNumberOfOutgoingFeatureLinks() -
addOutgoingFeatureLink
-
removeOutgoingFeatureLink
-
addOutgoingFeatureLinkAt
-
addOrMoveOutgoingFeatureLinkAt
-
setFeatureModel
-
setCompoundFeatureNode
-
delete
public void delete() -
getUniqueFeatureNodeName
public java.lang.String getUniqueFeatureNodeName() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-