first commit

This commit is contained in:
MaddoScientisto 2026-03-14 20:04:39 +01:00
commit 4d332ef662
27586 changed files with 3281783 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package org.opendope.SmartArt.dataHierarchy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "image")
public class Image {
@XmlAttribute
protected String contentRef;
public String getContentRef() {
return this.contentRef;
}
public void setContentRef(String value) {
this.contentRef = value;
}
}

View file

@ -0,0 +1,67 @@
package org.opendope.SmartArt.dataHierarchy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "imageRef")
public class ImageRef {
@XmlAttribute
protected String contentRef;
@XmlAttribute
protected Integer custLinFactNeighborX;
@XmlAttribute
protected Integer custLinFactNeighborY;
@XmlAttribute
protected Integer custScaleY;
@XmlAttribute
protected Integer custScaleX;
public String getContentRef() {
return this.contentRef;
}
public void setContentRef(String value) {
this.contentRef = value;
}
public Integer getCustLinFactNeighborX() {
return this.custLinFactNeighborX;
}
public void setCustLinFactNeighborX(Integer value) {
this.custLinFactNeighborX = value;
}
public Integer getCustLinFactNeighborY() {
return this.custLinFactNeighborY;
}
public void setCustLinFactNeighborY(Integer value) {
this.custLinFactNeighborY = value;
}
public Integer getCustScaleY() {
return this.custScaleY;
}
public void setCustScaleY(Integer value) {
this.custScaleY = value;
}
public Integer getCustScaleX() {
return this.custScaleX;
}
public void setCustScaleX(Integer value) {
this.custScaleX = value;
}
}

View file

@ -0,0 +1,22 @@
package org.opendope.SmartArt.dataHierarchy;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"listItem"})
@XmlRootElement(name = "list")
public class List {
@XmlElement(required = true)
protected java.util.List<ListItem> listItem;
public java.util.List<ListItem> getListItem() {
if (this.listItem == null)
this.listItem = new ArrayList<ListItem>();
return this.listItem;
}
}

View file

@ -0,0 +1,77 @@
package org.opendope.SmartArt.dataHierarchy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"textBody", "sibTransBody", "imageRef", "list"})
@XmlRootElement(name = "listItem")
public class ListItem {
@XmlElement(required = true)
protected TextBody textBody;
protected SibTransBody sibTransBody;
protected ImageRef imageRef;
protected List list;
@XmlAttribute(required = true)
protected String id;
@XmlTransient
private int depth;
public TextBody getTextBody() {
return this.textBody;
}
public void setTextBody(TextBody value) {
this.textBody = value;
}
public SibTransBody getSibTransBody() {
return this.sibTransBody;
}
public void setSibTransBody(SibTransBody value) {
this.sibTransBody = value;
}
public ImageRef getImageRef() {
return this.imageRef;
}
public void setImageRef(ImageRef value) {
this.imageRef = value;
}
public List getList() {
return this.list;
}
public void setList(List value) {
this.list = value;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public int getDepth() {
return this.depth;
}
public void setDepth(int depth) {
this.depth = depth;
}
}

View file

@ -0,0 +1,56 @@
package org.opendope.SmartArt.dataHierarchy;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
@XmlRegistry
public class ObjectFactory {
private static final QName _P_QNAME = new QName("http://opendope.org/SmartArt/DataHierarchy", "p");
public TextBody createTextBody() {
return new TextBody();
}
public SmartArtDataHierarchy.Images createSmartArtDataHierarchyImages() {
return new SmartArtDataHierarchy.Images();
}
public SmartArtDataHierarchy createSmartArtDataHierarchy() {
return new SmartArtDataHierarchy();
}
public SibTransBody createSibTransBody() {
return new SibTransBody();
}
public ImageRef createImageRef() {
return new ImageRef();
}
public SmartArtDataHierarchy.Texts createSmartArtDataHierarchyTexts() {
return new SmartArtDataHierarchy.Texts();
}
public SmartArtDataHierarchy.Texts.IdentifiedText createSmartArtDataHierarchyTextsIdentifiedText() {
return new SmartArtDataHierarchy.Texts.IdentifiedText();
}
public List createList() {
return new List();
}
public SmartArtDataHierarchy.Images.Image createSmartArtDataHierarchyImagesImage() {
return new SmartArtDataHierarchy.Images.Image();
}
public ListItem createListItem() {
return new ListItem();
}
@XmlElementDecl(namespace = "http://opendope.org/SmartArt/DataHierarchy", name = "p")
public JAXBElement<String> createP(String value) {
return new JAXBElement(_P_QNAME, String.class, null, value);
}
}

View file

@ -0,0 +1,32 @@
package org.opendope.SmartArt.dataHierarchy;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"p"})
@XmlRootElement(name = "sibTransBody")
public class SibTransBody {
protected java.util.List<String> p;
@XmlAttribute
protected String contentRef;
public java.util.List<String> getP() {
if (this.p == null)
this.p = new ArrayList<String>();
return this.p;
}
public String getContentRef() {
return this.contentRef;
}
public void setContentRef(String value) {
this.contentRef = value;
}
}

View file

@ -0,0 +1,147 @@
package org.opendope.SmartArt.dataHierarchy;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import org.docx4j.dml.CTTextBody;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"list", "images", "texts"})
@XmlRootElement(name = "SmartArtDataHierarchy")
public class SmartArtDataHierarchy {
@XmlElement(required = true)
protected List list;
protected Images images;
protected Texts texts;
@XmlAttribute(required = true)
protected String loTypeId;
public List getList() {
return this.list;
}
public void setList(List value) {
this.list = value;
}
public Images getImages() {
return this.images;
}
public void setImages(Images value) {
this.images = value;
}
public Texts getTexts() {
return this.texts;
}
public void setTexts(Texts value) {
this.texts = value;
}
public String getLoTypeId() {
return this.loTypeId;
}
public void setLoTypeId(String value) {
this.loTypeId = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"image"})
public static class Images {
@XmlElement(required = true)
protected java.util.List<Image> image;
public java.util.List<Image> getImage() {
if (this.image == null)
this.image = new ArrayList<Image>();
return this.image;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"value"})
public static class Image {
@XmlValue
protected byte[] value;
@XmlAttribute(required = true)
protected String id;
@XmlAttribute
protected String contentType;
public byte[] getValue() {
return this.value;
}
public void setValue(byte[] value) {
this.value = value;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public String getContentType() {
return this.contentType;
}
public void setContentType(String value) {
this.contentType = value;
}
}
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"identifiedText"})
public static class Texts {
@XmlElement(required = true)
protected java.util.List<IdentifiedText> identifiedText;
public java.util.List<IdentifiedText> getIdentifiedText() {
if (this.identifiedText == null)
this.identifiedText = new ArrayList<IdentifiedText>();
return this.identifiedText;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"t"})
public static class IdentifiedText {
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/diagram", required = true)
protected CTTextBody t;
@XmlAttribute(required = true)
protected String id;
public CTTextBody getT() {
return this.t;
}
public void setT(CTTextBody value) {
this.t = value;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
}
}
}

View file

@ -0,0 +1,32 @@
package org.opendope.SmartArt.dataHierarchy;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"p"})
@XmlRootElement(name = "textBody")
public class TextBody {
protected java.util.List<String> p;
@XmlAttribute
protected String contentRef;
public java.util.List<String> getP() {
if (this.p == null)
this.p = new ArrayList<String>();
return this.p;
}
public String getContentRef() {
return this.contentRef;
}
public void setContentRef(String value) {
this.contentRef = value;
}
}

View file

@ -0,0 +1,7 @@
package org.opendope.SmartArt.dataHierarchy;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
@XmlSchema(namespace = "http://opendope.org/SmartArt/DataHierarchy", elementFormDefault = XmlNsForm.QUALIFIED)
interface package-info {}

View file

@ -0,0 +1,35 @@
package org.opendope.answers;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"value"})
@XmlRootElement(name = "answer")
public class Answer {
@XmlValue
protected String value;
@XmlAttribute(required = true)
protected String id;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
}

View file

@ -0,0 +1,24 @@
package org.opendope.answers;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "http://opendope.org/answers", name = "", propOrder = {"answerOrRepeat"})
@XmlRootElement(name = "answers")
public class Answers {
@XmlElements({@XmlElement(name = "answer", type = Answer.class), @XmlElement(name = "repeat", type = Repeat.class)})
protected List<Object> answerOrRepeat;
public List<Object> getAnswerOrRepeat() {
if (this.answerOrRepeat == null)
this.answerOrRepeat = new ArrayList();
return this.answerOrRepeat;
}
}

View file

@ -0,0 +1,22 @@
package org.opendope.answers;
import javax.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory {
public Repeat createRepeat() {
return new Repeat();
}
public Answers createAnswers() {
return new Answers();
}
public Repeat.Row createRepeatRow() {
return new Repeat.Row();
}
public Answer createAnswer() {
return new Answer();
}
}

View file

@ -0,0 +1,49 @@
package org.opendope.answers;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"row"})
@XmlRootElement(name = "repeat")
public class Repeat {
@XmlElement(required = true)
protected List<Row> row;
@XmlAttribute(required = true)
protected String qref;
public List<Row> getRow() {
if (this.row == null)
this.row = new ArrayList<Row>();
return this.row;
}
public String getQref() {
return this.qref;
}
public void setQref(String value) {
this.qref = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"answerOrRepeat"})
public static class Row {
@XmlElements({@XmlElement(name = "answer", type = Answer.class), @XmlElement(name = "repeat", type = Repeat.class)})
protected List<Object> answerOrRepeat;
public List<Object> getAnswerOrRepeat() {
if (this.answerOrRepeat == null)
this.answerOrRepeat = new ArrayList();
return this.answerOrRepeat;
}
}
}

View file

@ -0,0 +1,7 @@
package org.opendope.answers;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
@XmlSchema(namespace = "http://opendope.org/answers", elementFormDefault = XmlNsForm.QUALIFIED)
interface package-info {}

View file

@ -0,0 +1,57 @@
package org.opendope.components;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"component"})
@XmlRootElement(name = "components")
public class Components {
@XmlElement(required = true)
protected List<Component> component;
public List<Component> getComponent() {
if (this.component == null)
this.component = new ArrayList<Component>();
return this.component;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Component {
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(required = true)
protected String iri;
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public String getIri() {
return this.iri;
}
public void setIri(String value) {
this.iri = value;
}
}
}

View file

@ -0,0 +1,14 @@
package org.opendope.components;
import javax.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory {
public Components createComponents() {
return new Components();
}
public Components.Component createComponentsComponent() {
return new Components.Component();
}
}

View file

@ -0,0 +1,7 @@
package org.opendope.components;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
@XmlSchema(namespace = "http://opendope.org/components", elementFormDefault = XmlNsForm.QUALIFIED)
interface package-info {}

View file

@ -0,0 +1,66 @@
package org.opendope.conditions;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.opendope.xpaths.Xpaths;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"xpathrefOrAndOrOr"})
@XmlRootElement(name = "and")
public class And implements Evaluable {
@XmlElementRefs({@XmlElementRef(name = "and", namespace = "http://opendope.org/conditions", type = And.class), @XmlElementRef(name = "xpathref", namespace = "http://opendope.org/conditions", type = Xpathref.class), @XmlElementRef(name = "not", namespace = "http://opendope.org/conditions", type = Not.class), @XmlElementRef(name = "or", namespace = "http://opendope.org/conditions", type = Or.class), @XmlElementRef(name = "conditionref", namespace = "http://opendope.org/conditions", type = Conditionref.class)})
protected List<Evaluable> xpathrefOrAndOrOr;
public List<Evaluable> getXpathrefOrAndOrOr() {
if (this.xpathrefOrAndOrOr == null)
this.xpathrefOrAndOrOr = new ArrayList<Evaluable>();
return this.xpathrefOrAndOrOr;
}
public boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Conditions conditions, Xpaths xPaths) {
for (Evaluable particle : this.xpathrefOrAndOrOr) {
boolean result = particle.evaluate(pkg, customXmlDataStorageParts, conditions, xPaths);
if (!result)
return false;
}
return true;
}
public void listXPaths(List<Xpaths.Xpath> theList, Conditions conditions, Xpaths xPaths) {
for (Evaluable particle : this.xpathrefOrAndOrOr)
particle.listXPaths(theList, conditions, xPaths);
}
public void mapIds(Map<String, String> xpathIdMap, Map<String, String> conditionIdMap) {
for (Evaluable particle : this.xpathrefOrAndOrOr)
particle.mapIds(xpathIdMap, conditionIdMap);
}
public String toString(Conditions conditions, Xpaths xPaths) {
StringBuilder sb = new StringBuilder();
int i = 0;
int total = this.xpathrefOrAndOrOr.size();
for (Evaluable particle : this.xpathrefOrAndOrOr) {
sb.append(particle.toString(conditions, xPaths));
i++;
if (i < total)
sb.append(" and ");
}
return "(" + sb.toString() + ")";
}
public Condition repeat(String xpathBase, int index, Conditions conditions, Xpaths xPaths) {
for (Evaluable particle : this.xpathrefOrAndOrOr)
particle.repeat(xpathBase, index, conditions, xPaths);
return null;
}
}

View file

@ -0,0 +1,118 @@
package org.opendope.conditions;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.docx4j.XmlUtils;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.opendope.xpaths.Xpaths;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"particle"})
@XmlRootElement(name = "condition")
public class Condition implements Evaluable {
@XmlElements({@XmlElement(name = "xpathref", type = Xpathref.class), @XmlElement(name = "and", type = And.class), @XmlElement(name = "or", type = Or.class), @XmlElement(name = "not", type = Not.class)})
protected Evaluable particle;
@XmlAttribute(name = "id", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "description")
protected String description;
@XmlAttribute(name = "comments")
protected String comments;
@XmlAttribute(name = "source")
protected String source;
public Evaluable getParticle() {
return this.particle;
}
public void setParticle(Evaluable value) {
this.particle = value;
}
public boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Conditions conditions, Xpaths xPaths) {
return this.particle.evaluate(pkg, customXmlDataStorageParts, conditions, xPaths);
}
public void listXPaths(List<Xpaths.Xpath> theList, Conditions conditions, Xpaths xPaths) {
this.particle.listXPaths(theList, conditions, xPaths);
}
public void mapIds(Map<String, String> xpathIdMap, Map<String, String> conditionIdMap) {
this.particle.mapIds(xpathIdMap, conditionIdMap);
}
public String toString(Conditions conditions, Xpaths xPaths) {
return this.particle.toString(conditions, xPaths);
}
public Condition repeat(String xpathBase, int index, Conditions conditions, Xpaths xPaths) {
Condition newCondition = XmlUtils.<Condition>deepCopy(this);
String newConditionId = this.id + "_" + index;
newCondition.setId(newConditionId);
conditions.getCondition().add(newCondition);
newCondition.getParticle().repeat(xpathBase, index, conditions, xPaths);
return newCondition;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public String getName() {
return this.name;
}
public void setName(String value) {
this.name = value;
}
public String getDescription() {
return this.description;
}
public void setDescription(String value) {
this.description = value;
}
public String getComments() {
return this.comments;
}
public void setComments(String value) {
this.comments = value;
}
public String getSource() {
return this.source;
}
public void setSource(String value) {
this.source = value;
}
}

View file

@ -0,0 +1,64 @@
package org.opendope.conditions;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.docx4j.openpackaging.parts.opendope.ConditionsPart;
import org.opendope.xpaths.Xpaths;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "conditionref")
public class Conditionref implements Evaluable {
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
protected String id;
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Conditions conditions, Xpaths xPaths) {
Condition particle = ConditionsPart.getConditionById(conditions, this.id);
return particle.evaluate(pkg, customXmlDataStorageParts, conditions, xPaths);
}
public void listXPaths(List<Xpaths.Xpath> theList, Conditions conditions, Xpaths xPaths) {
Condition particle = ConditionsPart.getConditionById(conditions, this.id);
particle.listXPaths(theList, conditions, xPaths);
}
public void mapIds(Map<String, String> xpathIdMap, Map<String, String> conditionIdMap) {
if (conditionIdMap == null)
return;
String newId = conditionIdMap.get(getId());
if (newId != null)
setId(newId);
}
public String toString(Conditions conditions, Xpaths xPaths) {
Condition particle = ConditionsPart.getConditionById(conditions, this.id);
return particle.toString(conditions, xPaths);
}
public Condition repeat(String xpathBase, int index, Conditions conditions, Xpaths xPaths) {
Condition particle = ConditionsPart.getConditionById(conditions, this.id);
Condition newCondition = particle.repeat(xpathBase, index, conditions, xPaths);
this.id = newCondition.getId();
return null;
}
}

View file

@ -0,0 +1,23 @@
package org.opendope.conditions;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"condition"})
@XmlRootElement(name = "conditions")
public class Conditions {
@XmlElement(required = true)
protected List<Condition> condition;
public List<Condition> getCondition() {
if (this.condition == null)
this.condition = new ArrayList<Condition>();
return this.condition;
}
}

View file

@ -0,0 +1,19 @@
package org.opendope.conditions;
import java.util.List;
import java.util.Map;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.opendope.xpaths.Xpaths;
public interface Evaluable {
boolean evaluate(WordprocessingMLPackage paramWordprocessingMLPackage, Map<String, CustomXmlPart> paramMap, Conditions paramConditions, Xpaths paramXpaths);
void listXPaths(List<Xpaths.Xpath> paramList, Conditions paramConditions, Xpaths paramXpaths);
String toString(Conditions paramConditions, Xpaths paramXpaths);
Condition repeat(String paramString, int paramInt, Conditions paramConditions, Xpaths paramXpaths);
void mapIds(Map<String, String> paramMap1, Map<String, String> paramMap2);
}

View file

@ -0,0 +1,50 @@
package org.opendope.conditions;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.opendope.xpaths.Xpaths;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"particle"})
@XmlRootElement(name = "not")
public class Not implements Evaluable {
@XmlElements({@XmlElement(name = "xpathref", type = Xpathref.class), @XmlElement(name = "and", type = And.class), @XmlElement(name = "or", type = Or.class), @XmlElement(name = "not", type = Not.class), @XmlElement(name = "conditionref", type = Conditionref.class)})
protected Evaluable particle;
public Evaluable getParticle() {
return this.particle;
}
public boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Conditions conditions, Xpaths xPaths) {
return !this.particle.evaluate(pkg, customXmlDataStorageParts, conditions, xPaths);
}
public void listXPaths(List<Xpaths.Xpath> theList, Conditions conditions, Xpaths xPaths) {
this.particle.listXPaths(theList, conditions, xPaths);
}
public void mapIds(Map<String, String> xpathIdMap, Map<String, String> conditionIdMap) {
this.particle.mapIds(xpathIdMap, conditionIdMap);
}
public String toString(Conditions conditions, Xpaths xPaths) {
return "not(" + this.particle.toString(conditions, xPaths) + ")";
}
public void setParticle(Evaluable value) {
this.particle = value;
}
public Condition repeat(String xpathBase, int index, Conditions conditions, Xpaths xPaths) {
this.particle.repeat(xpathBase, index, conditions, xPaths);
return null;
}
}

View file

@ -0,0 +1,34 @@
package org.opendope.conditions;
import javax.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory {
public Not createNot() {
return new Not();
}
public Xpathref createXpathref() {
return new Xpathref();
}
public And createAnd() {
return new And();
}
public Or createOr() {
return new Or();
}
public Conditionref createConditionref() {
return new Conditionref();
}
public Conditions createConditions() {
return new Conditions();
}
public Condition createCondition() {
return new Condition();
}
}

View file

@ -0,0 +1,66 @@
package org.opendope.conditions;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.opendope.xpaths.Xpaths;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"xpathrefOrAndOrOr"})
@XmlRootElement(name = "or")
public class Or implements Evaluable {
@XmlElementRefs({@XmlElementRef(name = "and", namespace = "http://opendope.org/conditions", type = And.class), @XmlElementRef(name = "xpathref", namespace = "http://opendope.org/conditions", type = Xpathref.class), @XmlElementRef(name = "not", namespace = "http://opendope.org/conditions", type = Not.class), @XmlElementRef(name = "or", namespace = "http://opendope.org/conditions", type = Or.class), @XmlElementRef(name = "conditionref", namespace = "http://opendope.org/conditions", type = Conditionref.class)})
protected List<Evaluable> xpathrefOrAndOrOr;
public List<Evaluable> getXpathrefOrAndOrOr() {
if (this.xpathrefOrAndOrOr == null)
this.xpathrefOrAndOrOr = new ArrayList<Evaluable>();
return this.xpathrefOrAndOrOr;
}
public boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Conditions conditions, Xpaths xPaths) {
for (Evaluable particle : this.xpathrefOrAndOrOr) {
boolean result = particle.evaluate(pkg, customXmlDataStorageParts, conditions, xPaths);
if (result == true)
return true;
}
return false;
}
public void listXPaths(List<Xpaths.Xpath> theList, Conditions conditions, Xpaths xPaths) {
for (Evaluable particle : this.xpathrefOrAndOrOr)
particle.listXPaths(theList, conditions, xPaths);
}
public void mapIds(Map<String, String> xpathIdMap, Map<String, String> conditionIdMap) {
for (Evaluable particle : this.xpathrefOrAndOrOr)
particle.mapIds(xpathIdMap, conditionIdMap);
}
public String toString(Conditions conditions, Xpaths xPaths) {
StringBuilder sb = new StringBuilder();
int i = 0;
int total = this.xpathrefOrAndOrOr.size();
for (Evaluable particle : this.xpathrefOrAndOrOr) {
sb.append(particle.toString(conditions, xPaths));
i++;
if (i < total)
sb.append(" or ");
}
return "(" + sb.toString() + ")";
}
public Condition repeat(String xpathBase, int index, Conditions conditions, Xpaths xPaths) {
for (Evaluable particle : this.xpathrefOrAndOrOr)
particle.repeat(xpathBase, index, conditions, xPaths);
return null;
}
}

View file

@ -0,0 +1,93 @@
package org.opendope.conditions;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.docx4j.XmlUtils;
import org.docx4j.model.datastorage.BindingHandler;
import org.docx4j.model.datastorage.XPathEnhancerParser;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
import org.docx4j.openpackaging.parts.opendope.XPathsPart;
import org.opendope.xpaths.Xpaths;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "xpathref")
public class Xpathref implements Evaluable {
private static Logger log = LoggerFactory.getLogger(Xpathref.class);
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
protected String id;
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Conditions conditions, Xpaths xPaths) {
Xpaths.Xpath xpath = XPathsPart.getXPathById(xPaths, this.id);
String val = BindingHandler.xpathGetString(pkg, customXmlDataStorageParts, xpath.getDataBinding().getStoreItemID(), xpath.getDataBinding().getXpath(), xpath.getDataBinding().getPrefixMappings());
return Boolean.parseBoolean(val);
}
public void listXPaths(List<Xpaths.Xpath> theList, Conditions conditions, Xpaths xPaths) {
Xpaths.Xpath xpath = XPathsPart.getXPathById(xPaths, this.id);
theList.add(xpath);
}
public void mapIds(Map<String, String> xpathIdMap, Map<String, String> conditionIdMap) {
if (xpathIdMap == null)
return;
String newId = xpathIdMap.get(getId());
if (newId != null)
setId(newId);
}
public String toString(Conditions conditions, Xpaths xPaths) {
Xpaths.Xpath xpath = XPathsPart.getXPathById(xPaths, this.id);
return xpath.getDataBinding().getXpath();
}
public Condition repeat(String xpathBase, int index, Conditions conditions, Xpaths xPaths) {
Xpaths.Xpath xpathObj = XPathsPart.getXPathById(xPaths, this.id);
String thisXPath = xpathObj.getDataBinding().getXpath();
if (thisXPath.trim().startsWith("count")) {
int pos = thisXPath.indexOf(xpathBase) + xpathBase.length();
if (!thisXPath.substring(pos).contains("oda:repeat")) {
System.out.println("retaining: " + thisXPath);
return null;
}
}
String newPath = XPathEnhancerParser.enhanceXPath(xpathBase, index + 1, thisXPath);
System.out.println("newPath: " + newPath);
if (log.isDebugEnabled() && !thisXPath.equals(newPath))
log.debug("xpath prefix enhanced " + thisXPath + " to " + newPath);
Xpaths.Xpath newXPathObj = createNewXPathObject(xPaths, newPath, xpathObj, index);
this.id = newXPathObj.getId();
return null;
}
private Xpaths.Xpath createNewXPathObject(Xpaths xPaths, String newPath, Xpaths.Xpath xpathObj, int index) {
Xpaths.Xpath newXPathObj = XmlUtils.<Xpaths.Xpath>deepCopy(xpathObj);
String newXPathId = newXPathObj.getId() + "_" + index;
newXPathObj.setId(newXPathId);
newXPathObj.getDataBinding().setXpath(newPath);
xPaths.getXpath().add(newXPathObj);
return newXPathObj;
}
}

View file

@ -0,0 +1,7 @@
package org.opendope.conditions;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
@XmlSchema(namespace = "http://opendope.org/conditions", elementFormDefault = XmlNsForm.QUALIFIED)
interface package-info {}

View file

@ -0,0 +1,31 @@
package org.opendope.questions;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "appearanceType")
@XmlEnum
public enum AppearanceType {
FULL("full"),
COMPACT("compact"),
MINIMAL("minimal");
private final String value;
AppearanceType(String v) {
this.value = v;
}
public String value() {
return this.value;
}
public static AppearanceType fromValue(String v) {
for (AppearanceType c : values()) {
if (c.value.equals(v))
return c;
}
throw new IllegalArgumentException(v);
}
}

View file

@ -0,0 +1,34 @@
package org.opendope.questions;
import javax.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory {
public Question createQuestion() {
return new Question();
}
public Questionnaire createQuestionnaire() {
return new Questionnaire();
}
public Response.Fixed createResponseFixed() {
return new Response.Fixed();
}
public Questionnaire.Questions createQuestionnaireQuestions() {
return new Questionnaire.Questions();
}
public Response.Free createResponseFree() {
return new Response.Free();
}
public Response createResponse() {
return new Response();
}
public Response.Fixed.Item createResponseFixedItem() {
return new Response.Fixed.Item();
}
}

View file

@ -0,0 +1,84 @@
package org.opendope.questions;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"text", "help", "hint", "response"})
@XmlRootElement(name = "question")
public class Question {
@XmlElement(required = true)
protected String text;
protected String help;
protected String hint;
@XmlElement(required = true)
protected Response response;
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute
protected AppearanceType appearance;
public String getText() {
return this.text;
}
public void setText(String value) {
this.text = value;
}
public String getHelp() {
return this.help;
}
public void setHelp(String value) {
this.help = value;
}
public String getHint() {
return this.hint;
}
public void setHint(String value) {
this.hint = value;
}
public Response getResponse() {
return this.response;
}
public void setResponse(Response value) {
this.response = value;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public AppearanceType getAppearance() {
return this.appearance;
}
public void setAppearance(AppearanceType value) {
this.appearance = value;
}
}

View file

@ -0,0 +1,57 @@
package org.opendope.questions;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"title", "subtitle", "questions"})
@XmlRootElement(name = "questionnaire")
public class Questionnaire {
protected String title;
protected String subtitle;
@XmlElement(required = true)
protected Questions questions;
public String getTitle() {
return this.title;
}
public void setTitle(String value) {
this.title = value;
}
public String getSubtitle() {
return this.subtitle;
}
public void setSubtitle(String value) {
this.subtitle = value;
}
public Questions getQuestions() {
return this.questions;
}
public void setQuestions(Questions value) {
this.questions = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"question"})
public static class Questions {
protected List<Question> question;
public List<Question> getQuestion() {
if (this.question == null)
this.question = new ArrayList<Question>();
return this.question;
}
}
}

View file

@ -0,0 +1,89 @@
package org.opendope.questions;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"free", "fixed"})
@XmlRootElement(name = "response")
public class Response {
protected Free free;
protected Fixed fixed;
public Free getFree() {
return this.free;
}
public void setFree(Free value) {
this.free = value;
}
public Fixed getFixed() {
return this.fixed;
}
public void setFixed(Fixed value) {
this.fixed = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"item"})
public static class Fixed {
@XmlElement(required = true)
protected List<Item> item;
@XmlAttribute
protected Boolean canSelectMany;
public List<Item> getItem() {
if (this.item == null)
this.item = new ArrayList<Item>();
return this.item;
}
public Boolean isCanSelectMany() {
return this.canSelectMany;
}
public void setCanSelectMany(Boolean value) {
this.canSelectMany = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"label", "value"})
public static class Item {
@XmlElement(required = true)
protected String label;
@XmlElement(required = true)
protected String value;
public String getLabel() {
return this.label;
}
public void setLabel(String value) {
this.label = value;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
}
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Free {}
}

View file

@ -0,0 +1,7 @@
package org.opendope.questions;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
@XmlSchema(namespace = "http://opendope.org/questions", elementFormDefault = XmlNsForm.QUALIFIED)
interface package-info {}

View file

@ -0,0 +1,18 @@
package org.opendope.xpaths;
import javax.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory {
public Xpaths.Xpath.DataBinding createXpathsXpathDataBinding() {
return new Xpaths.Xpath.DataBinding();
}
public Xpaths createXpaths() {
return new Xpaths();
}
public Xpaths.Xpath createXpathsXpath() {
return new Xpaths.Xpath();
}
}

View file

@ -0,0 +1,242 @@
package org.opendope.xpaths;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"xpath"})
@XmlRootElement(name = "xpaths")
public class Xpaths {
@XmlElement(required = true)
protected List<Xpath> xpath;
public List<Xpath> getXpath() {
if (this.xpath == null)
this.xpath = new ArrayList<Xpath>();
return this.xpath;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"dataBinding"})
@XmlRootElement(name = "xpath", namespace = "http://opendope.org/xpaths")
public static class Xpath {
@XmlElement(required = true)
protected DataBinding dataBinding;
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
protected String questionID;
@XmlAttribute
protected String name;
@XmlAttribute
protected String description;
@XmlAttribute
protected String comments;
@XmlAttribute
protected String type;
@XmlAttribute
protected Boolean required;
@XmlAttribute
protected Boolean prepopulate;
@XmlAttribute
@XmlSchemaType(name = "positiveInteger")
protected BigInteger fieldWidth;
@XmlAttribute
protected String lower;
@XmlAttribute
protected String lowerOperator;
@XmlAttribute
protected String upper;
@XmlAttribute
protected String upperOperator;
@XmlAttribute
protected String source;
public DataBinding getDataBinding() {
return this.dataBinding;
}
public void setDataBinding(DataBinding value) {
this.dataBinding = value;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public String getQuestionID() {
return this.questionID;
}
public void setQuestionID(String value) {
this.questionID = value;
}
public String getName() {
return this.name;
}
public void setName(String value) {
this.name = value;
}
public String getDescription() {
return this.description;
}
public void setDescription(String value) {
this.description = value;
}
public String getComments() {
return this.comments;
}
public void setComments(String value) {
this.comments = value;
}
public String getType() {
return this.type;
}
public void setType(String value) {
this.type = value;
}
public Boolean isRequired() {
return this.required;
}
public void setRequired(Boolean value) {
this.required = value;
}
public Boolean isPrepopulate() {
return this.prepopulate;
}
public void setPrepopulate(Boolean value) {
this.prepopulate = value;
}
public BigInteger getFieldWidth() {
return this.fieldWidth;
}
public void setFieldWidth(BigInteger value) {
this.fieldWidth = value;
}
public String getLower() {
return this.lower;
}
public void setLower(String value) {
this.lower = value;
}
public String getLowerOperator() {
return this.lowerOperator;
}
public void setLowerOperator(String value) {
this.lowerOperator = value;
}
public String getUpper() {
return this.upper;
}
public void setUpper(String value) {
this.upper = value;
}
public String getUpperOperator() {
return this.upperOperator;
}
public void setUpperOperator(String value) {
this.upperOperator = value;
}
public String getSource() {
return this.source;
}
public void setSource(String value) {
this.source = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class DataBinding {
@XmlAttribute(required = true)
protected String xpath;
@XmlAttribute(required = true)
protected String storeItemID;
@XmlAttribute
protected String prefixMappings;
public String getXpath() {
return this.xpath;
}
public void setXpath(String value) {
this.xpath = value;
}
public String getStoreItemID() {
return this.storeItemID;
}
public void setStoreItemID(String value) {
this.storeItemID = value;
}
public String getPrefixMappings() {
return this.prefixMappings;
}
public void setPrefixMappings(String value) {
this.prefixMappings = value;
}
}
}
}

View file

@ -0,0 +1,7 @@
package org.opendope.xpaths;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
@XmlSchema(namespace = "http://opendope.org/xpaths", elementFormDefault = XmlNsForm.QUALIFIED)
interface package-info {}