org.cip4.jdflib.node
Class JDFNode.CombinedProcessLinkHelper

java.lang.Object
  extended by org.cip4.jdflib.node.JDFNode.CombinedProcessLinkHelper
Enclosing class:
JDFNode

public class JDFNode.CombinedProcessLinkHelper
extends Object

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG Sep 25, 2009

Constructor Summary
JDFNode.CombinedProcessLinkHelper()
           
JDFNode.CombinedProcessLinkHelper(String _linkName, JDFResourceLink.EnumUsage _usage)
           
 
Method Summary
 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
 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
 VElement getLinksForCombinedProcessIndex(int combinedProcessIndex)
          get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the list
 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
 String getResName()
           
 void setBoth(boolean b)
           
 void setLinkName(String linkName)
           
 void setNPos(int nPos)
           
 void setUsage(JDFResourceLink.EnumUsage usage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDFNode.CombinedProcessLinkHelper

public JDFNode.CombinedProcessLinkHelper()

JDFNode.CombinedProcessLinkHelper

public JDFNode.CombinedProcessLinkHelper(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 ok
skip -
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(String linkName)
Parameters:
linkName - the name of the requested link

getResName

public String getResName()
Returns:
the name of the requested resource


Copyright © 2013. All Rights Reserved.