Class Vocable

  • All Implemented Interfaces:

    public class Vocable
    extends java.lang.Object
    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
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Vocable.Type
      Types of vocabulary
    • Constructor Summary

      Constructor Description
      Vocable​(java.lang.Object xmpValue, java.lang.String label)
      Constructs a new Vocable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()  
      java.lang.Object getXmpValue()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Vocable

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

      • getXmpValue

        public java.lang.Object getXmpValue()
        Returns the XMP value
      • getLabel

        public java.lang.String getLabel()
        Returns the value.