org.argouml.xml.todo
Class ResolvedCriticXMLHelper

java.lang.Object
  |
  +--org.argouml.xml.todo.ResolvedCriticXMLHelper

public class ResolvedCriticXMLHelper
extends java.lang.Object

A helper class to provide a view of a ResolvedCritic that is particularly suited for saving to an XML file.

See Also:
ResolvedCritic

Field Summary
protected  ResolvedCritic _item
          The ResolvedCritic this instance helps.
 
Constructor Summary
ResolvedCriticXMLHelper(ResolvedCritic item)
          Creates a new ResolvedCriticXMLHelper for helping item.
 
Method Summary
 java.lang.String getCritic()
          Encodes the critic of this ResolvedCritic in an XML safe way and returns the new String.
 java.util.Vector getOffenderList()
          Gets the offender vector of this critic where each offender is wrapped in an OffenderXMLHelper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_item

protected final ResolvedCritic _item
The ResolvedCritic this instance helps.

Constructor Detail

ResolvedCriticXMLHelper

public ResolvedCriticXMLHelper(ResolvedCritic item)
Creates a new ResolvedCriticXMLHelper for helping item.

Parameters:
item - The ResolvedCritic to expose.
Method Detail

getCritic

public java.lang.String getCritic()
Encodes the critic of this ResolvedCritic in an XML safe way and returns the new String. The String can be regained by running the returned String through TodoParser::decode.

Returns:
The encoded critic.

getOffenderList

public java.util.Vector getOffenderList()
Gets the offender vector of this critic where each offender is wrapped in an OffenderXMLHelper.

Returns:
A Vector of OffenderXMLHelpers, or null if there are no offenders.
See Also:
OffenderXMLHelper


ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook