Package org.cip4.jdflib.node
Class JDFNode.CombinedProcessLinkHelper
- java.lang.Object
-
- org.cip4.jdflib.node.JDFNode.CombinedProcessLinkHelper
-
- Enclosing class:
- JDFNode
public class JDFNode.CombinedProcessLinkHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CombinedProcessLinkHelper()CombinedProcessLinkHelper(java.lang.String _linkName, JDFResourceLink.EnumUsage _usage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JDFResourceLinkgetCreateLinkForType(JDFNode.EnumType type)get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listJDFResourceLinkgetLinkForCombinedProcessIndex(int combinedProcessIndex, int skip)get the link that is selected by a given CombinedProcessIndex
links with no CombinedProcessIndex are included in the listVElementgetLinksForCombinedProcessIndex(int combinedProcessIndex)get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listVElementgetLinksForType(JDFNode.EnumType type)get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listjava.lang.StringgetResName()voidsetBoth(boolean b)voidsetLinkName(java.lang.String linkName)voidsetNPos(int nPos)voidsetUsage(JDFResourceLink.EnumUsage usage)
-
-
-
Constructor Detail
-
CombinedProcessLinkHelper
public CombinedProcessLinkHelper()
-
CombinedProcessLinkHelper
public CombinedProcessLinkHelper(java.lang.String _linkName, JDFResourceLink.EnumUsage _usage)- Parameters:
_linkName-_usage-
-
-
Method Detail
-
getCreateLinkForType
public JDFResourceLink getCreateLinkForType(JDFNode.EnumType type)
get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the list- Parameters:
type- the process type for which to get the links- Returns:
-
getLinkForCombinedProcessIndex
public JDFResourceLink getLinkForCombinedProcessIndex(int combinedProcessIndex, int skip)
get the link that is selected by a given CombinedProcessIndex
links with no CombinedProcessIndex are included in the list- Parameters:
combinedProcessIndex- the nTh occurence of the CombinedProcessIndex field, -1 if all valid positions are okskip-- Returns:
-
getLinksForCombinedProcessIndex
public VElement getLinksForCombinedProcessIndex(int combinedProcessIndex)
get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the list- Parameters:
combinedProcessIndex- the nTh occurence of the CombinedProcessIndex field, -1 if all valid positions are ok- Returns:
-
getLinksForType
public VElement getLinksForType(JDFNode.EnumType type)
get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the list- Parameters:
type- the process type for which to get the links- Returns:
-
setNPos
public void setNPos(int nPos)
- Parameters:
nPos- the nTh occurence of the Type field, -1 if all valid positions are ok
-
setUsage
public void setUsage(JDFResourceLink.EnumUsage usage)
- Parameters:
usage- the usage of the requested link
-
setBoth
public void setBoth(boolean b)
- Parameters:
b- if true always ensure that the link exists both in and out
-
setLinkName
public void setLinkName(java.lang.String linkName)
- Parameters:
linkName- the name of the requested link
-
getResName
public java.lang.String getResName()
- Returns:
- the name of the requested resource
-
-