Package org.cip4.lib.xjdf.builder
Class XJdfBuilder
Implementation of a XJdf builder class.
-
Constructor Summary
ConstructorsConstructorDescriptionXJdfBuilder(String jobID) Custom Constructor.XJdfBuilder(String jobID, String category) Custom Constructor.XJdfBuilder(String jobID, String category, String descriptiveName) Custom Constructor.XJdfBuilder(String jobID, String category, String descriptiveName, String relatedJobID) Custom Constructor.XJdfBuilder(XJDF xjdf) Custom Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAppend a Audit to the XJDF Document.final voidaddComment(String comment) Append Comment to XJDF Document.final voidaddGeneralID(GeneralID generalId) Append GeneralID node to XJDF Document.final voidaddProduct(Product product) Append Product node to xJdf Document.final voidaddResource(List<SpecificResource> specificResources) Append Resource list to xJdf Document.final voidaddResource(List<SpecificResource> specificResources, String processUsage) Append Resource List to xJdf Document.voidaddResource(Resource resource, String processUsage) Append Resource node to xJdf Document.final voidaddResource(SpecificResource specificResource) Append Resource node to xJdf Document.final voidaddResource(SpecificResource specificResource, String processUsage) Append Resource node to xJdf Document.final ResourceaddResource(SpecificResource specificResource, Part part) Append Resource node to xJdf Document.final ResourceaddResource(SpecificResource specificResource, Part part, String processUsage) Append Resource node to xJdf Document.final voidaddResourceSet(ResourceSet resourceSet) Add a resourceSet to the underlying xjdf.getXJdf()Getter for xJdf attribute.Methods inherited from class org.cip4.lib.xjdf.builder.AbstractNodeBuilder
build, getNode
-
Constructor Details
-
XJdfBuilder
public XJdfBuilder() -
XJdfBuilder
Custom Constructor. Creates a new instance of XJdfBuilder which already contains values for attributes Category (='Web2Print') and JobID.- Parameters:
jobID- Value of attribute JobID.
-
XJdfBuilder
Custom Constructor. Creates a new instance of XJdfBuilder which already contains values for attributes Category, JobID.- Parameters:
jobID- Value of attribute JobID.category- Value of attribute Category.
-
XJdfBuilder
Custom Constructor. Creates a new instance of XJdfBuilder which already contains values for attributes Category, JobID, DescriptiveName.- Parameters:
jobID- Value of attribute JobID.category- Value of attribute Category.descriptiveName- Value of attribute DescriptiveName.
-
XJdfBuilder
Custom Constructor. Creates a new instance of XJdfBuilder which already contains values for attributes Category, JobID, DescriptiveName and RelatedJobID.- Parameters:
jobID- Value of attribute JobID.category- Value of attribute Category.descriptiveName- Value of attribute DescriptiveName.relatedJobID- Value of attribute RelatedJobID.
-
XJdfBuilder
Custom Constructor. Creates a new instance of XJdfBuilder based on a existing XJDF Document.- Parameters:
xjdf- XJDF Document for modify.
-
-
Method Details
-
getXJdf
Getter for xJdf attribute.- Returns:
- the xJdf
-
addComment
Append Comment to XJDF Document.- Parameters:
comment- Comment to append to.
-
addGeneralID
Append GeneralID node to XJDF Document.- Parameters:
generalId- GeneralID object to append.
-
addProduct
Append Product node to xJdf Document.- Parameters:
product- Product object to append.
-
addAudit
Append a Audit to the XJDF Document.- Parameters:
audit- The audit to be attended append.
-
addResource
Append Resource node to xJdf Document.- Parameters:
specificResource- Resource object to append.
-
addResource
Append Resource node to xJdf Document.- Parameters:
specificResource- Resource object to append.processUsage- ProcessUsage of resource.
-
addResource
Append Resource list to xJdf Document.- Parameters:
specificResources- Resource objects to append.
-
addResource
Append Resource List to xJdf Document.- Parameters:
specificResources- Resource objects to append.processUsage- ProcessUsage of resource.
-
addResource
Append Resource node to xJdf Document.- Parameters:
specificResource- Resource object to append.part- Partitioning definitions.- Returns:
- Resource that was added.
-
addResource
public final Resource addResource(SpecificResource specificResource, Part part, String processUsage) Append Resource node to xJdf Document.- Parameters:
specificResource- Resource object to append.part- Partitioning definitions.processUsage- ProcessUsage of resource.- Returns:
- Resource that was added.
-
addResource
Append Resource node to xJdf Document.- Parameters:
resource- Resource node to append to.processUsage- ProcessUsage of resource.
-
addResourceSet
Add a resourceSet to the underlying xjdf. TODO: Merge added sets with matching existing sets.- Parameters:
resourceSet- ResourceSet to add to the xjdf.
-