org.eclipse.emf.ecp.internal.validation
Class ValidationService.CachedSeverityTreeNode

java.lang.Object
  extended by org.eclipse.emf.ecp.common.spi.cachetree.CachedTreeNode<org.eclipse.emf.common.util.Diagnostic>
      extended by org.eclipse.emf.ecp.internal.validation.ValidationService.CachedSeverityTreeNode
Enclosing class:
ValidationService

public class ValidationService.CachedSeverityTreeNode
extends CachedTreeNode<org.eclipse.emf.common.util.Diagnostic>

Tree node that caches the severity of its children.


Constructor Summary
ValidationService.CachedSeverityTreeNode(org.eclipse.emf.common.util.Diagnostic diagnostic)
          Constructor.
 
Method Summary
 org.eclipse.emf.common.util.Diagnostic getDisplayValue()
          Returns the value that this node should represent.
 void update()
          Recomputes the cached value of this node.
 
Methods inherited from class org.eclipse.emf.ecp.common.spi.cachetree.CachedTreeNode
getChildValue, getOwnValue, getParent, putIntoCache, removeFromCache, setOwnValue, setParent, values
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationService.CachedSeverityTreeNode

public ValidationService.CachedSeverityTreeNode(org.eclipse.emf.common.util.Diagnostic diagnostic)
Constructor.

Parameters:
diagnostic - the initial diagnostic containing the severity and validation message
Method Detail

update

public void update()
Recomputes the cached value of this node.


getDisplayValue

public org.eclipse.emf.common.util.Diagnostic getDisplayValue()
Description copied from class: CachedTreeNode
Returns the value that this node should represent. This value is also passed to parents in case of changes to the tree.

Specified by:
getDisplayValue in class CachedTreeNode<org.eclipse.emf.common.util.Diagnostic>
Returns:
the display value


Copyright © 2015. All Rights Reserved.