Class PlainJavaMarker

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Deletes this marker from its associated resource.
      java.lang.Object getAttribute​(java.lang.String attributeName)
      Returns the value of the given attribute.
      boolean getAttribute​(java.lang.String attributeName, boolean defaultValue)
      Returns the value of the given attribute of type boolean.
      int getAttribute​(java.lang.String attributeName, int defaultValue)
      Returns the value of the given attribute of type int.
      java.lang.String getAttribute​(java.lang.String attributeName, java.lang.String defaultValue)
      Returns the value of the given attribute of type String.
      long getId()
      Returns this marker's unique ID.
      java.lang.String getType()
      Returns this marker's type.
      boolean isError()
      Convenience method that returns whether this marker has a 'severity' attribute marking it as an 'error'.
      void setAttribute​(java.lang.String attributeName, java.lang.Object value)
      Sets the value of the given attribute.
      void setAttributes​(java.lang.String[] attributeNames, java.lang.Object[] values)
      Sets the values of the given attributes.
      • Methods inherited from class java.lang.Object

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

      • delete

        public void delete()
        Description copied from interface: AMarker
        Deletes this marker from its associated resource.
        Specified by:
        delete in interface AMarker
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String attributeName)
        Description copied from interface: AMarker
        Returns the value of the given attribute. Attributes may be strings, integers or booleans. When an attribute is not set null is returned.
        Specified by:
        getAttribute in interface AMarker
        Parameters:
        attributeName - an attribute's name
        Returns:
        the value associated with the given attribute
      • getAttribute

        public java.lang.String getAttribute​(java.lang.String attributeName,
                                             java.lang.String defaultValue)
        Description copied from interface: AMarker
        Returns the value of the given attribute of type String. When the attribute is not set the given default value is returned.
        Specified by:
        getAttribute in interface AMarker
        Parameters:
        attributeName - a String attribute's name
        Returns:
        the value associated with the given attribute or the default value
      • getAttribute

        public int getAttribute​(java.lang.String attributeName,
                                int defaultValue)
        Description copied from interface: AMarker
        Returns the value of the given attribute of type int. When the attribute is not set the given default value is returned.
        Specified by:
        getAttribute in interface AMarker
        Parameters:
        attributeName - an integer attribute's name
        Returns:
        the value associated with the given attribute or the default value
      • getAttribute

        public boolean getAttribute​(java.lang.String attributeName,
                                    boolean defaultValue)
        Description copied from interface: AMarker
        Returns the value of the given attribute of type boolean. When the attribute is not set the given default value is returned.
        Specified by:
        getAttribute in interface AMarker
        Parameters:
        attributeName - a boolean attribute's name
        Returns:
        the value associated with the given attribute or the default value
      • setAttribute

        public void setAttribute​(java.lang.String attributeName,
                                 java.lang.Object value)
        Description copied from interface: AMarker
        Sets the value of the given attribute. Attributes may be strings, integers or booleans. An attribute may be removed by setting its value to null.
        Specified by:
        setAttribute in interface AMarker
        Parameters:
        attributeName - an attribute's name
        value - the value to be associated with the given attribute
      • setAttributes

        public void setAttributes​(java.lang.String[] attributeNames,
                                  java.lang.Object[] values)
        Description copied from interface: AMarker
        Sets the values of the given attributes. Attributes may be strings, integers or booleans. An attribute may be removed by setting its value to null.
        Specified by:
        setAttributes in interface AMarker
        Parameters:
        attributeNames - an array of attribute's name
        values - the values to be associated with the given attribute, must be of the same length as the array of attribute names
      • isError

        public boolean isError()
        Description copied from interface: AMarker
        Convenience method that returns whether this marker has a 'severity' attribute marking it as an 'error'.
        Specified by:
        isError in interface AMarker
      • getType

        public java.lang.String getType()
        Description copied from interface: AMarker
        Returns this marker's type.
        Specified by:
        getType in interface AMarker
      • getId

        public long getId()
        Description copied from interface: AMarker
        Returns this marker's unique ID.
        Specified by:
        getId in interface AMarker