ilog.rules.studio.model.builder

Class IlrCheckerError

  • java.lang.Object
    • ilog.rules.studio.model.builder.IlrCheckerError


  • public class IlrCheckerError
    extends java.lang.Object
    A "light" error marker corresponding to a marker in Eclipse workspace. The difference with workspace markers is that IlrCheckerError is not a workspace element and not persisted. The build process of Rule Studio transforms IlrCheckerErrors into IMarkers.

    IlrCheckerError provides the same APIs as IMarker. Possible values for attributes are the same than IMarker.

    See Also:
    IMarker, IlrBusinessChecker
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrCheckerError(org.eclipse.core.resources.IResource resource, java.lang.String type)
      Constructor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      java.lang.Object getAttribute(java.lang.String attributeName)
      Gets the value of the attribute attributeName.
      java.util.Set<java.lang.String> getAttributeKeys()
      Gets the keys of the different attributes.
      java.util.Map<java.lang.String,java.lang.Object> getAttributes()
      The attributes of the error.
      org.eclipse.core.resources.IResource getResource()
      The resource associated to this IlrCheckerError.
      java.lang.String getType()
      The type of the error.
      int hashCode() 
      void setAttribute(java.lang.String attributeName, boolean value)
      Sets the attribute attributeName.
      void setAttribute(java.lang.String attributeName, int value)
      Sets the attribute attributeName.
      void setAttribute(java.lang.String attributeName, java.lang.Object value)
      Sets the attribute attributeName.
      void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
      Sets the attributes of the error.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrCheckerError

        public IlrCheckerError(org.eclipse.core.resources.IResource resource,
                       java.lang.String type)
        Constructor.
        Parameters:
        resource -
        type -
    • Method Detail

      • equals

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

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

        public org.eclipse.core.resources.IResource getResource()
        The resource associated to this IlrCheckerError.
        Returns:
        the resource with which this error is associated
        See Also:
        IMarker.getResource()
      • getType

        public java.lang.String getType()
        The type of the error.
        Returns:
        the type of this error
        See Also:
        IMarker.getType()
      • getAttributes

        public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
        The attributes of the error.
        Returns:
        a map of attribute keys and values (key type : String value type : String, Integer, or Boolean) or null.
        See Also:
        IMarker.getAttributes()
      • setAttributes

        public void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
        Sets the attributes of the error.
        Parameters:
        attributes -
        See Also:
        IMarker.setAttributes(java.util.Map)
      • setAttribute

        public void setAttribute(java.lang.String attributeName,
                        java.lang.Object value)
        Sets the attribute attributeName.
        See Also:
        IMarker.setAttribute(java.lang.String, java.lang.Object)
      • setAttribute

        public void setAttribute(java.lang.String attributeName,
                        int value)
        Sets the attribute attributeName.
        Parameters:
        attributeName -
        value -
        See Also:
        IMarker.setAttribute(java.lang.String, int)
      • setAttribute

        public void setAttribute(java.lang.String attributeName,
                        boolean value)
        Sets the attribute attributeName.
        Parameters:
        attributeName -
        value -
        See Also:
        IMarker.setAttribute(java.lang.String, boolean)
      • getAttribute

        public java.lang.Object getAttribute(java.lang.String attributeName)
        Gets the value of the attribute attributeName.
        Parameters:
        attributeName -
        Returns:
        the value, or null if the attribute is undefined.
        See Also:
        IMarker.getAttribute(java.lang.String)
      • getAttributeKeys

        public java.util.Set<java.lang.String> getAttributeKeys()
        Gets the keys of the different attributes.
        Returns:
        the set of keys of the attributes of this error

© Copyright IBM Corp. 1987, 2017