| java.lang.Object org.jamwiki.utils.DiffUtil
DiffUtil | public class DiffUtil (Code) | | Utility class for processing the difference between two topics and returing a Vector
of WikiDiff objects that can be used to display the diff.
|
Method Summary | |
public static Vector | diff(String newVersion, String oldVersion) Return a Vector of WikiDiff objects that can be used to create a display of the
diff content.
Parameters: newVersion - The String that is to be compared to, ie the later version of a topic. Parameters: oldVersion - The String that is to be considered as having changed, ie the earlierversion of a topic. | public static Collection | diffTopicVersions(String topicName, int topicVersionId1, int topicVersionId2) Execute a diff between two versions of a topic, returning a collection
of WikiDiff objects indicating what has changed between the versions.
Parameters: topicName - The name of the topic for which a diff is beingperformed. Parameters: topicVersionId1 - The version ID for the old version beingcompared against. Parameters: topicVersionId2 - The version ID for the old version beingcompared to. |
diff | public static Vector diff(String newVersion, String oldVersion)(Code) | | Return a Vector of WikiDiff objects that can be used to create a display of the
diff content.
Parameters: newVersion - The String that is to be compared to, ie the later version of a topic. Parameters: oldVersion - The String that is to be considered as having changed, ie the earlierversion of a topic. Returns a Vector of WikiDiff objects that correspond to the changed text. |
diffTopicVersions | public static Collection diffTopicVersions(String topicName, int topicVersionId1, int topicVersionId2) throws Exception(Code) | | Execute a diff between two versions of a topic, returning a collection
of WikiDiff objects indicating what has changed between the versions.
Parameters: topicName - The name of the topic for which a diff is beingperformed. Parameters: topicVersionId1 - The version ID for the old version beingcompared against. Parameters: topicVersionId2 - The version ID for the old version beingcompared to. A collection of WikiDiff objects indicating what has changedbetween the versions. An empty collection is returned if there areno differences. throws: Exception - Thrown if any error occurs during method execution. |
|
|