Class OAVObjectIdGenerator

  • All Implemented Interfaces:
    IOAVIdGenerator

    public class OAVObjectIdGenerator
    extends java.lang.Object
    implements IOAVIdGenerator
    Simplest possible id generatorusing plain objects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean iscontentid
      The flag indicating if content ids should be produced.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object createId​(IOAVState state, OAVObjectType type)
      Create a unique id.
      boolean isId​(java.lang.Object id)
      Test if an object is an id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iscontentid

        protected boolean iscontentid
        The flag indicating if content ids should be produced.
    • Constructor Detail

      • OAVObjectIdGenerator

        public OAVObjectIdGenerator()
        Create a new id generator.
      • OAVObjectIdGenerator

        public OAVObjectIdGenerator​(boolean iscontentid)
        Create a new id generator.
    • Method Detail

      • createId

        public java.lang.Object createId​(IOAVState state,
                                         OAVObjectType type)
        Create a unique id.
        Specified by:
        createId in interface IOAVIdGenerator
        Parameters:
        state - The state.
        type - The object type.
        Returns:
        The new id.
      • isId

        public boolean isId​(java.lang.Object id)
        Test if an object is an id.
        Specified by:
        isId in interface IOAVIdGenerator
        Parameters:
        state - The state.
        type - The object type.
        Returns:
        The new id.