Class Vocable

java.lang.Object
com.adobe.xmp.schema.model.rules.Vocable
All Implemented Interfaces:
Serializable

public class Vocable extends Object implements Serializable
A vocable is one item that is part of the OpenChoice and ClosedChoice rules. It consists of an XMP value (that can be any Object and has to be interpreted by the client) and a label for the UI. Currently Vocables can be of the types
  • XMP Type --> Java Type
  • Text --> String
  • Integer --> Long
  • Real --> Double
  • Boolean --> Boolean
  • Date --> ISO8601 String
  • TODO: Fixed Array of Integers for some Exif special cases
See Also:
  • Constructor Details

    • Vocable

      public Vocable(Object xmpValue, String label)
      Constructs a new Vocable.
      Parameters:
      xmpValue - the XMP value of the vocable
      label - the display label of the vocable
  • Method Details

    • getXmpValue

      public Object getXmpValue()
      Returns:
      Returns the XMP value
    • getLabel

      public String getLabel()
      Returns:
      Returns the value.