All Implemented Interfaces:
FFDCResponse

public class AssetResponse extends OCFOMASAPIResponse
AssetResponse is the response structure used on the OMAS REST API calls that return a asset bean object as a response. It also returns counts of the number of connected elements for the asset. This can be implemented cheaply as a single pass through the relationships linked to the asset and, assuming that the AssetUniverse structure is sparsely populated, and most callers only assess a specific subset of the information, it reduces the number of server calls needed to populate the AssetUniverse.
  • Constructor Details

    • AssetResponse

      public AssetResponse()
      Default constructor
    • AssetResponse

      public AssetResponse(AssetResponse template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getAsset

      public Asset getAsset()
      Return the asset result.
      Returns:
      unique identifier
    • setAsset

      public void setAsset(Asset asset)
      Set up the asset result.
      Parameters:
      asset - unique identifier
    • getSchemaType

      public SchemaType getSchemaType()
      Is there an attached schema?
      Returns:
      schema type bean
    • setSchemaType

      public void setSchemaType(SchemaType schemaType)
      Set up whether there is an attached schema.
      Parameters:
      schemaType - schema type bean
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class OCFOMASAPIResponse
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class FFDCResponseBase
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class FFDCResponseBase
      Returns:
      int hash code