org.instrumentmiddleware.cima.util
Class ParcelUtil

java.lang.Object
  extended by org.instrumentmiddleware.cima.util.ParcelUtil

public class ParcelUtil
extends java.lang.Object


Field Summary
static java.lang.String VERSION
           
 
Constructor Summary
ParcelUtil()
           
 
Method Summary
static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel[] concatenate(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel[] a, org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel[] b)
           
static org.instrumentmiddleware.cima.parcel.ResponseBodyType getResponse(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel parcel)
          Turns the body into a ResponseBodyType
static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel newParcel()
          Create a new parcel with the version set
static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel newParcel(org.instrumentmiddleware.cima.parcel.ParcelTypeEnum.Enum type)
          Create a new parcel with the version and type set
static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel newParcel(java.lang.String type)
          Create a new parcel with the version and type set
static void validateXmlObject(org.apache.xmlbeans.XmlObject target)
          Tests the validity of an XmlObject and captures the error messages if the object is not valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

ParcelUtil

public ParcelUtil()
Method Detail

concatenate

public static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel[] concatenate(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel[] a,
                                                                                       org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel[] b)

newParcel

public static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel newParcel()
Create a new parcel with the version set

Returns:
a new parcel with the version set

newParcel

public static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel newParcel(org.instrumentmiddleware.cima.parcel.ParcelTypeEnum.Enum type)
Create a new parcel with the version and type set

Parameters:
type - the type of the parcel
Returns:
a new parcel with the version and type set

newParcel

public static org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel newParcel(java.lang.String type)
Create a new parcel with the version and type set

Parameters:
type - the type of the parcel
Returns:
a new parcel with the version and type set

getResponse

public static org.instrumentmiddleware.cima.parcel.ResponseBodyType getResponse(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel parcel)
Turns the body into a ResponseBodyType

Parameters:
parcel - the parcel to alter
Returns:
the new parcel body

validateXmlObject

public static void validateXmlObject(org.apache.xmlbeans.XmlObject target)
                              throws org.apache.xmlbeans.XmlException
Tests the validity of an XmlObject and captures the error messages if the object is not valid

Parameters:
target - The object to test
Throws:
org.apache.xmlbeans.XmlException - The bundled error messages


Copyright © 2008. All Rights Reserved.