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(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)
appends a synchronous response with an initialized Business Object
|
BusinessObject |
getBusinessObject()
get the business object from a request or response
|
HeaderBase |
getCreateHeader(HeaderBase.EnumHeaderType headerType)
get the one and only header of type headerType
|
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
|
String |
getNamespaceURI()
get the correct namespace uri string
|
static String |
getNamespaceURI(int version)
get the correct namespace uri string
|
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.
|
int |
getVersion()
Getter for version attribute.
|
void |
init()
initialize a new printtalk
|
void |
setCredential(HeaderBase.EnumHeaderType headerType,
String domain,
String identity)
set a new credential identity value
|
static void |
setDefaultVersion(int defaultVersion)
Setter for defaultVersion attribute.
|
void |
setVersion(int version)
Setter for version attribute.
|
appendElement, equals, getAttribute, getAttribute, getAttributeMap, getBoolAttribute, getComment, getCreateElement, getCreateElement, getCreateXPathElement, getDescriptiveName, getElement, getElement, getElements, getRealAttribute, getRoot, getTElem, getXPathAttribute, getXPathElement, hashCode, numElements, setAttribute, setAttribute, setAttribute, setAttribute, setComment, setDescriptiveName, setRoot, setTElem, setXPathAttribute, setXPathValue, toString
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 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 static String getNamespaceURI(int version)
version
- 10=1.0 etcpublic String getNamespaceURI()
public void init()
init
in class AbstractPrintTalk
public void 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 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 existspublic 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()
Copyright © 2017. All rights reserved.