org.cip4.jdflib.extensions
Class SetHelper

java.lang.Object
  extended by org.cip4.jdflib.extensions.BaseXJDFHelper
      extended by org.cip4.jdflib.extensions.SetHelper

public class SetHelper
extends BaseXJDFHelper

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Field Summary
static String PARAMETER
           
static String RESOURCE
           
 
Fields inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
log, theElement
 
Constructor Summary
SetHelper(KElement set)
           
 
Method Summary
 PartitionHelper appendPartition(JDFAttributeMap partMap, boolean addRes)
           
 void cleanUp()
           
 PartitionHelper getCreatePartition(int index, boolean addRes)
           
 PartitionHelper getCreatePartition(JDFAttributeMap map, boolean addRes)
           
 Vector<PartitionHelper> getCreatePartitions(VJDFAttributeMap vmap, boolean addRes)
           
 String getName()
           
 PartitionHelper getPartition(int index)
           
 PartitionHelper getPartition(JDFAttributeMap map)
           
 PartitionHelper getPartition(VJDFAttributeMap vmap)
           
 String getPartitionName()
           
 Vector<PartitionHelper> getPartitions()
           
 KElement getSet()
           
 PartitionHelper insertPartitionBefore(PartitionHelper e, JDFAttributeMap map, boolean addRes)
           
 void removePartitions()
          remove all partitions in this set
 void setUsage(JDFResourceLink.EnumUsage value)
           
 String toString()
           
 
Methods inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
getID, getRoot, getXPathValue, setXPathValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER

public static final String PARAMETER
See Also:
Constant Field Values

RESOURCE

public static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

SetHelper

public SetHelper(KElement set)
Parameters:
set - the set to help on
Method Detail

getPartition

public PartitionHelper getPartition(JDFAttributeMap map)
Parameters:
map -
Returns:

getPartition

public PartitionHelper getPartition(int index)
Parameters:
index -
Returns:

getCreatePartition

public PartitionHelper getCreatePartition(JDFAttributeMap map,
                                          boolean addRes)
Parameters:
map -
addRes -
Returns:

insertPartitionBefore

public PartitionHelper insertPartitionBefore(PartitionHelper e,
                                             JDFAttributeMap map,
                                             boolean addRes)
Parameters:
e -
map -
addRes -
Returns:

getCreatePartitions

public Vector<PartitionHelper> getCreatePartitions(VJDFAttributeMap vmap,
                                                   boolean addRes)
Parameters:
vmap -
addRes -
Returns:

getCreatePartition

public PartitionHelper getCreatePartition(int index,
                                          boolean addRes)
Parameters:
index -
addRes -
Returns:

removePartitions

public void removePartitions()
remove all partitions in this set


appendPartition

public PartitionHelper appendPartition(JDFAttributeMap partMap,
                                       boolean addRes)
Parameters:
partMap -
addRes - if true, also add the detailed resource element, e.g. Layout
Returns:

getPartitions

public Vector<PartitionHelper> getPartitions()
Returns:
the vector of partition helpers

cleanUp

public void cleanUp()

getName

public String getName()
Returns:
the name of the resource set also fixes it in case it needs to be calculated from kids

getPartitionName

public String getPartitionName()
Returns:

getPartition

public PartitionHelper getPartition(VJDFAttributeMap vmap)
Parameters:
vmap -
Returns:

getSet

public KElement getSet()
Returns:

setUsage

public void setUsage(JDFResourceLink.EnumUsage value)
Parameters:
value -

toString

public String toString()
Overrides:
toString in class Object
Returns:
See Also:
Object.toString()


Copyright © 2013. All Rights Reserved.