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 ByteArrayFolderTransformer

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

All Implemented Interfaces:
  FolderTransformer

    public class ByteArrayFolderTransformer

extends java.lang.Object
implements FolderTransformer

Class containing utility methods to transform XDS Folder metadata to a metadata.xsd conformant ByteArray.

Author:
  Sarah Knoop

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

Constructor Summary
`ByteArrayFolderTransformer()`

Method Summary
`byte[]` | `getFolderByteArray()` Returns the byte array containing a single instance of a FolderType conformant to the metadata.xsd.
`void` | `transform(FolderType folder)` Renders a byte array containing a single instance of a FolderType 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

### ByteArrayFolderTransformer

    public ByteArrayFolderTransformer()

Method Detail

### getFolderByteArray

    public byte[] getFolderByteArray()

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

  Returns:
    the folderByteArray

### transform

    public void transform(FolderType folder)
                   throws MetadataTransformationException

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

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

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