com.microfocus.awm.core.internal

## Class JsonStructureType

- java.lang.Object
- - com.microfocus.awm.core.internal.JsonStructureType

- All Implemented Interfaces:
    IStructureType

      public class JsonStructureType
      extends java.lang.Object
      implements IStructureType

  Reads and writes JSON type file structure using `IPropertyElement`
  Author:
    RumenG

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonStructureType()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `createStructure(FileDescriptor pFileDescriptor, IPropertyData pPropertyData)`
    `java.lang.String` | `getID()`
    `java.lang.String` | `getName()`
    `IPropertyData` | `readStructure(FileDescriptor pDescriptor, java.lang.String pStructuredContents)` ...

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonStructureType

          public JsonStructureType()

  - ### Method Detail

    - #### getName

          public java.lang.String getName()

      Specified by:
        `getName` in interface `IStructureType`

    - #### getID

          public java.lang.String getID()

      Specified by:
        `getID` in interface `IStructureType`

    - #### readStructure

          public IPropertyData readStructure(FileDescriptor pDescriptor,
                                             java.lang.String pStructuredContents)
                                      throws TaurusCoreException

      Description copied from interface: `IStructureType`
      ...

      If the given structure document can be considered empty (empty string or e.g. just a header), an `IPropertyData` instance with no `IPropertyElement`s must be returned.

      Specified by:
        `readStructure` in interface `IStructureType`
      Returns:
        created property data. Can contain an empty list of property elements but must not be `null`
      Throws:
        `TaurusCoreException`

    - #### createStructure

          public java.lang.String createStructure(FileDescriptor pFileDescriptor,
                                                  IPropertyData pPropertyData)
                                           throws TaurusCoreException

      Specified by:
        `createStructure` in interface `IStructureType`
      Returns:
      Throws:
        `TaurusCoreException`

Copyright © 2015 Micro Focus GmbH. All rights reserved.