public class XJDFHelper extends BaseXJDFHelper implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER
Deprecated.
|
static String |
RESOURCE |
static String |
XJDF |
static String |
XJMF |
log, theElement| Constructor and Description |
|---|
XJDFHelper(KElement xjdf) |
XJDFHelper(String jobID,
String jobPartID,
VJDFAttributeMap parts) |
appendElement, copyHelper, deleteNode, ensureID, equals, getAttribute, getCreateElement, getGeneralID, getID, getRoot, getXPathElement, getXPathValue, hashCode, isEqual, removeAttribute, setAttribute, setGeneralID, setID, setXPathValuepublic static final String RESOURCE
public static final String XJDF
public static final String XJMF
@Deprecated 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(String setName, JDFResourceLink.EnumUsage usage)
setName - usage - public AuditPoolHelper getAuditPool()
public AuditPoolHelper getCreateAuditPool()
public SetHelper getSet(String id)
id - public SetHelper getSetForPartition(String id)
id - public ResourceHelper getPartition(String id)
id - @Deprecated public boolean isSet(KElement e)
e - public String getJobID()
public VString getDependentJobParts(JDFResourceLink.EnumUsage usage)
usage - if Input, get predecessors, if Output get followers, if null get anypublic ProductHelper getProduct(String id)
id - public ProductHelper getCreateProduct(String id)
id - 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 ResourceHelper 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, JDFResourceLink.EnumUsage usage, String processUsage)
name - usage - processUsage - public SetHelper getSet(String name, JDFResourceLink.EnumUsage usage)
name - usage - public SetHelper appendSet(String family, String name, JDFResourceLink.EnumUsage usage)
family - - always RESOURCE better use appendResourceSetname - usage - public SetHelper getCreateSet(String family, String name, JDFResourceLink.EnumUsage usage)
family - name - usage - @Deprecated public SetHelper getCreateResourceSet(String name, JDFResourceLink.EnumUsage usage)
name - usage - public SetHelper getCreateSet(String name, JDFResourceLink.EnumUsage usage)
name - usage - public SetHelper getCreateSet(String name, JDFResourceLink.EnumUsage usage, String processUsage)
name - usage - processUsage - @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 BaseXJDFHelperObject.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 String getCategory()
public VJDFAttributeMap getPartMapVector()
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()public void removeType(String typ, int iSkip)
typ - iSkip - public XJDFHelper addType(String typ)
typ - public XJDFHelper addType(JDFNode.EnumType typ)
typ - public void addType(String typ, int iSkip)
typ - iSkip - <0 for appendpublic int indexOfType(String typ, int iSkip)
typ - iSkip - Copyright © 2018. All rights reserved.