public class PrintTalk extends AbstractPrintTalk
Modifier and Type | Class and Description |
---|---|
static class |
PrintTalk.EnumBusinessObject
business object types
|
Modifier and Type | Field and Description |
---|---|
static String |
AGENT_ID |
static String |
MIME_PRINT_TALK |
static String |
PRINT_TALK |
static String |
REQUEST |
static String |
RESPONSE |
ATTR_JOBIDREF, log, theElement
Constructor and Description |
---|
PrintTalk()
create a new printtalk helper
|
PrintTalk(int version)
create a new printtalk helper
|
PrintTalk(org.cip4.jdflib.core.KElement theElement)
create a printtalk helper
|
Modifier and Type | Method and Description |
---|---|
BusinessObject |
appendRequest(PrintTalk.EnumBusinessObject bo,
PrintTalk ref)
appends a request with an initialized Business Object
|
BusinessObject |
appendResponse(PrintTalk.EnumBusinessObject bo,
PrintTalk ref)
Deprecated.
currently synchronous responses are not handled
|
void |
cleanUp()
generic cleanup routine
|
BusinessObject |
getBusinessObject()
get the business object from a request
|
HeaderBase |
getCreateHeader(HeaderBase.EnumHeaderType headerType)
get the one and only header of type headerType
|
Credential |
getCredential(HeaderBase.EnumHeaderType headerType,
String domain)
get a credential
|
String |
getCredentialIdentity(HeaderBase.EnumHeaderType headerType,
String domain)
set a new credential value
|
static int |
getDefaultVersion()
Getter for defaultVersion attribute.
|
HeaderBase |
getHeader(HeaderBase.EnumHeaderType headerType)
get the header from a request
|
org.cip4.jdflib.core.VString |
getICSVersions()
get NMTOKENS attribute ICSVersions
|
String |
getNamespaceURI()
get the correct namespace uri string
|
static String |
getNamespaceURI(int version)
get the correct namespace uri string
|
String |
getPayloadID() |
PrintTalk |
getPrintTalk()
get the root element
|
static PrintTalk |
getPrintTalk(org.cip4.jdflib.core.KElement theElement)
return the PrintTalk element for theElement id TheElement is a printtalk element
|
org.cip4.jdflib.util.JDFDate |
getTimestamp()
Getter for timestamp attribute. also checks for legacy "TimeStamp"
|
int |
getVersion()
Getter for version attribute.
|
void |
init()
initialize a new printtalk
|
static boolean |
isInPTKNameSpace(String ns)
checks whether kElem is in the PTK namespace
|
Credential |
setCredential(HeaderBase.EnumHeaderType headerType,
String domain,
String identity)
set a new credential identity value
|
static void |
setDefaultVersion(int defaultVersion)
Setter for defaultVersion attribute.
|
void |
setICSVersions(org.cip4.jdflib.core.VString value)
set attribute ICSVersions
|
void |
setPayloadID(String payloadID) |
void |
setVersion(int version)
Setter for version that is used to generate the namespace
|
boolean |
write2File(String filename) |
appendElement, appendXJDFElement, equals, getAttribute, getAttribute, getAttributeMap, getBoolAttribute, getComment, getCreateElement, getCreateElement, getCreateXJDFElement, getCreateXPathElement, getDescriptiveName, getElement, getElement, getElements, getLocalName, getNodeName, getRealAttribute, getRoot, getTElem, getXJDFElement, getXPathAttribute, getXPathElement, hashCode, numElements, setAttribute, setAttribute, setAttribute, setAttribute, setComment, setDescriptiveName, setRoot, setTElem, setVAttribute, setXPathAttribute, setXPathValue, toString, toXML
public static final String REQUEST
public static final String RESPONSE
public static final String PRINT_TALK
public static final String AGENT_ID
public static final String MIME_PRINT_TALK
public PrintTalk(org.cip4.jdflib.core.KElement theElement)
theElement
- public PrintTalk()
public PrintTalk(int version)
public static int getDefaultVersion()
public static void setDefaultVersion(int defaultVersion)
defaultVersion
- the defaultVersion to setpublic static PrintTalk getPrintTalk(org.cip4.jdflib.core.KElement theElement)
theElement
- public void cleanUp()
cleanUp
in class AbstractPrintTalk
public static boolean isInPTKNameSpace(String ns)
ns
- the KElement to checkpublic static String getNamespaceURI(int version)
version
- 10=1.0 etcpublic String getNamespaceURI()
public void init()
init
in class AbstractPrintTalk
public Credential setCredential(HeaderBase.EnumHeaderType headerType, String domain, String identity)
headerType
- type of headerdomain
- domain nameidentity
- Identity valuepublic String getCredentialIdentity(HeaderBase.EnumHeaderType headerType, String domain)
headerType
- type of headerdomain
- domain namepublic Credential getCredential(HeaderBase.EnumHeaderType headerType, String domain)
headerType
- type of headerdomain
- domain namepublic HeaderBase getCreateHeader(HeaderBase.EnumHeaderType headerType)
headerType
- public void setVersion(int version)
version
- the version to setpublic int getVersion()
public org.cip4.jdflib.util.JDFDate getTimestamp()
public BusinessObject appendRequest(PrintTalk.EnumBusinessObject bo, PrintTalk ref) throws IllegalArgumentException
bo
- the business object typeref
- the printtalk object that this referencesIllegalArgumentException
- if bo already exists@Deprecated public BusinessObject appendResponse(PrintTalk.EnumBusinessObject bo, PrintTalk ref) throws IllegalArgumentException
bo
- the business object typeref
- the printtalk object that this referencesIllegalArgumentException
- if bo already existspublic BusinessObject getBusinessObject()
public HeaderBase getHeader(HeaderBase.EnumHeaderType headerType)
headerType
- the type (From / to / Sender)public PrintTalk getPrintTalk()
AbstractPrintTalk
getPrintTalk
in class AbstractPrintTalk
AbstractPrintTalk.getPrintTalk()
public String getPayloadID()
public void setPayloadID(String payloadID)
payloadID
- public boolean write2File(String filename)
filename
- KElement.write2File(java.lang.String)
public void setICSVersions(org.cip4.jdflib.core.VString value)
value
- the value to set the attribute topublic org.cip4.jdflib.core.VString getICSVersions()
bInherit
- if true recurse through ancestors when searchingCopyright © 2019. All rights reserved.