Interface VViewModelProperties

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object addInheritableProperty​(java.lang.String key, java.lang.Object value)
      Adds a new inheritable property.
      java.lang.Object addNonInheritableProperty​(java.lang.String key, java.lang.Object value)
      Adds a new non-inheritable property.
      boolean containsKey​(java.lang.String key)
      Returns true if there is either an inherited property or a non-inherited property for the given key.
      java.lang.Object get​(java.lang.String key)
      Returns the property value for the given key or null if there is no property for the given key,
      VViewModelProperties inherit()
      Creates new properties which inherit the inheritable properties of this object.
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • containsKey

        boolean containsKey​(java.lang.String key)
        Returns true if there is either an inherited property or a non-inherited property for the given key. Returns false otherwise.
        Parameters:
        key - the key to check
        Returns:
        whether there is a property for the given key
      • get

        java.lang.Object get​(java.lang.String key)
        Returns the property value for the given key or null if there is no property for the given key,
        Parameters:
        key - the key to get the value for
        Returns:
        the value
      • addInheritableProperty

        java.lang.Object addInheritableProperty​(java.lang.String key,
                                                java.lang.Object value)
        Adds a new inheritable property. Returns the value which has been associated with the given key before the new property was added or null if there was no value for the key.
        Parameters:
        key - the key to add
        value - the value to add
        Returns:
        the previous value
      • addNonInheritableProperty

        java.lang.Object addNonInheritableProperty​(java.lang.String key,
                                                   java.lang.Object value)
        Adds a new non-inheritable property. Returns the value which has been associated with the given key before the new property was added or null if there was no value for the key.
        Parameters:
        key - the key to add
        value - the value to add
        Returns:
        the previous value