|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.test.CompendiumToIX
public class CompendiumToIX
Converts a Compendium map expressed in Compendium's XML syntax to an I-X plan in I-X XML syntax.
main(String[])
Nested Class Summary | |
---|---|
(package private) class |
CompendiumToIX.Link
A simple representation of Compendium links. |
Field Summary | |
---|---|
(package private) java.util.List |
activities
|
(package private) static int |
ARGUMENT
Compendium node type |
(package private) static int |
ARGUMENT_SHORTCUT
Compendium node type |
(package private) PlanBuilder |
builder
|
(package private) java.util.Map |
CompendiumIdToIXObjectMap
|
(package private) static int |
CON
Compendium node type |
(package private) static int |
CON_SHORTCUT
Compendium node type |
(package private) java.util.List |
constraints
|
(package private) static int |
DECISION
Compendium node type |
(package private) static int |
DECISION_SHORTCUT
Compendium node type |
(package private) static int |
ISSUE
Compendium node type |
(package private) static int |
ISSUE_SHORTCUT
Compendium node type |
(package private) java.util.List |
issues
|
(package private) static java.lang.String |
K_ID
Annotation key |
(package private) static java.lang.String |
K_LABEL
Annotation key |
(package private) static java.lang.String |
K_LINKS
Annotation key |
(package private) MultiMap |
linkMap
|
(package private) static int |
LIST
Compendium node type |
(package private) static int |
LIST_SHORTCUT
Compendium node type |
(package private) static int |
MAP
Compendium node type |
(package private) static int |
MAP_SHORTCUT
Compendium node type |
(package private) static int |
NOTE
Compendium node type |
(package private) static int |
NOTE_SHORTCUT
Compendium node type |
(package private) static int |
POSITION
Compendium node type |
(package private) static int |
POSITION_SHORTCUT
Compendium node type |
(package private) static int |
PRO
Compendium node type |
(package private) static int |
PRO_SHORTCUT
Compendium node type |
(package private) static int |
REFERENCE
Compendium node type |
(package private) static int |
REFERENCE_SHORTCUT
Compendium node type |
Constructor Summary | |
---|---|
CompendiumToIX()
|
Method Summary | |
---|---|
(package private) void |
addActivityToPlan(Activity activity)
Adds an activity as a subactivity of its parent activity, if it has one, else as a top-level activity. |
(package private) void |
addConstraintToPlan(Constraint con)
Adds a top-level constraint. |
(package private) void |
addIssueToPlan(Issue issue)
Adds an issue as a subissue of its parent issue, if it has one, else as a top-level issue. |
(package private) void |
addLinksAnnotation(IXObject item,
IXObject parent)
Gives the item an annotation with key K_LINKS
and value a list of link descriptions. |
(package private) void |
addNodeAnnotations(IXObject item,
org.jdom.Element elt)
Give the IXObject any "standard" annotations derived from the Compendium node. |
(package private) IXObject |
findParent(IXObject item)
Returns the item's parent, if it has one; otherwise, returns null. |
(package private) java.lang.String |
getCompendiumId(org.jdom.Element elt)
Returns the value of an Element's "id" attribute. |
(package private) int |
getCompendiumType(org.jdom.Element elt)
Returns the Compenium type as an int, or an int < 0 if that type cannot be determined. |
(package private) java.util.List |
getLinks(IXObject from)
Returns the list of CompendiumToIX.Link s
that go from the specified IXObject . |
(package private) IXObject |
IXObjectForId(java.lang.String id)
Returns the I-X object made from the Compendium node with the given id. |
static void |
main(java.lang.String[] argv)
|
(package private) Activity |
makeIXActivity(org.jdom.Element elt)
|
(package private) Constraint |
makeIXConstraint(org.jdom.Element elt)
|
(package private) Issue |
makeIXIssue(org.jdom.Element elt)
|
(package private) java.lang.Object |
makeIXObject(org.jdom.Element elt)
Converts Compendium Elements to I-X objects and adds the I-X objects to any relevant accumulating lists. |
(package private) java.util.List |
objectsLinkedFrom(IXObject from)
|
(package private) java.util.List |
objectsLinkedFrom(IXObject from,
java.lang.Class filterCondition)
|
(package private) LList |
patternFromCompendiumNode(org.jdom.Element elt)
|
(package private) LList |
patternFromText(java.lang.String text)
Converts text taken from a Compendium label to an I-X pattern. |
(package private) void |
phaseOne(org.jdom.Document doc)
Phase 1 -- convert from Compendium XML to I-X objects. |
(package private) void |
phaseTwo()
Phase 2 -- build the plan |
org.jdom.Document |
transform(org.jdom.Document doc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int LIST
static final int MAP
static final int ISSUE
static final int POSITION
static final int ARGUMENT
static final int PRO
static final int CON
static final int DECISION
static final int REFERENCE
static final int NOTE
static final int LIST_SHORTCUT
static final int MAP_SHORTCUT
static final int ISSUE_SHORTCUT
static final int POSITION_SHORTCUT
static final int ARGUMENT_SHORTCUT
static final int PRO_SHORTCUT
static final int CON_SHORTCUT
static final int DECISION_SHORTCUT
static final int REFERENCE_SHORTCUT
static final int NOTE_SHORTCUT
static final java.lang.String K_ID
static final java.lang.String K_LABEL
static final java.lang.String K_LINKS
PlanBuilder builder
java.util.Map CompendiumIdToIXObjectMap
MultiMap linkMap
java.util.List issues
java.util.List activities
java.util.List constraints
Constructor Detail |
---|
public CompendiumToIX()
Method Detail |
---|
public org.jdom.Document transform(org.jdom.Document doc)
void phaseOne(org.jdom.Document doc)
java.lang.Object makeIXObject(org.jdom.Element elt)
Issue makeIXIssue(org.jdom.Element elt)
Activity makeIXActivity(org.jdom.Element elt)
Constraint makeIXConstraint(org.jdom.Element elt)
LList patternFromCompendiumNode(org.jdom.Element elt)
LList patternFromText(java.lang.String text)
void addNodeAnnotations(IXObject item, org.jdom.Element elt)
K_ID
.
int getCompendiumType(org.jdom.Element elt)
java.lang.String getCompendiumId(org.jdom.Element elt)
void phaseTwo()
void addIssueToPlan(Issue issue)
findParent(IXObject)
void addActivityToPlan(Activity activity)
findParent(IXObject)
void addConstraintToPlan(Constraint con)
IXObject findParent(IXObject item)
void addLinksAnnotation(IXObject item, IXObject parent)
K_LINKS
and value a list of link descriptions.
IXObject IXObjectForId(java.lang.String id)
java.util.List getLinks(IXObject from)
CompendiumToIX.Link
s
that go from the specified IXObject
.
Always returns a List, never null.
java.util.List objectsLinkedFrom(IXObject from)
java.util.List objectsLinkedFrom(IXObject from, java.lang.Class filterCondition)
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |