org.cip4.jdflib.extensions
Class PartitionHelper
java.lang.Object
org.cip4.jdflib.extensions.BaseXJDFHelper
org.cip4.jdflib.extensions.PartitionHelper
- All Implemented Interfaces:
- IAmountPoolContainer
public class PartitionHelper
- extends BaseXJDFHelper
- implements IAmountPoolContainer
- Author:
- Rainer Prosi, Heidelberger Druckmaschinen *
PartitionHelper
public PartitionHelper(KElement partition)
- Parameters:
partition -
getPartMapVector
public VJDFAttributeMap getPartMapVector()
- Specified by:
getPartMapVector in interface IAmountPoolContainer
- Returns:
matches
public boolean matches(JDFAttributeMap map)
- Parameters:
map -
- Returns:
containsMap
public boolean containsMap(JDFAttributeMap map)
- Parameters:
map -
- Returns:
matches
public boolean matches(VJDFAttributeMap vmap)
- Parameters:
vmap -
- Returns:
getPartition
public KElement getPartition()
- Returns:
- the generic Parameter or Resource element
setAmount
public void setAmount(double amount,
JDFAttributeMap moreMap,
boolean bGood)
- Parameters:
amount - moreMap - bGood -
getResource
public KElement getResource()
- Returns:
- the actual detailed resource
getCreateResource
public KElement getCreateResource()
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
- Returns:
- See Also:
Object.toString()
cleanUp
public void cleanUp()
- generic cleanup stuff
getAmountPool
public JDFAmountPool getAmountPool()
- Specified by:
getAmountPool in interface IAmountPoolContainer
- Returns:
- the matching amountpool
- See Also:
IAmountPoolContainer.getAmountPool()
getAttribute
public String getAttribute(String attrib,
String nameSpaceURI,
String def)
- Specified by:
getAttribute in interface IAmountPoolContainer
- Returns:
- See Also:
IAmountPoolContainer.getAttribute(java.lang.String, java.lang.String, java.lang.String)
getRealAttribute
public double getRealAttribute(String attName,
String namespace,
double def)
- Specified by:
getRealAttribute in interface IAmountPoolContainer
- Returns:
- See Also:
IAmountPoolContainer.getRealAttribute(java.lang.String, java.lang.String, double)
hasAttribute
public boolean hasAttribute(String attName)
- Specified by:
hasAttribute in interface IAmountPoolContainer
- Returns:
- See Also:
IAmountPoolContainer.hasAttribute(java.lang.String)
getLinkRoot
public JDFResource getLinkRoot()
- Specified by:
getLinkRoot in interface IAmountPoolContainer
- Returns:
- See Also:
IAmountPoolContainer.getLinkRoot()
setAttribute
public void setAttribute(String attrib,
String value,
String nameSpaceURI)
- Specified by:
setAttribute in interface IAmountPoolContainer
- See Also:
IAmountPoolContainer.setAttribute(java.lang.String, java.lang.String, java.lang.String)
removeAttribute
public void removeAttribute(String attrib,
String nameSpaceURI)
- Specified by:
removeAttribute in interface IAmountPoolContainer
- See Also:
IAmountPoolContainer.removeAttribute(java.lang.String, java.lang.String)
getCreateAmountPool
public JDFAmountPool getCreateAmountPool()
- Specified by:
getCreateAmountPool in interface IAmountPoolContainer
- Returns:
- the AmountPool
- See Also:
IAmountPoolContainer.getCreateAmountPool()
Copyright © 2013. All Rights Reserved.