public interface IRuntimeNode extends IConfigurableNode
Modifier and Type | Interface and Description |
---|---|
static class |
IRuntimeNode.StructureType
The supported structure nodes
|
IConfigurableNode.ConfigurableType
Modifier and Type | Field and Description |
---|---|
static int |
ALL_FEATURES
A pseudo-type that represents all feature types for
use in getChildrenByType(IRuntimeNode.StructureType).
|
static int |
BOM_MODEL
BOM model type.
|
static int |
BOM_OPTION_CLASS
BOM option class type.
|
static int |
BOM_STD_ITEM
BOM standard item type.
|
static int |
BOOLEAN_FEATURE
Boolean feature type.
|
static int |
COMPONENT
Component type.
|
static int |
COMPONENT_PORT
Component port type.
|
static int |
CONNECTOR_PORT
Connector port type.
|
static int |
COUNT_FEATURE
Count feature type (for LCE compatibility).
|
static int |
DECIMAL_FEATURE
Decimal feature type.
|
static int |
INTEGER_FEATURE
Integer feature type.
|
static int |
INTEGER_RESOURCE
Integer Resource type.
|
static int |
INTEGER_TOTAL
Integer Total type.
|
static int |
MISSING_NODE
MissingNode type (for LCE compatibility).
|
static int |
OPTION
Option type.
|
static int |
OPTION_FEATURE
Option feature type.
|
static int |
RESOURCE
Resource type.
|
static int |
TEXT_FEATURE
Text feature type.
|
static int |
TOTAL
Total type.
|
static int |
VIRTUAL_COMPONENT
Virtual component type.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getAvailableEventCommands()
Returns a list of commands that can be used in CXCommandEvent objects on
this node to cause one or more Configurator Extensions to execute.
|
IRuntimeNode |
getChildByName(java.lang.String name)
Returns a particular child identified by its name.
|
<T extends IRuntimeNode> |
getChildren()
Returns a list of children of this runtime node.
|
java.util.Collection<IRuntimeNode> |
getChildrenByType(int type)
Returns a collection(IRuntimeNode) of children nodes of the specified type.
|
java.util.Collection<IRuntimeNode> |
getChildrenByType(IRuntimeNode.StructureType type)
Returns a collection(IRuntimeNode) of children nodes of the specified type.
|
java.util.List<IConfigurationAttribute> |
getConfigurationAttributeByName(java.lang.String name)
Returns any configuration attributes by name across all types of configuration
attributes.
|
IConfigurationAttribute |
getConfigurationAttributeByName(java.lang.String name,
IConfigurationAttribute.AttributeType type)
Looks up the configuration attribute by name and type.
|
java.util.List<IConfigurationAttribute> |
getConfigurationAttributes()
Returns a list of all attributes assigned to this node regardless of type.
|
java.util.List<IConfigurationAttribute> |
getConfigurationAttributes(IConfigurationAttribute.AttributeType type)
Returns a list of all attributes assigned to this node for the requested type.
|
java.lang.String |
getDescription()
Gets the description of the node.
|
java.lang.String |
getDisplayNamePath()
Provides the display name path of this node, not including instance information.
|
java.lang.String |
getNamePath()
Returns the Name path of this node, including instance information.
|
int |
getNodeType()
Gets the type of this node.
|
IRuntimeNode |
getParent()
Returns the parent of this node.
|
java.util.Collection<IProperty> |
getProperties()
Returns a collection of the properties associated with this node.
|
IProperty |
getPropertyByID(int id)
Returns a particular property of this node, based on its ID.
|
IProperty |
getPropertyByName(java.lang.String name)
Returns a particular property of this node, based on its name.
|
IInstance |
getRoot()
Returns the root of this node.
|
IRuntimeNode.StructureType |
getStructureType()
Returns the type of structure node.
|
boolean |
hasChildren()
Returns true if this runtime node has children.
|
boolean |
hasCount()
Returns true if this node can have numeric value.
|
boolean |
hasDescription()
Returns true if there is a design-time description of the runtime node.
|
boolean |
isDescendantOf(IRuntimeNode ancestorNode)
Returns true if this is a descendant of the ancestorNode node.
|
boolean |
isEffective()
Returns
true if this particular node is effective
given the effectivity criteria of the model. |
boolean |
isInputRequiredInSubtree()
Indicates if this, any of its descendants or active transactional
attributes, requires user input.
|
boolean |
isPriceAble()
Indicates if the IRuntime node can support a price, not if the node
currently has a price assigned.
|
boolean |
isQuoteable()
Returns true if this node is quoteable.
|
boolean |
isRoot()
Returns true if this is the root node of the runtime tree.
|
boolean |
isSupplementalOrPortNode()
Returns true if the IRuntimeNode represents supplemental node or port node.
|
boolean |
isUiVisible()
Returns true if this node appears as a selection in Ui.
|
getConfigurableNodeType, getConfiguration, getConfiguratorPath, getDatabaseID, getDisplayName, getInputRequiredFlag, getName, getRuntimeID, getValidationErrorText, isBound, isChangedByAC, isChangedByAC, isDeleted, isInputRequired, isInputRequiredError, isProposed, isValid, removeAllUserDecisions, setInputRequiredFlag
static final int COMPONENT
static final int COMPONENT_PORT
static final int BOOLEAN_FEATURE
static final int COUNT_FEATURE
static final int INTEGER_FEATURE
static final int DECIMAL_FEATURE
static final int TEXT_FEATURE
static final int OPTION_FEATURE
static final int OPTION
static final int TOTAL
static final int INTEGER_TOTAL
static final int RESOURCE
static final int INTEGER_RESOURCE
static final int BOM_MODEL
static final int BOM_OPTION_CLASS
static final int BOM_STD_ITEM
static final int CONNECTOR_PORT
static final int MISSING_NODE
static final int VIRTUAL_COMPONENT
static final int ALL_FEATURES
int getNodeType()
IRuntimeNode.StructureType getStructureType()
java.lang.String getDisplayNamePath()
Details
java.lang.String getNamePath()
Details
java.lang.String getDescription()
Details
boolean hasDescription()
boolean isEffective()
true
if this particular node is effective
given the effectivity criteria of the model.boolean isInputRequiredInSubtree()
true
if this node, or any child node, requires user
input.IRuntimeNode getParent()
Details
null
if the node is a root node.
IInstance getRoot()
Details
null
if the node is an instance that is not currently
contained in any port.
boolean hasChildren()
<T extends IRuntimeNode> java.util.List<T> getChildren()
java.util.Collection<IRuntimeNode> getChildrenByType(int type)
type
- the type of the children to retrieve.java.util.Collection<IRuntimeNode> getChildrenByType(IRuntimeNode.StructureType type)
type
- the type of the children to retrieve.IRuntimeNode getChildByName(java.lang.String name) throws NoSuchChildException
Note: This method is not supported for IOptionFeature. Use IOptionFeature.getOptionByName();
name
- the name of the child to retrieve.NoSuchChildException
- when the requested child does not exist.
Details:
IPort.getInstanceByNumber()
for deterministic
look-up in such case.
java.util.Collection<IProperty> getProperties()
IProperty getPropertyByName(java.lang.String name)
name
- the name of the property to retrieve.IProperty getPropertyByID(int id)
id
- the id of the property to retrieve.java.util.List<IConfigurationAttribute> getConfigurationAttributes(IConfigurationAttribute.AttributeType type)
type
- The type of attribute to retrieve. Cannot be null.IRuntimeNode
.
Cannot be null but can be empty. No order or grouping of
attributes is specified. Immutable.
Details
TRANSACTIONAL
and item is not active no
Transactional Item Attributes are returned.
java.util.List<IConfigurationAttribute> getConfigurationAttributes()
IRuntimeNode
.
Cannot be null but can be empty. No order or grouping of
attributes is specified. Immutable.
Details
TRANSACTIONAL
and item is not active no
Transactional Item Attributes are returned.
IConfigurationAttribute getConfigurationAttributeByName(java.lang.String name, IConfigurationAttribute.AttributeType type) throws NoSuchAttributeException
name
- The attribute name. Cannot be null. For User Defined Attributes the name
refers to UDA's attributeGroupName.attributeName.type
- The attribute type. Cannot be null.IConfigurationAttribute
.NoSuchAttributeException
- Details
TRANSACTIONAL
and item is not active
NoSuchAttributeException
is thrown. Use
IBom.hasActiveTransactionalAttributes()
to test for active
transactional attributes.
java.util.List<IConfigurationAttribute> getConfigurationAttributeByName(java.lang.String name) throws NoSuchAttributeException
name
- The attribute name. Cannot be null. For User Defined Attributes the name
refers to UDA's attributeGroupName.attributeName.NoSuchAttributeException
- If the named configuration attribute is
not foundboolean isRoot()
boolean isDescendantOf(IRuntimeNode ancestorNode)
boolean isQuoteable()
java.util.Set getAvailableEventCommands()
boolean hasCount()
Used by Delta Manager.
boolean isUiVisible()
boolean isPriceAble()
IPrice
boolean isSupplementalOrPortNode()