|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ados.hestia.parser.rnbm.particle.Common com.ados.hestia.parser.rnbm.exchange.ServiceContent
public class ServiceContent
This is standard class to access ServiceContent fields.
Field Summary | |
---|---|
protected static String[] |
FROM_SUBPATH
|
protected static String |
GLOBAL_FC
|
protected String |
m_fullVer
|
protected String |
m_originalXML
|
protected String |
m_pipID
|
protected boolean |
m_production
|
protected String |
m_shortVer
|
protected static String |
THIS_DOC_ID_XSD_STANDARD
|
protected static String |
THIS_DOC_ID_XSD_VERSION
|
protected static String[] |
THIS_DOC_IDS
|
protected static String |
THIS_DOC_TIME
|
protected static String |
THIS_DOC_TIME_CIDX
|
protected static String |
THIS_DOC_TIME_CIDX_ATTR
|
protected static String |
THIS_DOC_TIME_XSD
|
protected static String[] |
THIS_DOC_TIMES
|
protected static String[] |
TO_SUBPATH
|
Fields inherited from class com.ados.hestia.parser.rnbm.particle.Common |
---|
m_element |
Constructor Summary | |
---|---|
ServiceContent()
For internal use only. |
|
ServiceContent(String pipID,
com.ados.hestia.parser.rnbm.model.RootElement element)
|
|
ServiceContent(String pipID,
com.ados.hestia.parser.rnbm.model.RootElement element,
String versionFull,
String versionShort)
|
|
ServiceContent(String pipID,
com.ados.hestia.parser.rnbm.model.RootElement element,
com.ados.hestia.parser.rnbm.Version version)
|
Method Summary | |
---|---|
void |
clear()
Clear content of document. |
com.ados.hestia.parser.rnbm.particle.DateTimeStamp |
getDocumentGenerationDateTime()
Return date of generation of this document. |
String |
getDocumentIdentifier()
Return identificator of this document. |
com.ados.hestia.parser.rnbm.particle.PartnerRoleIdentification |
getFromRole()
Return description of from role |
String |
getFullVersion()
Return full version of PIP which this content is represent. |
String |
getGlobalDocumentFunctionCode()
Return type of document "Request", "Response" or null if not present. |
String |
getName()
Return name of root element. |
String |
getOriginalXML()
Return content of original XML or null if XML was not set. |
String |
getPIPID()
Return identificator of PIP. |
com.ados.hestia.parser.rnbm.particle.PartnerRoleIdentification |
getToRole()
Return description of to role |
String |
getVersion()
Return short version of PIP which this content is represent. |
boolean |
isProduction()
Indicate that this content is for test exchange |
boolean |
isRequest()
Return true if this document represent Request. |
void |
setDocumentGenerationDateTime(com.ados.hestia.parser.rnbm.particle.DateTimeStamp dateTime)
Set date of generation of this document |
void |
setDocumentIdentifier(String id)
Set this document identificator. |
void |
setFromRole(PartnerProfile from,
com.ados.hestia.parser.rnbm.repository.PIPBluePrint bp)
Set "from" role partner description |
void |
setFromRole(PartnerProfile from,
String role)
Set "from" role partner description |
void |
setGlobalDocumentFunctionCode(String code)
Set type of document "Request", "Response". |
void |
setOriginalXML(String originalXML)
Set original XML text |
void |
setProduction(boolean production)
Set type for this content |
void |
setToRole(PartnerProfile to,
com.ados.hestia.parser.rnbm.repository.PIPBluePrint bp)
Set "to" role partner description |
void |
setToRole(PartnerProfile to,
String role)
Set "to" role partner description |
void |
writeXML(Writer writer,
boolean writeFormatted,
boolean writeDefNamespace)
Write content of ServiceContent as XML file |
Methods inherited from class com.ados.hestia.parser.rnbm.particle.Common |
---|
createElement, createElementSafe, deleteElement, deleteElementSafe, getElement, getElement, getElementSafe, getElementValue, getElementValueSafe, getProcessor, setElementValue, setElementValueSafe, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String m_pipID
protected String m_fullVer
protected String m_shortVer
protected boolean m_production
protected String m_originalXML
protected static final String[] FROM_SUBPATH
protected static final String[] TO_SUBPATH
protected static final String THIS_DOC_TIME
protected static final String THIS_DOC_TIME_XSD
protected static final String THIS_DOC_TIME_CIDX
protected static final String THIS_DOC_TIME_CIDX_ATTR
protected static final String[] THIS_DOC_TIMES
protected static final String[] THIS_DOC_IDS
protected static final String THIS_DOC_ID_XSD_STANDARD
protected static final String THIS_DOC_ID_XSD_VERSION
protected static final String GLOBAL_FC
Constructor Detail |
---|
public ServiceContent()
public ServiceContent(String pipID, com.ados.hestia.parser.rnbm.model.RootElement element)
public ServiceContent(String pipID, com.ados.hestia.parser.rnbm.model.RootElement element, com.ados.hestia.parser.rnbm.Version version)
public ServiceContent(String pipID, com.ados.hestia.parser.rnbm.model.RootElement element, String versionFull, String versionShort)
Method Detail |
---|
public void setOriginalXML(String originalXML)
originalXML
- - content of original XMLpublic String getOriginalXML()
public void writeXML(Writer writer, boolean writeFormatted, boolean writeDefNamespace) throws IOException
writer
- writer wich will be filled.writeFormatted
- set to true if formatted output is required.writeDefNamespace
- set to true if fixed namespace must be write.
IOException
- throws if cannot write to.public String getVersion()
public String getFullVersion()
public String getPIPID()
public String getName()
public String getGlobalDocumentFunctionCode()
public void setGlobalDocumentFunctionCode(String code)
code
- "Request" or "Response".public com.ados.hestia.parser.rnbm.particle.DateTimeStamp getDocumentGenerationDateTime()
public void setDocumentGenerationDateTime(com.ados.hestia.parser.rnbm.particle.DateTimeStamp dateTime)
dateTime
- date of generation of this documentpublic String getDocumentIdentifier()
public void setDocumentIdentifier(String id)
id
- document identificator to set.public boolean isRequest()
public void clear()
public void setFromRole(PartnerProfile from, com.ados.hestia.parser.rnbm.repository.PIPBluePrint bp)
from
- specify sender partnerbp
- use to extract sender role namepublic void setToRole(PartnerProfile to, com.ados.hestia.parser.rnbm.repository.PIPBluePrint bp)
to
- specify receiver partnerbp
- use to extract receiver role namepublic void setFromRole(PartnerProfile from, String role)
from
- specify sender partnerrole
- specify sender partner rolepublic void setToRole(PartnerProfile to, String role)
to
- specify receiver partnerrole
- specify receiver partner rolepublic com.ados.hestia.parser.rnbm.particle.PartnerRoleIdentification getFromRole()
public com.ados.hestia.parser.rnbm.particle.PartnerRoleIdentification getToRole()
public boolean isProduction()
public void setProduction(boolean production)
production
- - true if this is for production or false for test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |