public class XJDFHelper extends BaseXJDFHelper
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER |
static String |
RESOURCE |
static String |
XJDF |
static String |
XJMF |
theElement| Constructor and Description |
|---|
XJDFHelper(KElement xjdf) |
XJDFHelper(String jobID,
String jobPartID,
VJDFAttributeMap parts) |
| Modifier and Type | Method and Description |
|---|---|
SetHelper |
appendParameter(String name,
JDFResourceLink.EnumUsage usage)
Deprecated.
|
ProductHelper |
appendProduct() |
SetHelper |
appendResource(String name,
JDFResourceLink.EnumUsage usage)
Deprecated.
|
SetHelper |
appendResourceSet(String name,
JDFResourceLink.EnumUsage usage) |
SetHelper |
appendSet(String family,
String name,
JDFResourceLink.EnumUsage usage) |
void |
cleanUp()
generic cleanup routine
|
XJDFHelper |
clone() |
SetHelper |
getCreateParameterSet(String name,
JDFResourceLink.EnumUsage usage)
Deprecated.
|
SetHelper |
getCreateResourceSet(String name,
JDFResourceLink.EnumUsage usage) |
ProductHelper |
getCreateRootProduct(int iProduct)
get the Root product by index
- note that this need not be the index in the product list but rather depends on the index of the ID in ProductList/@RootProducts
|
SetHelper |
getCreateSet(String family,
String name,
JDFResourceLink.EnumUsage usage) |
static XJDFHelper |
getHelper(KElement root)
factory to create a helper from an element
|
static XJDFHelper |
getHelper(XMLDoc doc)
factory to create a helper from a doc
|
String |
getJobID() |
String |
getJobPartID() |
PartitionHelper |
getPartition(String id) |
PartitionHelper |
getPartition(String name,
int iSet,
int iPart) |
Vector<ProductHelper> |
getProductHelpers()
the vector of product helpers; null if no ProductList or no ProductList/Product
|
KElement |
getResource(String name,
int iSet,
int iPart) |
ProductHelper |
getRootProduct(int iProduct)
get the Root product by index
- note that this need not be the index in the product list but rather depends on the index of the ID in ProductList/@RootProducts
|
Vector<ProductHelper> |
getRootProductHelpers() |
SetHelper |
getSet(String id) |
SetHelper |
getSet(String name,
int iSkip) |
SetHelper |
getSet(String name,
JDFResourceLink.EnumUsage usage,
String processUsage) |
SetHelper |
getSet(String name,
String processUsage) |
SetHelper |
getSetForPartition(String id) |
Vector<SetHelper> |
getSets() |
Vector<SetHelper> |
getSets(SetHelper.EnumFamily family,
JDFResourceLink.EnumUsage usage) |
JDFNode.EnumType |
getType() |
VString |
getTypes() |
boolean |
isSet(KElement e)
Deprecated.
use SetHelper.isSet
|
int |
numProductHelpers(boolean rootOnly) |
void |
removeSet(String name) |
void |
reorder()
ensure we always have auditpool and productlist first
|
void |
setJobID(String jobID) |
void |
setJobPartID(String jobPartID) |
void |
setTypes(String types) |
void |
setTypes(VString vtypes) |
String |
toString() |
File |
writeToDir(String dir)
write to a directory - potentially generating a jobPartID
|
boolean |
writeToFile(String file) |
void |
writeToStream(OutputStream os) |
deleteNode, equals, getID, getRoot, getXPathValue, hashCode, isEqual, setID, setXPathValuepublic static final String RESOURCE
public static final String XJDF
public static final String XJMF
public static final String PARAMETER
public XJDFHelper(KElement xjdf)
xjdf - if null a new XJDF is generated, else the xjdf root to be manipulatedpublic XJDFHelper(String jobID, String jobPartID, VJDFAttributeMap parts)
jobID - , if null a new jobid is generatedjobPartID - parts - public static XJDFHelper getHelper(XMLDoc doc)
doc - the xmldoc to parsepublic static XJDFHelper getHelper(KElement root)
root - the element to parse if not an XJDF - search in ancestors of elementpublic Vector<SetHelper> getSets(SetHelper.EnumFamily family, JDFResourceLink.EnumUsage usage)
family - usage - public SetHelper getSet(String id)
id - public SetHelper getSetForPartition(String id)
id - public PartitionHelper getPartition(String id)
id - @Deprecated public boolean isSet(KElement e)
e - public String getJobID()
public ProductHelper getRootProduct(int iProduct)
iProduct - the index of root productspublic ProductHelper getCreateRootProduct(int iProduct)
iProduct - the index of root productspublic int numProductHelpers(boolean rootOnly)
rootOnly - public Vector<ProductHelper> getRootProductHelpers()
public Vector<ProductHelper> getProductHelpers()
public PartitionHelper getPartition(String name, int iSet, int iPart)
name - iSet - iPart - public KElement getResource(String name, int iSet, int iPart)
name - iSet - iPart - public SetHelper getSet(String name, int iSkip)
name - iSkip - public SetHelper getSet(String name, String processUsage)
name - processUsage - public SetHelper getSet(String name, JDFResourceLink.EnumUsage usage, String processUsage)
name - processUsage - public SetHelper appendSet(String family, String name, JDFResourceLink.EnumUsage usage)
family - - always RESOURCEname - usage - public SetHelper getCreateSet(String family, String name, JDFResourceLink.EnumUsage usage)
family - name - usage - public SetHelper getCreateResourceSet(String name, JDFResourceLink.EnumUsage usage)
name - usage - @Deprecated public SetHelper getCreateParameterSet(String name, JDFResourceLink.EnumUsage usage)
name - usage - public void removeSet(String name)
name - @Deprecated public SetHelper appendParameter(String name, JDFResourceLink.EnumUsage usage)
name - usage - public ProductHelper appendProduct()
@Deprecated public SetHelper appendResource(String name, JDFResourceLink.EnumUsage usage)
name - usage - public SetHelper appendResourceSet(String name, JDFResourceLink.EnumUsage usage)
name - usage - public String toString()
toString in class ObjectObject.toString()public boolean writeToFile(String file)
file - public File writeToDir(String dir)
dir - public void writeToStream(OutputStream os) throws IOException
os - IOExceptionpublic void setTypes(String types)
types - public void setTypes(VString vtypes)
vtypes - public VString getTypes()
public JDFNode.EnumType getType()
public void cleanUp()
BaseXJDFHelpercleanUp in class BaseXJDFHelperBaseXJDFHelper.cleanUp()public XJDFHelper clone()
public String getJobPartID()
public void setJobPartID(String jobPartID)
jobPartID - public void setJobID(String jobID)
jobID - public void reorder()
reorder in class BaseXJDFHelperBaseXJDFHelper.reorder()Copyright © 2015. All rights reserved.