diff --git a/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java b/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java index f478d8b0..5c841161 100755 --- a/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java +++ b/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java @@ -19,6 +19,7 @@ package com.wisemapping.importer.freemind; +import com.sun.org.apache.xerces.internal.dom.TextImpl; import com.wisemapping.importer.Importer; import com.wisemapping.importer.ImporterException; import com.wisemapping.model.MindMap; @@ -26,8 +27,10 @@ import com.wisemapping.model.ShapeStyle; import com.wisemapping.model.MindMapNative; import com.wisemapping.util.JAXBUtils; import com.wisemapping.xml.freemind.*; +import com.wisemapping.xml.freemind.Node; import com.wisemapping.xml.mindmap.TopicType; import com.wisemapping.xml.mindmap.Link; +import org.w3c.dom.*; import javax.xml.bind.JAXBException; import java.io.InputStream; @@ -38,7 +41,7 @@ import java.util.List; import java.math.BigInteger; public class FreemindImporter - implements Importer + implements Importer { private com.wisemapping.xml.mindmap.ObjectFactory mindmapObjectFactory; @@ -222,9 +225,85 @@ public class FreemindImporter currentTopic.setNote(mindmapNote); } } + else if (freemindNode instanceof Richcontent) + { + final Richcontent content = (Richcontent) freemindNode; + final String type = content.getTYPE(); + + if(type.equals("NODE")){ + final String text = getText(content); + text.replaceAll("\n",""); + text.trim(); + currentTopic.setText(text); + } + else{ + String text = getRichContent(content); + final com.wisemapping.xml.mindmap.Note mindmapNote = new com.wisemapping.xml.mindmap.Note(); + text = text!= null ? text.replaceAll("\n","%0A") : EMPTY_NOTE; + mindmapNote.setText(text); + currentTopic.setNote(mindmapNote); + + } + } } } + private String getRichContent(Richcontent content) { + String result = null; + List elementList = content.getHtml().getAny(); + + Element body = null; + for(Element elem : elementList){ + if(elem.getNodeName().equals("body")){ + body = elem; + break; + } + } + if(body != null){ + result = body.getTextContent(); + } + return result; + } + + private String getText(Richcontent content) { + String result = ""; + List elementList = content.getHtml().getAny(); + + Element body = null; + for(Element elem : elementList){ + if(elem.getNodeName().equals("body")){ + body = elem; + break; + } + } + if(body != null){ + String textNode = buildTextFromChildren(body); + if(textNode!= null) + result = textNode.trim(); + + } + return result; + } + + private String buildTextFromChildren(org.w3c.dom.Node body) { + StringBuilder text = new StringBuilder(); + NodeList childNodes = body.getChildNodes(); + for(int i=0; i< childNodes.getLength(); i++){ + org.w3c.dom.Node child = childNodes.item(i); + if(child instanceof TextImpl){ + text.append(" "); + text.append(child.getTextContent()); + } + else{ + String textElem = buildTextFromChildren(child); + if(textElem!=null && !textElem.equals("")){ + text.append(textElem); + } + } + } + return text.toString(); + } + private void setNodePropertiesToTopic( com.wisemapping.xml.mindmap.TopicType mindmapTopic,com.wisemapping.xml.freemind.Node freemindNode) { mindmapTopic.setText(freemindNode.getTEXT()); @@ -294,7 +373,7 @@ public class FreemindImporter } return fontName; } - + private String getShapeFormFromNode(Node node) { String shape = node.getSTYLE(); diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Arrowlink.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Arrowlink.java old mode 100755 new mode 100644 index 3461781e..81e68519 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Arrowlink.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Arrowlink.java @@ -1,248 +1,229 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="DESTINATION" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="ENDARROW" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="ENDINCLINATION" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="STARTARROW" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="STARTINCLINATION" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "arrowlink") -public class Arrowlink { - - @XmlAttribute(name = "COLOR") - protected String color; - @XmlAttribute(name = "DESTINATION", required = true) - protected String destination; - @XmlAttribute(name = "ENDARROW") - protected String endarrow; - @XmlAttribute(name = "ENDINCLINATION") - protected String endinclination; - @XmlAttribute(name = "ID") - protected String id; - @XmlAttribute(name = "STARTARROW") - protected String startarrow; - @XmlAttribute(name = "STARTINCLINATION") - protected String startinclination; - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCOLOR() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCOLOR(String value) { - this.color = value; - } - - /** - * Gets the value of the destination property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDESTINATION() { - return destination; - } - - /** - * Sets the value of the destination property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDESTINATION(String value) { - this.destination = value; - } - - /** - * Gets the value of the endarrow property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getENDARROW() { - return endarrow; - } - - /** - * Sets the value of the endarrow property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setENDARROW(String value) { - this.endarrow = value; - } - - /** - * Gets the value of the endinclination property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getENDINCLINATION() { - return endinclination; - } - - /** - * Sets the value of the endinclination property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setENDINCLINATION(String value) { - this.endinclination = value; - } - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getID() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setID(String value) { - this.id = value; - } - - /** - * Gets the value of the startarrow property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSTARTARROW() { - return startarrow; - } - - /** - * Sets the value of the startarrow property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSTARTARROW(String value) { - this.startarrow = value; - } - - /** - * Gets the value of the startinclination property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSTARTINCLINATION() { - return startinclination; - } - - /** - * Sets the value of the startinclination property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSTARTINCLINATION(String value) { - this.startinclination = value; - } - -} + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="DESTINATION" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ENDARROW" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ENDINCLINATION" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="STARTARROW" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="STARTINCLINATION" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "arrowlink") +public class Arrowlink { + + @XmlAttribute(name = "COLOR") + protected String color; + @XmlAttribute(name = "DESTINATION", required = true) + protected String destination; + @XmlAttribute(name = "ENDARROW") + protected String endarrow; + @XmlAttribute(name = "ENDINCLINATION") + protected String endinclination; + @XmlAttribute(name = "ID") + protected String id; + @XmlAttribute(name = "STARTARROW") + protected String startarrow; + @XmlAttribute(name = "STARTINCLINATION") + protected String startinclination; + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOLOR() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOLOR(String value) { + this.color = value; + } + + /** + * Gets the value of the destination property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDESTINATION() { + return destination; + } + + /** + * Sets the value of the destination property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDESTINATION(String value) { + this.destination = value; + } + + /** + * Gets the value of the endarrow property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getENDARROW() { + return endarrow; + } + + /** + * Sets the value of the endarrow property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setENDARROW(String value) { + this.endarrow = value; + } + + /** + * Gets the value of the endinclination property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getENDINCLINATION() { + return endinclination; + } + + /** + * Sets the value of the endinclination property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setENDINCLINATION(String value) { + this.endinclination = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the startarrow property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSTARTARROW() { + return startarrow; + } + + /** + * Sets the value of the startarrow property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSTARTARROW(String value) { + this.startarrow = value; + } + + /** + * Gets the value of the startinclination property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSTARTINCLINATION() { + return startinclination; + } + + /** + * Sets the value of the startinclination property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSTARTINCLINATION(String value) { + this.startinclination = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Cloud.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Cloud.java old mode 100755 new mode 100644 index 4d8165dc..232f52aa --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Cloud.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Cloud.java @@ -1,86 +1,67 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "cloud") -public class Cloud { - - @XmlAttribute(name = "COLOR") - protected String color; - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCOLOR() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCOLOR(String value) { - this.color = value; - } - -} + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "cloud") +public class Cloud { + + @XmlAttribute(name = "COLOR") + protected String color; + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOLOR() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOLOR(String value) { + this.color = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Edge.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Edge.java old mode 100755 new mode 100644 index c33c3316..e1ba66fd --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Edge.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Edge.java @@ -1,140 +1,121 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="STYLE" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="WIDTH" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "edge") -public class Edge { - - @XmlAttribute(name = "COLOR") - protected String color; - @XmlAttribute(name = "STYLE") - protected String style; - @XmlAttribute(name = "WIDTH") - protected String width; - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCOLOR() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCOLOR(String value) { - this.color = value; - } - - /** - * Gets the value of the style property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSTYLE() { - return style; - } - - /** - * Sets the value of the style property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSTYLE(String value) { - this.style = value; - } - - /** - * Gets the value of the width property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getWIDTH() { - return width; - } - - /** - * Sets the value of the width property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setWIDTH(String value) { - this.width = value; - } - -} + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="STYLE" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="WIDTH" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "edge") +public class Edge { + + @XmlAttribute(name = "COLOR") + protected String color; + @XmlAttribute(name = "STYLE") + protected String style; + @XmlAttribute(name = "WIDTH") + protected String width; + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOLOR() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOLOR(String value) { + this.color = value; + } + + /** + * Gets the value of the style property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSTYLE() { + return style; + } + + /** + * Sets the value of the style property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSTYLE(String value) { + this.style = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWIDTH() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWIDTH(String value) { + this.width = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Font.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Font.java old mode 100755 new mode 100644 index 67961952..059950b4 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Font.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Font.java @@ -1,181 +1,162 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -import java.math.BigInteger; -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="BOLD">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *             <enumeration value="true"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="ITALIC">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *             <enumeration value="true"/>
- *             <enumeration value="false"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="NAME" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="SIZE" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "font") -public class Font { - - @XmlAttribute(name = "BOLD") - protected String bold; - @XmlAttribute(name = "ITALIC") - protected String italic; - @XmlAttribute(name = "NAME", required = true) - protected String name; - @XmlAttribute(name = "SIZE", required = true) - protected BigInteger size; - - /** - * Gets the value of the bold property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBOLD() { - return bold; - } - - /** - * Sets the value of the bold property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBOLD(String value) { - this.bold = value; - } - - /** - * Gets the value of the italic property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getITALIC() { - return italic; - } - - /** - * Sets the value of the italic property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setITALIC(String value) { - this.italic = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getNAME() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setNAME(String value) { - this.name = value; - } - - /** - * Gets the value of the size property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getSIZE() { - return size; - } - - /** - * Sets the value of the size property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setSIZE(BigInteger value) { - this.size = value; - } - -} + +package com.wisemapping.xml.freemind; + +import java.math.BigInteger; +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="BOLD">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="true"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="ITALIC">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="true"/>
+ *             <enumeration value="false"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="NAME" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="SIZE" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "font") +public class Font { + + @XmlAttribute(name = "BOLD") + protected String bold; + @XmlAttribute(name = "ITALIC") + protected String italic; + @XmlAttribute(name = "NAME", required = true) + protected String name; + @XmlAttribute(name = "SIZE", required = true) + protected BigInteger size; + + /** + * Gets the value of the bold property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBOLD() { + return bold; + } + + /** + * Sets the value of the bold property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBOLD(String value) { + this.bold = value; + } + + /** + * Gets the value of the italic property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getITALIC() { + return italic; + } + + /** + * Sets the value of the italic property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setITALIC(String value) { + this.italic = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNAME() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNAME(String value) { + this.name = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSIZE() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSIZE(BigInteger value) { + this.size = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Hook.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Hook.java old mode 100755 new mode 100644 index c37f71fd..fdca9e18 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Hook.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Hook.java @@ -1,145 +1,126 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element ref="{}Parameters" minOccurs="0"/>
- *         <element ref="{}text" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="NAME" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "parameters", - "text" -}) -@XmlRootElement(name = "hook") -public class Hook { - - @XmlElement(name = "Parameters") - protected Parameters parameters; - protected String text; - @XmlAttribute(name = "NAME", required = true) - protected String name; - - /** - * Gets the value of the parameters property. - * - * @return - * possible object is - * {@link Parameters } - * - */ - public Parameters getParameters() { - return parameters; - } - - /** - * Sets the value of the parameters property. - * - * @param value - * allowed object is - * {@link Parameters } - * - */ - public void setParameters(Parameters value) { - this.parameters = value; - } - - /** - * Gets the value of the text property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getText() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setText(String value) { - this.text = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getNAME() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setNAME(String value) { - this.name = value; - } - -} \ No newline at end of file + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Parameters" minOccurs="0"/>
+ *         <element ref="{}text" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="NAME" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "parameters", + "text" +}) +@XmlRootElement(name = "hook") +public class Hook { + + @XmlElement(name = "Parameters") + protected Parameters parameters; + protected String text; + @XmlAttribute(name = "NAME", required = true) + protected String name; + + /** + * Gets the value of the parameters property. + * + * @return + * possible object is + * {@link Parameters } + * + */ + public Parameters getParameters() { + return parameters; + } + + /** + * Sets the value of the parameters property. + * + * @param value + * allowed object is + * {@link Parameters } + * + */ + public void setParameters(Parameters value) { + this.parameters = value; + } + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setText(String value) { + this.text = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNAME() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNAME(String value) { + this.name = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Html.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Html.java new file mode 100644 index 00000000..0e0e2140 --- /dev/null +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Html.java @@ -0,0 +1,79 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// + + +package com.wisemapping.xml.freemind; + +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.XmlAnyElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "any" +}) +@XmlRootElement(name = "html") +public class Html { + + @XmlAnyElement + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Icon.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Icon.java old mode 100755 new mode 100644 index 2480bc15..fed3fcae --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Icon.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Icon.java @@ -1,86 +1,67 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="BUILTIN" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "icon") -public class Icon { - - @XmlAttribute(name = "BUILTIN", required = true) - protected String builtin; - - /** - * Gets the value of the builtin property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBUILTIN() { - return builtin; - } - - /** - * Sets the value of the builtin property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBUILTIN(String value) { - this.builtin = value; - } - -} + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="BUILTIN" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "icon") +public class Icon { + + @XmlAttribute(name = "BUILTIN", required = true) + protected String builtin; + + /** + * Gets the value of the builtin property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBUILTIN() { + return builtin; + } + + /** + * Sets the value of the builtin property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBUILTIN(String value) { + this.builtin = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Map.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Map.java old mode 100755 new mode 100644 index 9a76184b..0f9657e7 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Map.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Map.java @@ -1,118 +1,99 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element ref="{}node"/>
- *       </sequence>
- *       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "node" -}) -@XmlRootElement(name = "map") -public class Map { - - @XmlElement(required = true) - protected Node node; - @XmlAttribute(required = true) - protected String version; - - /** - * Gets the value of the node property. - * - * @return - * possible object is - * {@link Node } - * - */ - public Node getNode() { - return node; - } - - /** - * Sets the value of the node property. - * - * @param value - * allowed object is - * {@link Node } - * - */ - public void setNode(Node value) { - this.node = value; - } - - /** - * Gets the value of the version property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVersion() { - return version; - } - - /** - * Sets the value of the version property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVersion(String value) { - this.version = value; - } - -} + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}node"/>
+ *       </sequence>
+ *       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "node" +}) +@XmlRootElement(name = "map") +public class Map { + + @XmlElement(required = true) + protected Node node; + @XmlAttribute(required = true) + protected String version; + + /** + * Gets the value of the node property. + * + * @return + * possible object is + * {@link Node } + * + */ + public Node getNode() { + return node; + } + + /** + * Sets the value of the node property. + * + * @param value + * allowed object is + * {@link Node } + * + */ + public void setNode(Node value) { + this.node = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Node.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Node.java old mode 100755 new mode 100644 index b1d5b9c8..fd2b9428 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Node.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Node.java @@ -1,517 +1,503 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -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.XmlElements; -import javax.xml.bind.annotation.XmlID; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded" minOccurs="0">
- *         <element ref="{}arrowlink"/>
- *         <element ref="{}cloud"/>
- *         <element ref="{}edge"/>
- *         <element ref="{}font"/>
- *         <element ref="{}hook"/>
- *         <element ref="{}icon"/>
- *         <element ref="{}node"/>
- *       </choice>
- *       <attribute name="BACKGROUND_COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="CREATED" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *       <attribute name="ENCRYPTED_CONTENT" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="FOLDED">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *             <enumeration value="true"/>
- *             <enumeration value="false"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="HGAP" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
- *       <attribute name="LINK" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="MODIFIED" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *       <attribute name="POSITION">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *             <enumeration value="left"/>
- *             <enumeration value="right"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="STYLE" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="TEXT" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="VGAP" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *       <attribute name="VSHIFT" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "arrowlinkOrCloudOrEdge" -}) -@XmlRootElement(name = "node") -public class Node { - - @XmlElements({ - @XmlElement(name = "cloud", type = Cloud.class), - @XmlElement(name = "icon", type = Icon.class), - @XmlElement(name = "arrowlink", type = Arrowlink.class), - @XmlElement(name = "edge", type = Edge.class), - @XmlElement(name = "font", type = Font.class), - @XmlElement(name = "node", type = Node.class), - @XmlElement(name = "hook", type = Hook.class) - }) - protected List arrowlinkOrCloudOrEdge; - @XmlAttribute(name = "BACKGROUND_COLOR") - protected String backgroundcolor; - @XmlAttribute(name = "COLOR") - protected String color; - @XmlAttribute(name = "CREATED") - protected BigInteger created; - @XmlAttribute(name = "ENCRYPTED_CONTENT") - protected String encryptedcontent; - @XmlAttribute(name = "FOLDED") - protected String folded; - @XmlAttribute(name = "HGAP") - protected BigInteger hgap; - @XmlAttribute(name = "ID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; - @XmlAttribute(name = "LINK") - protected String link; - @XmlAttribute(name = "MODIFIED") - protected BigInteger modified; - @XmlAttribute(name = "POSITION") - protected String position; - @XmlAttribute(name = "STYLE") - protected String style; - @XmlAttribute(name = "TEXT", required = true) - protected String text; - @XmlAttribute(name = "VGAP") - protected BigInteger vgap; - @XmlAttribute(name = "VSHIFT") - protected BigInteger vshift; - - /** - * Gets the value of the arrowlinkOrCloudOrEdge property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the arrowlinkOrCloudOrEdge property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getArrowlinkOrCloudOrEdge().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Cloud } - * {@link Icon } - * {@link Arrowlink } - * {@link Edge } - * {@link Font } - * {@link Node } - * {@link Hook } - * - * - */ - public List getArrowlinkOrCloudOrEdge() { - if (arrowlinkOrCloudOrEdge == null) { - arrowlinkOrCloudOrEdge = new ArrayList(); - } - return this.arrowlinkOrCloudOrEdge; - } - - /** - * Gets the value of the backgroundcolor property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBACKGROUNDCOLOR() { - return backgroundcolor; - } - - /** - * Sets the value of the backgroundcolor property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBACKGROUNDCOLOR(String value) { - this.backgroundcolor = value; - } - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCOLOR() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCOLOR(String value) { - this.color = value; - } - - /** - * Gets the value of the created property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getCREATED() { - return created; - } - - /** - * Sets the value of the created property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setCREATED(BigInteger value) { - this.created = value; - } - - /** - * Gets the value of the encryptedcontent property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getENCRYPTEDCONTENT() { - return encryptedcontent; - } - - /** - * Sets the value of the encryptedcontent property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setENCRYPTEDCONTENT(String value) { - this.encryptedcontent = value; - } - - /** - * Gets the value of the folded property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFOLDED() { - return folded; - } - - /** - * Sets the value of the folded property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFOLDED(String value) { - this.folded = value; - } - - /** - * Gets the value of the hgap property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getHGAP() { - return hgap; - } - - /** - * Sets the value of the hgap property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setHGAP(BigInteger value) { - this.hgap = value; - } - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getID() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setID(String value) { - this.id = value; - } - - /** - * Gets the value of the link property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLINK() { - return link; - } - - /** - * Sets the value of the link property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLINK(String value) { - this.link = value; - } - - /** - * Gets the value of the modified property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getMODIFIED() { - return modified; - } - - /** - * Sets the value of the modified property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setMODIFIED(BigInteger value) { - this.modified = value; - } - - /** - * Gets the value of the position property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPOSITION() { - return position; - } - - /** - * Sets the value of the position property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPOSITION(String value) { - this.position = value; - } - - /** - * Gets the value of the style property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSTYLE() { - return style; - } - - /** - * Sets the value of the style property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSTYLE(String value) { - this.style = value; - } - - /** - * Gets the value of the text property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTEXT() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTEXT(String value) { - this.text = value; - } - - /** - * Gets the value of the vgap property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getVGAP() { - return vgap; - } - - /** - * Sets the value of the vgap property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setVGAP(BigInteger value) { - this.vgap = value; - } - - /** - * Gets the value of the vshift property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getVSHIFT() { - return vshift; - } - - /** - * Sets the value of the vshift property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setVSHIFT(BigInteger value) { - this.vshift = value; - } - -} + +package com.wisemapping.xml.freemind; + +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.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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{}arrowlink"/>
+ *         <element ref="{}cloud"/>
+ *         <element ref="{}edge"/>
+ *         <element ref="{}font"/>
+ *         <element ref="{}hook"/>
+ *         <element ref="{}icon"/>
+ *         <element ref="{}node"/>
+ *         <element ref="{}richcontent"/>
+ *       </choice>
+ *       <attribute name="BACKGROUND_COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="COLOR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="FOLDED">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="true"/>
+ *             <enumeration value="false"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="LINK" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="POSITION">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="left"/>
+ *             <enumeration value="right"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="STYLE" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="TEXT" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="CREATED" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="MODIFIED" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="HGAP" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="VGAP" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="VSHIFT" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="ENCRYPTED_CONTENT" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "arrowlinkOrCloudOrEdge" +}) +@XmlRootElement(name = "node") +public class Node { + + @XmlElements({ + @XmlElement(name = "icon", type = Icon.class), + @XmlElement(name = "node", type = Node.class), + @XmlElement(name = "edge", type = Edge.class), + @XmlElement(name = "arrowlink", type = Arrowlink.class), + @XmlElement(name = "font", type = Font.class), + @XmlElement(name = "hook", type = Hook.class), + @XmlElement(name = "richcontent", type = Richcontent.class), + @XmlElement(name = "cloud", type = Cloud.class) + }) + protected List arrowlinkOrCloudOrEdge; + @XmlAttribute(name = "BACKGROUND_COLOR") + protected String backgroundcolor; + @XmlAttribute(name = "COLOR") + protected String color; + @XmlAttribute(name = "FOLDED") + protected String folded; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "LINK") + protected String link; + @XmlAttribute(name = "POSITION") + protected String position; + @XmlAttribute(name = "STYLE") + protected String style; + @XmlAttribute(name = "TEXT", required = true) + protected String text; + @XmlAttribute(name = "CREATED") + protected BigInteger created; + @XmlAttribute(name = "MODIFIED") + protected BigInteger modified; + @XmlAttribute(name = "HGAP") + protected BigInteger hgap; + @XmlAttribute(name = "VGAP") + protected BigInteger vgap; + @XmlAttribute(name = "VSHIFT") + protected BigInteger vshift; + @XmlAttribute(name = "ENCRYPTED_CONTENT") + protected String encryptedcontent; + + /** + * Gets the value of the arrowlinkOrCloudOrEdge property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the arrowlinkOrCloudOrEdge property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getArrowlinkOrCloudOrEdge().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Icon } + * {@link Node } + * {@link Edge } + * {@link Arrowlink } + * {@link Font } + * {@link Hook } + * {@link Richcontent } + * {@link Cloud } + * + * + */ + public List getArrowlinkOrCloudOrEdge() { + if (arrowlinkOrCloudOrEdge == null) { + arrowlinkOrCloudOrEdge = new ArrayList(); + } + return this.arrowlinkOrCloudOrEdge; + } + + /** + * Gets the value of the backgroundcolor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBACKGROUNDCOLOR() { + return backgroundcolor; + } + + /** + * Sets the value of the backgroundcolor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBACKGROUNDCOLOR(String value) { + this.backgroundcolor = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOLOR() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOLOR(String value) { + this.color = value; + } + + /** + * Gets the value of the folded property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFOLDED() { + return folded; + } + + /** + * Sets the value of the folded property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFOLDED(String value) { + this.folded = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the link property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLINK() { + return link; + } + + /** + * Sets the value of the link property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLINK(String value) { + this.link = value; + } + + /** + * Gets the value of the position property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPOSITION() { + return position; + } + + /** + * Sets the value of the position property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPOSITION(String value) { + this.position = value; + } + + /** + * Gets the value of the style property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSTYLE() { + return style; + } + + /** + * Sets the value of the style property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSTYLE(String value) { + this.style = value; + } + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTEXT() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTEXT(String value) { + this.text = value; + } + + /** + * Gets the value of the created property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCREATED() { + return created; + } + + /** + * Sets the value of the created property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCREATED(BigInteger value) { + this.created = value; + } + + /** + * Gets the value of the modified property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMODIFIED() { + return modified; + } + + /** + * Sets the value of the modified property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMODIFIED(BigInteger value) { + this.modified = value; + } + + /** + * Gets the value of the hgap property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getHGAP() { + return hgap; + } + + /** + * Sets the value of the hgap property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setHGAP(BigInteger value) { + this.hgap = value; + } + + /** + * Gets the value of the vgap property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getVGAP() { + return vgap; + } + + /** + * Sets the value of the vgap property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setVGAP(BigInteger value) { + this.vgap = value; + } + + /** + * Gets the value of the vshift property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getVSHIFT() { + return vshift; + } + + /** + * Sets the value of the vshift property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setVSHIFT(BigInteger value) { + this.vshift = value; + } + + /** + * Gets the value of the encryptedcontent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getENCRYPTEDCONTENT() { + return encryptedcontent; + } + + /** + * Sets the value of the encryptedcontent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setENCRYPTEDCONTENT(String value) { + this.encryptedcontent = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/ObjectFactory.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/ObjectFactory.java old mode 100755 new mode 100644 index 3ba2d774..0273f823 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/ObjectFactory.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/ObjectFactory.java @@ -1,143 +1,140 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2008.03.26 at 10:38:46 PM ART -// - - -package com.wisemapping.xml.freemind; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the generated package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _Text_QNAME = new QName("", "text"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: generated - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link Arrowlink } - * - */ - public Arrowlink createArrowlink() { - return new Arrowlink(); - } - - /** - * Create an instance of {@link Map } - * - */ - public Map createMap() { - return new Map(); - } - - /** - * Create an instance of {@link Icon } - * - */ - public Icon createIcon() { - return new Icon(); - } - - /** - * Create an instance of {@link Cloud } - * - */ - public Cloud createCloud() { - return new Cloud(); - } - - /** - * Create an instance of {@link Font } - * - */ - public Font createFont() { - return new Font(); - } - - /** - * Create an instance of {@link Parameters } - * - */ - public Parameters createParameters() { - return new Parameters(); - } - - /** - * Create an instance of {@link Hook } - * - */ - public Hook createHook() { - return new Hook(); - } - - /** - * Create an instance of {@link Edge } - * - */ - public Edge createEdge() { - return new Edge(); - } - - /** - * Create an instance of {@link Node } - * - */ - public Node createNode() { - return new Node(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "", name = "text") - public JAXBElement createText(String value) { - return new JAXBElement(_Text_QNAME, String.class, null, value); - } - -} + +package com.wisemapping.xml.freemind; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.wisemapping.xml.freemind package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Text_QNAME = new QName("", "text"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.wisemapping.xml.freemind + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Cloud } + * + */ + public Cloud createCloud() { + return new Cloud(); + } + + /** + * Create an instance of {@link Richcontent } + * + */ + public Richcontent createRichcontent() { + return new Richcontent(); + } + + /** + * Create an instance of {@link Hook } + * + */ + public Hook createHook() { + return new Hook(); + } + + /** + * Create an instance of {@link Arrowlink } + * + */ + public Arrowlink createArrowlink() { + return new Arrowlink(); + } + + /** + * Create an instance of {@link Parameters } + * + */ + public Parameters createParameters() { + return new Parameters(); + } + + /** + * Create an instance of {@link Edge } + * + */ + public Edge createEdge() { + return new Edge(); + } + + /** + * Create an instance of {@link Html } + * + */ + public Html createHtml() { + return new Html(); + } + + /** + * Create an instance of {@link Node } + * + */ + public Node createNode() { + return new Node(); + } + + /** + * Create an instance of {@link Icon } + * + */ + public Icon createIcon() { + return new Icon(); + } + + /** + * Create an instance of {@link Map } + * + */ + public Map createMap() { + return new Map(); + } + + /** + * Create an instance of {@link Font } + * + */ + public Font createFont() { + return new Font(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "text") + public JAXBElement createText(String value) { + return new JAXBElement(_Text_QNAME, String.class, null, value); + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Parameters.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Parameters.java old mode 100755 new mode 100644 index c89f3b83..1343aa61 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Parameters.java +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Parameters.java @@ -1,87 +1,68 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2007.08.27 at 09:24:17 PM ART -// - - -package com.wisemapping.xml.freemind; - -import java.math.BigInteger; -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; - - -/** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="REMINDUSERAT" type="{http://www.w3.org/2001/XMLSchema}integer" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "Parameters") -public class Parameters { - - @XmlAttribute(name = "REMINDUSERAT") - protected BigInteger reminduserat; - - /** - * Gets the value of the reminduserat property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getREMINDUSERAT() { - return reminduserat; - } - - /** - * Sets the value of the reminduserat property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setREMINDUSERAT(BigInteger value) { - this.reminduserat = value; - } - -} + +package com.wisemapping.xml.freemind; + +import java.math.BigInteger; +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="REMINDUSERAT" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "Parameters") +public class Parameters { + + @XmlAttribute(name = "REMINDUSERAT") + protected BigInteger reminduserat; + + /** + * Gets the value of the reminduserat property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getREMINDUSERAT() { + return reminduserat; + } + + /** + * Sets the value of the reminduserat property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setREMINDUSERAT(BigInteger value) { + this.reminduserat = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Richcontent.java b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Richcontent.java new file mode 100644 index 00000000..b93e6f1e --- /dev/null +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Richcontent.java @@ -0,0 +1,106 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2011.01.10 at 02:12:59 PM ART +// + + +package com.wisemapping.xml.freemind; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}html"/>
+ *       </sequence>
+ *       <attribute name="TYPE" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="NODE"/>
+ *             <enumeration value="NOTE"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "html" +}) +@XmlRootElement(name = "richcontent") +public class Richcontent { + + @XmlElement(required = true) + protected Html html; + @XmlAttribute(name = "TYPE", required = true) + protected String type; + + /** + * Gets the value of the html property. + * + * @return + * possible object is + * {@link Html } + * + */ + public Html getHtml() { + return html; + } + + /** + * Sets the value of the html property. + * + * @param value + * allowed object is + * {@link Html } + * + */ + public void setHtml(Html value) { + this.html = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTYPE() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTYPE(String value) { + this.type = value; + } + +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd b/wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd index 8c5a2dad..809a2e8a 100755 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd +++ b/wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd @@ -8,7 +8,7 @@ - + @@ -74,6 +74,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -93,6 +120,8 @@ + +