Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.ohf.ihe.xds.metadata.transform
Class ByteArrayDocumentEntryTransformer

    java.lang.Object
      org.eclipse.ohf.ihe.xds.metadata.transform.ByteArrayDocumentEntryTransformer

All Implemented Interfaces:
  DocumentEntryTransformer

    public class ByteArrayDocumentEntryTransformer

extends java.lang.Object
implements DocumentEntryTransformer

Class containing utility methods to transform XDS document Entry metadata to a metadata.xsd conformant byte array.

Author:
  Sarah Knoop

Field Summary
`static java.lang.String` | `DESCRIPTOR` Descriptor for Transformer

Constructor Summary
`ByteArrayDocumentEntryTransformer()`

Method Summary
`byte[]` | `getDocumentEntryByteArray()` Returns the byte array containing a single instance of a DocumentEntryType conformant to the metadata.xsd.
`void` | `transform(DocumentEntryType docEntry)` Renders a byte array containing a single instance of a DocumentEntryType conformant to the metadata.xsd.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DESCRIPTOR

    public static final java.lang.String DESCRIPTOR

  Descriptor for Transformer

  See Also:
    Constant Field Values

Constructor Detail

### ByteArrayDocumentEntryTransformer

    public ByteArrayDocumentEntryTransformer()

Method Detail

### getDocumentEntryByteArray

    public byte[] getDocumentEntryByteArray()

  Returns the byte array containing a single instance of a DocumentEntryType conformant to the metadata.xsd. Returns null if the transformation has not been executed, or had failed.

  Returns:
    the documentEntryByteArray

### transform

    public void transform(DocumentEntryType docEntry)
                   throws MetadataTransformationException

  Renders a byte array containing a single instance of a DocumentEntryType conformant to the metadata.xsd.

  Specified by:
    `transform` in interface `DocumentEntryTransformer`
  Throws:
    `MetadataTransformationException`
  See Also:
    `DocumentEntryTransformer.transform(org.eclipse.ohf.ihe.xds.metadata.DocumentEntryType)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD