Class GenericElement

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.Object> properties  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GenericElement​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      All values of properties need to be immutable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getId()  
      java.lang.String getLabel()  
      java.lang.String getNamespace()  
      java.util.Map<java.lang.String,​java.lang.Object> getProperties()  
      <T> T getProperty​(java.lang.String key)  
      <T> T getProperty​(java.lang.String key, T defaultValue)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • properties

        protected final java.util.Map<java.lang.String,​java.lang.Object> properties
    • Constructor Detail

      • GenericElement

        protected GenericElement​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        All values of properties need to be immutable.
    • Method Detail

      • getProperty

        public <T> T getProperty​(java.lang.String key)
      • getProperty

        public <T> T getProperty​(java.lang.String key,
                                 T defaultValue)
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
      • getNamespace

        public java.lang.String getNamespace()
      • getLabel

        public java.lang.String getLabel()
      • getId

        public java.lang.String getId()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object