Class Vocable

  • All Implemented Interfaces:

    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:
    Serialized Form
    • Constructor Detail

      • Vocable

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

      • getXmpValue

        public Object getXmpValue()
        Returns the XMP value
      • getLabel

        public String getLabel()
        Returns the value.