|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.utils.MarshallerHelper<X,Y>
X
- the generic typeY
- the generic typepublic class MarshallerHelper<X,Y>
The Class MarshallerHelper.
Field Summary | |
---|---|
static int |
DEFAULT_XOP_THRESHOLD
|
Constructor Summary | |
---|---|
MarshallerHelper(Class<X> unmarshallClass,
Class<Y> marshallClass)
Instantiates a new marshaller helper. |
|
MarshallerHelper(Class<X> unmarshallClass,
Class<Y> marshallClass,
boolean format)
Instantiates a new marshaller helper. |
|
MarshallerHelper(Class<X> unmarshallClass,
Class<Y> marshallClass,
boolean format,
boolean xop)
Instantiates a new marshaller helper. |
|
MarshallerHelper(Class<X> unmarshallClass,
Class<Y> marshallClass,
boolean format,
boolean xop,
int threshold)
|
Method Summary | |
---|---|
void |
addAttachmentPart(String id,
AttachmentPart attachmentPart)
|
void |
clearAttachmentPartMap()
|
Map<String,DataHandler> |
getDataHandlersMap()
Obtain the marshalled attachement as datahandler |
Document |
toDocument(Y data)
|
X |
toObject(byte[] data)
To object. |
X |
toObject(InputStream inputStream)
To object. |
X |
toObject(Node source)
To object. |
X |
toObject(String data)
To object. |
X |
toObjectNoRootElementRequired(byte[] data)
Deprecated. replaced by ConnectorXmlUtils .toObject(byte[] data) |
String |
toString(Y data)
returns marshalled data element. |
String |
toStringNoRootElementRequired(Y data)
Deprecated. replaced by MarshallerHelper .toString(Y data) |
byte[] |
toXMLByteArray(Y data)
To xml byte array. |
byte[] |
toXMLByteArrayNoRootElementRequired(Y data)
Deprecated. replaced by ConnectorXmlUtils .toXMLByteArray(Y data) |
byte[] |
toXMLByteArrayNoRootElementRequired(Y data,
QName rootTag)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_XOP_THRESHOLD
Constructor Detail |
---|
public MarshallerHelper(Class<X> unmarshallClass, Class<Y> marshallClass)
unmarshallClass
- the unmarshall classmarshallClass
- the marshall classpublic MarshallerHelper(Class<X> unmarshallClass, Class<Y> marshallClass, boolean format)
unmarshallClass
- the unmarshall classmarshallClass
- the marshall classformat
- property used to specify whether or not the marshalled XML data is formatted with linefeeds and indentation.public MarshallerHelper(Class<X> unmarshallClass, Class<Y> marshallClass, boolean format, boolean xop)
unmarshallClass
- the unmarshall classmarshallClass
- the marshall classformat
- property used to specify whether or not the marshalled XML data is formatted with linefeeds and indentation.xop
- public MarshallerHelper(Class<X> unmarshallClass, Class<Y> marshallClass, boolean format, boolean xop, int threshold)
Method Detail |
---|
public void addAttachmentPart(String id, AttachmentPart attachmentPart)
public void clearAttachmentPartMap()
public Map<String,DataHandler> getDataHandlersMap()
public Document toDocument(Y data)
public X toObject(byte[] data)
data
- the data
public X toObject(InputStream inputStream)
inputStream
- the input stream
TechnicalConnectorException
public X toObject(Node source)
source
-
public X toObject(String data)
data
- the data
@Deprecated public X toObjectNoRootElementRequired(byte[] data)
ConnectorXmlUtils
.toObject(byte[] data)
data
- the data
public String toString(Y data)
data
- jaxbElement
@Deprecated public String toStringNoRootElementRequired(Y data)
MarshallerHelper
.toString(Y data)
data
- jaxbElement
public byte[] toXMLByteArray(Y data)
data
- the data
@Deprecated public byte[] toXMLByteArrayNoRootElementRequired(Y data)
ConnectorXmlUtils
.toXMLByteArray(Y data)
data
- the data
@Deprecated public byte[] toXMLByteArrayNoRootElementRequired(Y data, QName rootTag)
data
- the data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |