org.argouml.persistence
Class ResolvedCriticXMLHelper
java.lang.Object
org.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
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 |
item
private final ResolvedCritic item
- The ResolvedCritic this instance helps.
ResolvedCriticXMLHelper
public ResolvedCriticXMLHelper(ResolvedCritic rc)
- Creates a new ResolvedCriticXMLHelper for helping item.
- Parameters:
rc
- The ResolvedCritic to expose.
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