org.argouml.persistence
Class ResolvedCriticXMLHelper

java.lang.Object
  extended byorg.argouml.persistence.ResolvedCriticXMLHelper

public class ResolvedCriticXMLHelper
extends 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
private  ResolvedCritic item
          The ResolvedCritic this instance helps.
 
Constructor Summary
ResolvedCriticXMLHelper(ResolvedCritic rc)
          Creates a new ResolvedCriticXMLHelper for helping item.
 
Method Summary
 String getCritic()
          Encodes the critic of this ResolvedCritic in an XML safe way and returns the new String.
 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

private final ResolvedCritic item
The ResolvedCritic this instance helps.

Constructor Detail

ResolvedCriticXMLHelper

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

Parameters:
rc - The ResolvedCritic to expose.
Method Detail

getCritic

public 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 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-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook