diff --git a/pom.xml b/pom.xml index 04509022..1d518924 100644 --- a/pom.xml +++ b/pom.xml @@ -33,14 +33,13 @@ WiseMapping - http://www.wisemapping.com + http://www.wisemapping.org/ org.apache.maven.plugins - true maven-resources-plugin 2.5 @@ -53,20 +52,10 @@ maven-compiler-plugin 2.3.2 - 1.5 + 1.6 1.6 - - org.apache.maven.plugins - true - maven-checkstyle-plugin - 2.8 - - config/maven_checks.xml - - - org.apache.maven.plugins maven-assembly-plugin diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml index f9083b49..34ff62b2 100644 --- a/wise-webapp/pom.xml +++ b/wise-webapp/pom.xml @@ -260,6 +260,11 @@ slf4j-api 1.6.4 + + xerces + xercesImpl + 2.10.0 + @@ -433,6 +438,49 @@ 10 + + + org.jvnet.jaxb2.maven2 + maven-jaxb2-plugin + + + mindmap-generate + + generate + + + src/main/resources/ + + mindmap.xsd + + src/main/resources/ + + mindmap.xjb + + com.wisemapping.jaxb.mindmap + ${project.build.directory}/generated-sources/xjc1 + + + + freemind-generate + + generate + + + src/main/resources/ + + freemind_0.9.0.xsd + + src/main/resources/ + + freemind_0.9.0.xjb + + com.wisemapping.jaxb.freemind + ${project.build.directory}/generated-sources/xjc2 + + + + diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java index 09d63ad0..1a303bd5 100755 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java @@ -23,10 +23,10 @@ import com.wisemapping.importer.freemind.FreemindIconConverter; import com.wisemapping.model.MindMap; import com.wisemapping.model.ShapeStyle; import com.wisemapping.util.JAXBUtils; -import com.wisemapping.xml.freemind.*; -import com.wisemapping.xml.mindmap.RelationshipType; -import com.wisemapping.xml.mindmap.TopicType; -import com.wisemapping.xml.mindmap.Icon; +import com.wisemapping.jaxb.freemind.*; +import com.wisemapping.jaxb.mindmap.RelationshipType; +import com.wisemapping.jaxb.mindmap.TopicType; +import com.wisemapping.jaxb.mindmap.Icon; import org.jetbrains.annotations.NotNull; import javax.xml.bind.JAXBException; @@ -43,7 +43,7 @@ public class FreemindExporter private static final String FREE_MIND_VERSION = "0.9.0"; private static final String POSITION_LEFT = "left"; private static final String POSITION_RIGHT = "right"; - private com.wisemapping.xml.freemind.ObjectFactory objectFactory; + private com.wisemapping.jaxb.freemind.ObjectFactory objectFactory; private static final String EMPTY_FONT_STYLE = ";;;;;"; private Map nodesMap = null; @@ -54,15 +54,15 @@ public class FreemindExporter public void export(byte[] xml, OutputStream outputStream) throws ExportException { - objectFactory = new com.wisemapping.xml.freemind.ObjectFactory(); + objectFactory = new com.wisemapping.jaxb.freemind.ObjectFactory(); nodesMap = new HashMap(); - final com.wisemapping.xml.mindmap.Map mindmapMap; + final com.wisemapping.jaxb.mindmap.Map mindmapMap; try { final ByteArrayInputStream stream = new ByteArrayInputStream(xml); - mindmapMap = (com.wisemapping.xml.mindmap.Map) JAXBUtils.getMapObject(stream, "com.wisemapping.xml.mindmap"); + mindmapMap = (com.wisemapping.jaxb.mindmap.Map) JAXBUtils.getMapObject(stream, "com.wisemapping.jaxb.mindmap"); - final com.wisemapping.xml.freemind.Map freemindMap = objectFactory.createMap(); + final com.wisemapping.jaxb.freemind.Map freemindMap = objectFactory.createMap(); freemindMap.setVersion(FREE_MIND_VERSION); @@ -94,17 +94,17 @@ public class FreemindExporter Arrowlink arrowlink = objectFactory.createArrowlink(); Node dstNode = nodesMap.get(relationship.getDestTopicId()); arrowlink.setDESTINATION(dstNode.getID()); - if (relationship.isEndArrow()!=null && relationship.isEndArrow()) + if (relationship.isEndArrow() != null && relationship.isEndArrow()) arrowlink.setENDARROW("Default"); - if (relationship.isStartArrow()!=null && relationship.isStartArrow()) + if (relationship.isStartArrow() != null && relationship.isStartArrow()) arrowlink.setSTARTARROW("Default"); List cloudOrEdge = srcNode.getArrowlinkOrCloudOrEdge(); cloudOrEdge.add(arrowlink); } - JAXBUtils.saveMap(freemindMap, outputStream, "com.wisemapping.xml.freemind"); + JAXBUtils.saveMap(freemindMap, outputStream, "com.wisemapping.jaxb.freemind"); } catch (JAXBException e) { throw new ExportException(e); } @@ -128,9 +128,14 @@ public class FreemindExporter } } - private void setTopicPropertiesToNode(@NotNull com.wisemapping.xml.freemind.Node freemindNode, @NotNull com.wisemapping.xml.mindmap.TopicType mindmapTopic, boolean isRoot) { + private void setTopicPropertiesToNode(@NotNull com.wisemapping.jaxb.freemind.Node freemindNode, @NotNull com.wisemapping.jaxb.mindmap.TopicType mindmapTopic, boolean isRoot) { freemindNode.setID("ID_" + mindmapTopic.getId()); - freemindNode.setTEXT(mindmapTopic.getText()); + + String text = mindmapTopic.getTextAttr(); + if (text == null || text.isEmpty()) { + text = mindmapTopic.getText(); + } + freemindNode.setTEXT(text); freemindNode.setBACKGROUNDCOLOR(mindmapTopic.getBgColor()); final String shape = mindmapTopic.getShape(); @@ -144,33 +149,24 @@ public class FreemindExporter freemindNode.setSTYLE(style); } addIconNode(freemindNode, mindmapTopic); - addLinkNode(freemindNode, mindmapTopic); - addFontNode(freemindNode, mindmapTopic); addEdgeNode(freemindNode, mindmapTopic); addNote(freemindNode, mindmapTopic); - final String position = mindmapTopic.getPosition(); - if (position != null && !position.isEmpty()) { - freemindNode.setWcoords(position); - } - - final Integer order = mindmapTopic.getOrder(); - if (order != null) { - freemindNode.setWorder(BigInteger.valueOf(order)); - } - Boolean shrink = mindmapTopic.isShrink(); if (shrink != null && shrink) freemindNode.setFOLDED(String.valueOf(shrink)); } } - private void addNote(com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) { + private void addNote(com.wisemapping.jaxb.freemind.Node freemindNode, com.wisemapping.jaxb.mindmap.TopicType mindmapTopic) { if (mindmapTopic.getNote() != null) { final Hook note = new Hook(); - String textNote = mindmapTopic.getNote().getText(); + String textNote = mindmapTopic.getNote().getTextAttr(); + if (textNote == null || textNote.isEmpty()) { + textNote = mindmapTopic.getNote().getText(); + } textNote = textNote.replaceAll("%0A", "\n"); note.setNAME("accessories/plugins/NodeNote.properties"); note.setText(textNote); @@ -178,14 +174,14 @@ public class FreemindExporter } } - private void addLinkNode(com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) { + private void addLinkNode(com.wisemapping.jaxb.freemind.Node freemindNode, com.wisemapping.jaxb.mindmap.TopicType mindmapTopic) { if (mindmapTopic.getLink() != null) { final String url = mindmapTopic.getLink().getUrl(); freemindNode.setLINK(url); } } - private void addIconNode(com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) { + private void addIconNode(com.wisemapping.jaxb.freemind.Node freemindNode, com.wisemapping.jaxb.mindmap.TopicType mindmapTopic) { if (mindmapTopic.getIcon() != null) { final List iconsList = mindmapTopic.getIcon(); for (Icon icon : iconsList) { @@ -193,7 +189,7 @@ public class FreemindExporter final String freemindIconId = FreemindIconConverter.toFreemindId(id); if (freemindIconId != null) { - com.wisemapping.xml.freemind.Icon freemindIcon = new com.wisemapping.xml.freemind.Icon(); + com.wisemapping.jaxb.freemind.Icon freemindIcon = new com.wisemapping.jaxb.freemind.Icon(); freemindIcon.setBUILTIN(freemindIconId); freemindNode.getArrowlinkOrCloudOrEdge().add(freemindIcon); } @@ -201,7 +197,7 @@ public class FreemindExporter } } - private void addEdgeNode(com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) { + private void addEdgeNode(com.wisemapping.jaxb.freemind.Node freemindNode, com.wisemapping.jaxb.mindmap.TopicType mindmapTopic) { if (mindmapTopic.getBrColor() != null) { final Edge edgeNode = objectFactory.createEdge(); edgeNode.setCOLOR(mindmapTopic.getBrColor()); @@ -214,7 +210,7 @@ public class FreemindExporter * eg: Verdana;10;#ffffff;bold;italic; * */ - private void addFontNode(@NotNull com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) { + private void addFontNode(@NotNull com.wisemapping.jaxb.freemind.Node freemindNode, com.wisemapping.jaxb.mindmap.TopicType mindmapTopic) { final String fontStyle = mindmapTopic.getFontStyle(); if (fontStyle != null && fontStyle.length() != 0) { final Font font = objectFactory.createFont(); diff --git a/wise-webapp/src/main/java/com/wisemapping/importer/ImporterFactory.java b/wise-webapp/src/main/java/com/wisemapping/importer/ImporterFactory.java index 718289ca..c4f1a349 100755 --- a/wise-webapp/src/main/java/com/wisemapping/importer/ImporterFactory.java +++ b/wise-webapp/src/main/java/com/wisemapping/importer/ImporterFactory.java @@ -1,54 +1,55 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -package com.wisemapping.importer; - -import com.wisemapping.importer.freemind.FreemindImporter; - -public class ImporterFactory -{ - - private static ImporterFactory instance = null; - - private ImporterFactory() {} - - public static ImporterFactory getInstance() - { - if (instance == null) - { - instance = new ImporterFactory(); - } - return instance; - } - - public Importer getImporter(ImportFormat format) - throws ImporterException - { - Importer importer; - switch (format) - { - case FREEMIND: - importer = new FreemindImporter(); - break; - default: - throw new ImporterException("Invalid format type:" + format); - } - - return importer; - } -} +/* +* Copyright [2011] [wisemapping] +* +* Licensed under WiseMapping Public License, Version 1.0 (the "License"). +* It is basically the Apache License, Version 2.0 (the "License") plus the +* "powered by wisemapping" text requirement on every single page; +* you may not use this file except in compliance with the License. +* You may obtain a copy of the license at +* +* http://www.wisemapping.org/license +* +* 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. +*/ + +package com.wisemapping.importer; + +import com.wisemapping.importer.freemind.FreemindImporter; +import org.jetbrains.annotations.NotNull; + +public class ImporterFactory +{ + + private static ImporterFactory instance = null; + + private ImporterFactory() {} + + public static ImporterFactory getInstance() + { + if (instance == null) + { + instance = new ImporterFactory(); + } + return instance; + } + + public Importer getImporter(@NotNull ImportFormat format) + throws ImporterException + { + Importer importer; + switch (format) + { + case FREEMIND: + importer = new FreemindImporter(); + break; + default: + throw new ImporterException("Invalid format type:" + format); + } + + return importer; + } +} diff --git a/wise-webapp/src/main/java/com/wisemapping/importer/JaxbCDATAMarshaller.java b/wise-webapp/src/main/java/com/wisemapping/importer/JaxbCDATAMarshaller.java new file mode 100644 index 00000000..122041ba --- /dev/null +++ b/wise-webapp/src/main/java/com/wisemapping/importer/JaxbCDATAMarshaller.java @@ -0,0 +1,36 @@ +package com.wisemapping.importer; + +import java.io.OutputStream; + +import org.apache.xml.serialize.OutputFormat; +import org.apache.xml.serialize.XMLSerializer; +import org.jetbrains.annotations.NotNull; +import org.w3c.dom.Document; + +@SuppressWarnings("deprecation") +public class JaxbCDATAMarshaller { + + public static XMLSerializer createMindmapXMLSerializer(@NotNull OutputStream out) { + // configure an OutputFormat to handle CDATA + OutputFormat of = new OutputFormat(); + + // specify which of your elements you want to be handled as CDATA. + // The use of the '^' between the namespaceURI and the localname + // seems to be an implementation detail of the xerces code. + // When processing xml that doesn't use namespaces, simply omit the + // namespace prefix as shown in the third CDataElement below. + of.setCDataElements( + new String[]{"^text"}); // + + // set any other options you'd like +// of.setPreserveSpace(true); + of.setIndenting(true); + + // create the serializer + XMLSerializer result = new XMLSerializer(of); + result.setOutputByteStream(out); + + return result; + } + +} \ No newline at end of file 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 224ae963..f256497f 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 @@ -25,12 +25,12 @@ import com.wisemapping.importer.VersionNumber; import com.wisemapping.model.MindMap; import com.wisemapping.model.ShapeStyle; import com.wisemapping.util.JAXBUtils; -import com.wisemapping.xml.freemind.*; -import com.wisemapping.xml.freemind.Map; -import com.wisemapping.xml.freemind.Node; -import com.wisemapping.xml.mindmap.RelationshipType; -import com.wisemapping.xml.mindmap.TopicType; -import com.wisemapping.xml.mindmap.Link; +import com.wisemapping.jaxb.freemind.*; +import com.wisemapping.jaxb.freemind.Map; +import com.wisemapping.jaxb.freemind.Node; +import com.wisemapping.jaxb.mindmap.RelationshipType; +import com.wisemapping.jaxb.mindmap.TopicType; +import com.wisemapping.jaxb.mindmap.Link; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.w3c.dom.*; @@ -46,12 +46,12 @@ import java.math.BigInteger; public class FreemindImporter implements Importer { - public static final String CODE_VERSION = "pela"; + public static final String CODE_VERSION = "tango"; public static final int SECOND_LEVEL_TOPIC_HEIGHT = 25; public static final int ROOT_LEVEL_TOPIC_HEIGHT = SECOND_LEVEL_TOPIC_HEIGHT; public static final int CENTRAL_TO_TOPIC_DISTANCE = 200; public static final int TOPIC_TO_TOPIC_DISTANCE = 90; - private com.wisemapping.xml.mindmap.ObjectFactory mindmapObjectFactory; + private com.wisemapping.jaxb.mindmap.ObjectFactory mindmapObjectFactory; private static final String POSITION_LEFT = "left"; private static final String BOLD = "bold"; private static final String ITALIC = "italic"; @@ -99,11 +99,11 @@ public class FreemindImporter final MindMap result = new MindMap(); nodesMap = new HashMap(); relationships = new ArrayList(); - mindmapObjectFactory = new com.wisemapping.xml.mindmap.ObjectFactory(); + mindmapObjectFactory = new com.wisemapping.jaxb.mindmap.ObjectFactory(); try { String wiseXml; - final Map freemindMap = (Map) JAXBUtils.getMapObject(input, "com.wisemapping.xml.freemind"); + final Map freemindMap = (Map) JAXBUtils.getMapObject(input, "com.wisemapping.jaxb.freemind"); final String version = freemindMap.getVersion(); if (version != null) { @@ -116,7 +116,7 @@ public class FreemindImporter final ByteArrayOutputStream baos = new ByteArrayOutputStream(); - final com.wisemapping.xml.mindmap.Map mindmapMap = mindmapObjectFactory.createMap(); + final com.wisemapping.jaxb.mindmap.Map mindmapMap = mindmapObjectFactory.createMap(); mindmapMap.setVersion(CODE_VERSION); currentId = 0; @@ -137,7 +137,7 @@ public class FreemindImporter convertChildNodes(freeNode, wiseTopic, 1); addRelationships(mindmapMap); - JAXBUtils.saveMap(mindmapMap, baos, "com.wisemapping.xml.mindmap"); + JAXBUtils.saveMap(mindmapMap, baos, "com.wisemapping.jaxb.mindmap"); wiseXml = new String(baos.toByteArray(), UTF_8_CHARSET); @@ -155,7 +155,7 @@ public class FreemindImporter return result; } - private void addRelationships(@NotNull com.wisemapping.xml.mindmap.Map mindmapMap) { + private void addRelationships(@NotNull com.wisemapping.jaxb.mindmap.Map mindmapMap) { List mapRelationships = mindmapMap.getRelationship(); for (RelationshipType relationship : relationships) { relationship.setId(String.valueOf(currentId++)); @@ -270,14 +270,14 @@ public class FreemindImporter String iconId = freemindIcon.getBUILTIN(); final String wiseIconId = FreemindIconConverter.toWiseId(iconId); if (wiseIconId != null) { - final com.wisemapping.xml.mindmap.Icon mindmapIcon = new com.wisemapping.xml.mindmap.Icon(); + final com.wisemapping.jaxb.mindmap.Icon mindmapIcon = new com.wisemapping.jaxb.mindmap.Icon(); mindmapIcon.setId(wiseIconId); currentWiseTopic.getIcon().add(mindmapIcon); } } else if (element instanceof Hook) { final Hook hook = (Hook) element; - final com.wisemapping.xml.mindmap.Note mindmapNote = new com.wisemapping.xml.mindmap.Note(); + final com.wisemapping.jaxb.mindmap.Note mindmapNote = new com.wisemapping.jaxb.mindmap.Note(); String textNote = hook.getText(); if (textNote == null) // It is not a note is a BlinkingNodeHook or AutomaticLayout Hook { @@ -291,13 +291,11 @@ public class FreemindImporter if (type.equals("NODE")) { String text = getText(content); - text = text.replaceAll("\n", ""); - text = text.trim(); currentWiseTopic.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; + final com.wisemapping.jaxb.mindmap.Note mindmapNote = new com.wisemapping.jaxb.mindmap.Note(); + text = text != null ? text : EMPTY_NOTE; mindmapNote.setText(text); currentWiseTopic.setNote(mindmapNote); @@ -347,41 +345,36 @@ public class FreemindImporter final List nodes = new ArrayList(); int result; - if (freeChild.getWorder() != null) { - result = freeChild.getWorder().intValue(); + // Collect all the nodes of the same side ... + for (Object child : freeChilden) { + if (child instanceof Node) { + Node node = (Node) child; + + final String side = node.getPOSITION(); + if (freeChild.getPOSITION().equals(side)) { + nodes.add(node); + } + } + } + + // What is the index of the current node ? + int nodeIndex = 0; + for (Node node : nodes) { + if (node == freeChild) { + break; + } + nodeIndex++; + } + + int size = nodes.size(); + int center = (size - 1) / 2; + result = nodeIndex - center; + + if (result < 0) { + result = (result * ORDER_SEPARATION_FACTOR * -2) - 1; + } else { - // Collect all the nodes of the same side ... - for (Object child : freeChilden) { - if (child instanceof Node) { - Node node = (Node) child; - - final String side = node.getPOSITION(); - if (freeChild.getPOSITION().equals(side)) { - nodes.add(node); - } - } - } - - // What is the index of the current node ? - int nodeIndex = 0; - for (Node node : nodes) { - if (node == freeChild) { - break; - } - nodeIndex++; - } - - int size = nodes.size(); - int center = (size - 1) / 2; - result = nodeIndex - center; - - if (result < 0) { - result = (result * ORDER_SEPARATION_FACTOR * -2) - 1; - - } else { - result = result * ORDER_SEPARATION_FACTOR * 2; - } - + result = result * ORDER_SEPARATION_FACTOR * 2; } return result; } @@ -396,53 +389,50 @@ public class FreemindImporter String convertPosition(@NotNull TopicType wiseParent, @NotNull Node freeChild, final int depth, int order, int childrenCount) { // Which side must be the node be positioned ? - String result = freeChild.getWcoords(); - if (result == null) { - // Calculate X ... + // Calculate X ... - // Problem on setting X position: - // Text Size is not taken into account ... - int x = CENTRAL_TO_TOPIC_DISTANCE + ((depth - 1) * TOPIC_TO_TOPIC_DISTANCE); - if (depth == 1) { + // Problem on setting X position: + // Text Size is not taken into account ... + int x = CENTRAL_TO_TOPIC_DISTANCE + ((depth - 1) * TOPIC_TO_TOPIC_DISTANCE); + if (depth == 1) { - final String side = freeChild.getPOSITION(); - assert side != null : "This should not happen"; - x = x * (POSITION_LEFT.equals(side) ? -1 : 1); + final String side = freeChild.getPOSITION(); + assert side != null : "This should not happen"; + x = x * (POSITION_LEFT.equals(side) ? -1 : 1); + } else { + final Coord coord = Coord.parse(wiseParent.getPosition()); + x = x * (coord.isOnLeftSide() ? -1 : 1); + } + + + // Calculate y ... + int y; + if (depth == 1) { + + // Follow the following algorithm ... + // Order: 3 = -100 1 + // Order: 1 = -50 2 + // Order: 0 = 0 3 + // Order: 2 = 50 4 + // Order: 4 = 100 5 + if (order % 2 == 0) { + y = ROOT_LEVEL_TOPIC_HEIGHT * order; } else { - final Coord coord = Coord.parse(wiseParent.getPosition()); - x = x * (coord.isOnLeftSide() ? -1 : 1); + y = -ROOT_LEVEL_TOPIC_HEIGHT * (order + 1); } + } else { + // Problem: What happen if the node is more tall than what is defined here. + Coord coord = Coord.parse(wiseParent.getPosition()); + int parentY = coord.y; + y = parentY - ((childrenCount / 2) * SECOND_LEVEL_TOPIC_HEIGHT - (order * SECOND_LEVEL_TOPIC_HEIGHT)); - // Calculate y ... - int y; - if (depth == 1) { - - // Follow the following algorithm ... - // Order: 3 = -100 1 - // Order: 1 = -50 2 - // Order: 0 = 0 3 - // Order: 2 = 50 4 - // Order: 4 = 100 5 - if (order % 2 == 0) { - y = ROOT_LEVEL_TOPIC_HEIGHT * order; - } else { - y = -ROOT_LEVEL_TOPIC_HEIGHT * (order + 1); - } - } else { - - // Problem: What happen if the node is more tall than what is defined here. - Coord coord = Coord.parse(wiseParent.getPosition()); - int parentY = coord.y; - y = parentY - ((childrenCount / 2) * SECOND_LEVEL_TOPIC_HEIGHT - (order * SECOND_LEVEL_TOPIC_HEIGHT)); - - - } - result = x + "," + y; } - return result; + return x + "," + y; + + } /** @@ -546,7 +536,7 @@ public class FreemindImporter return text.toString(); } - private void convertNodeProperties(@NotNull com.wisemapping.xml.freemind.Node freeNode, @NotNull com.wisemapping.xml.mindmap.TopicType wiseTopic) { + private void convertNodeProperties(@NotNull com.wisemapping.jaxb.freemind.Node freeNode, @NotNull com.wisemapping.jaxb.mindmap.TopicType wiseTopic) { final String text = freeNode.getTEXT(); wiseTopic.setText(text); diff --git a/wise-webapp/src/main/java/com/wisemapping/schemas/SVGWiseMap.xsd b/wise-webapp/src/main/java/com/wisemapping/schemas/SVGWiseMap.xsd deleted file mode 100644 index 21f14e08..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/schemas/SVGWiseMap.xsd +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wise-webapp/src/main/java/com/wisemapping/schemas/VMLWiseMap.xsd b/wise-webapp/src/main/java/com/wisemapping/schemas/VMLWiseMap.xsd deleted file mode 100644 index 94dd6a0b..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/schemas/VMLWiseMap.xsd +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wise-webapp/src/main/java/com/wisemapping/schemas/sampleSVG.xml b/wise-webapp/src/main/java/com/wisemapping/schemas/sampleSVG.xml deleted file mode 100644 index aa0e5292..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/schemas/sampleSVG.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - Node 0 - - - - - - - Node 1 - - - - - - - Node 2 - - - - - - - Node 3 - - - - - - Main Topic - - - - - - - - Sub Topic - - - - - - - Sub Topic - - - - - - - Sub Topic - - - - - - - Sub Topic - - - - - - Main Topic - - - - - - - Main Topic - - - - - - - Central Topic - - - - - - - Sub Topic - - - - - - - Sub Topic - - - - - - - Sub Topic - - - - - - - Sub Topic - - - - - - Isolated Topic - - - - \ No newline at end of file diff --git a/wise-webapp/src/main/java/com/wisemapping/schemas/sampleVML.html b/wise-webapp/src/main/java/com/wisemapping/schemas/sampleVML.html deleted file mode 100644 index 5b2dc44f..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/schemas/sampleVML.html +++ /dev/null @@ -1,577 +0,0 @@ - - - - VML Sample - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Node 0 - - - - - - - - - - - - - - - - Node 1 - - - - - - - - - - - - - - - - Node 2 - - - - - - - - - - - - - - - - Node 3 - - - - - - - - - - - - - Main Topic - - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - Main Topic - - - - - - - - - - - - - - - - - - Main Topic - - - - - - - - - - - - - - - - - - Central Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - Isolated Topic - - - - - - - - -
- - - \ No newline at end of file diff --git a/wise-webapp/src/main/java/com/wisemapping/schemas/sampleVML.xml b/wise-webapp/src/main/java/com/wisemapping/schemas/sampleVML.xml deleted file mode 100644 index f6a0fcac..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/schemas/sampleVML.xml +++ /dev/null @@ -1,612 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Node 0 - - - - - - - - - - - - - - - - - - - - Node 1 - - - - - - - - - - - - - - - - - - - - Node 2 - - - - - - - - - - - - - - - - - - - - Node 3 - - - - - - - - - - - - - - - - - Main Topic - - - - - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Main Topic - - - - - - - - - - - - - - - - - - - - - Main Topic - - - - - - - - - - - - - - - - - - - - - Central Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - - - - Sub Topic - - - - - - - - - - - - - - - - - Isolated Topic - - - - - - - - - - - - - - - - - Main Topic - - - - - - - - - - - \ No newline at end of file diff --git a/wise-webapp/src/main/java/com/wisemapping/util/JAXBUtils.java b/wise-webapp/src/main/java/com/wisemapping/util/JAXBUtils.java index d982da5e..175cea7f 100755 --- a/wise-webapp/src/main/java/com/wisemapping/util/JAXBUtils.java +++ b/wise-webapp/src/main/java/com/wisemapping/util/JAXBUtils.java @@ -1,64 +1,75 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -package com.wisemapping.util; - -import org.jetbrains.annotations.NotNull; - -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.Unmarshaller; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.HashMap; -import java.util.Map; - -public class JAXBUtils { - - private final static Map context = new HashMap(); - - public static Object getMapObject(@NotNull InputStream stream, @NotNull final String pakage) throws JAXBException { - - final JAXBContext context = getInstance(pakage); - final Unmarshaller unmarshaller = context.createUnmarshaller(); - - return unmarshaller.unmarshal(stream); - } - - private static JAXBContext getInstance(@NotNull String pakage) throws JAXBException { - - JAXBContext result = context.get(pakage); - if (result == null) { - synchronized (context) { - result = JAXBContext.newInstance(pakage); - context.put(pakage, result); - } - } - return result; - - } - - public static void saveMap(@NotNull Object obj, @NotNull OutputStream out, String packag) throws JAXBException { - - final JAXBContext context = getInstance(packag); - final Marshaller marshaller = context.createMarshaller(); - - marshaller.marshal(obj, out); - } -} +/* +* Copyright [2011] [wisemapping] +* +* Licensed under WiseMapping Public License, Version 1.0 (the "License"). +* It is basically the Apache License, Version 2.0 (the "License") plus the +* "powered by wisemapping" text requirement on every single page; +* you may not use this file except in compliance with the License. +* You may obtain a copy of the license at +* +* http://www.wisemapping.org/license +* +* 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. +*/ + +package com.wisemapping.util; + +import com.wisemapping.importer.JaxbCDATAMarshaller; +import org.apache.xml.serialize.XMLSerializer; +import org.jetbrains.annotations.NotNull; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.HashMap; +import java.util.Map; + +public class JAXBUtils { + + private final static Map context = new HashMap(); + + public static Object getMapObject(@NotNull InputStream stream, @NotNull final String pakage) throws JAXBException { + + final JAXBContext context = getInstance(pakage); + final Unmarshaller unmarshaller = context.createUnmarshaller(); + + return unmarshaller.unmarshal(stream); + } + + private static JAXBContext getInstance(@NotNull String pakage) throws JAXBException { + + JAXBContext result = context.get(pakage); + if (result == null) { + synchronized (context) { + result = JAXBContext.newInstance(pakage); + context.put(pakage, result); + } + } + return result; + + } + + public static void saveMap(@NotNull Object obj, @NotNull OutputStream out, String packag) throws JAXBException { + + final JAXBContext context = getInstance(packag); + final Marshaller marshaller = context.createMarshaller(); + + // get an Apache XMLSerializer configured to generate CDATA + XMLSerializer serializer = JaxbCDATAMarshaller.createMindmapXMLSerializer(out); + + try { + // marshal using the Apache XMLSerializer + marshaller.marshal(obj, serializer.asContentHandler()); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } +} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/Style.java b/wise-webapp/src/main/java/com/wisemapping/xml/Style.java deleted file mode 100644 index 9185c57d..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/Style.java +++ /dev/null @@ -1,161 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -package com.wisemapping.xml; - -public class Style { - - private float width; - private float height; - private String left; - private String top; - private float fontSize; - private String fontFamily; - private String color; - private String fontWidth; - private boolean isVisible = true; - - public boolean isVisible() { - return isVisible; - } - - public void setVisible(boolean visible) { - isVisible = visible; - } - - public static Style parse(final String styleValue) { - Style result = new Style(); - String[] strings = styleValue.split(";"); - - for (String style : strings) { - final String key = style.substring(0, style.indexOf(":")); - String value = style.substring(style.indexOf(":") + 1, style.length()); - value = value.trim(); - - if (key.trim().equals("WIDTH")) { - result.setWidth(parseFloat(value)); - } else if (key.trim().equals("HEIGHT")) { - result.setHeight(parseFloat(value)); - } - if (key.trim().equals("TOP")) { - result.setTop(removeUnit(value)); - } else if (key.trim().equals("LEFT")) { - result.setLeft(removeUnit(value)); - } else if (key.trim().equals("FONT")) { - final String[] fontValues = value.split(" "); - if (fontValues.length == 3) { - result.setFontWidth(fontValues[0]); - result.setFontSize(parseFloat(fontValues[1])); - result.setFontFamily(fontValues[2]); - } else if (fontValues.length == 2) { - result.setFontSize(parseFloat(fontValues[0])); - result.setFontFamily(fontValues[1]); - } - } else if (key.trim().equals("COLOR")) { - result.setColor(value); - } else if (key.trim().equals("VISIBILITY")) { - result.setVisible(!"hidden".equals(value)); - } - - } - return result; - } - - private void setFontWidth(String v) { - this.fontWidth = v; - } - - private void setColor(String value) { - this.color = value; - } - - public float getHeight() { - return height; - } - - public void setHeight(float height) { - this.height = height; - } - - public float getWidth() { - return width; - } - - public void setWidth(float width) { - this.width = width; - } - - public static String removeUnit(String value) { - String number; - if (value.indexOf("px") != -1 || value.indexOf("pt") != -1) { - number = value.substring(0, value.length() - 2); - } else { - number = value; - } - return number; - } - - public static float parseFloat(String value) { - String number = removeUnit(value); - return Float.parseFloat(number); - } - - - public String getLeft() { - return left; - } - - public void setLeft(String left) { - this.left = left; - } - - public String getTop() { - return top; - } - - public void setTop(String top) { - this.top = top; - } - - - public float getFontSize() { - return fontSize; - } - - public void setFontSize(float fontSize) { - this.fontSize = fontSize; - } - - public String getFontFamily() { - return fontFamily; - } - - public void setFontFamily(String fontFamily) { - this.fontFamily = fontFamily; - } - - public String getColor() { - return this.color; - } - - public String getFontWidth() { - return fontWidth; - } -} - - diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/SvgToVMLConverter.java b/wise-webapp/src/main/java/com/wisemapping/xml/SvgToVMLConverter.java deleted file mode 100644 index e0136a62..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/SvgToVMLConverter.java +++ /dev/null @@ -1,442 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -package com.wisemapping.xml; - -import com.wisemapping.xml.svgmap.*; -import com.wisemapping.xml.svgmap.ObjectFactory; -import com.wisemapping.xml.vmlmap.*; -import com.wisemapping.xml.vmlmap.Line; -import com.wisemapping.xml.vmlmap.Polyline; -import com.wisemapping.xml.vmlmap.Rect; - -import javax.xml.bind.JAXBException; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.Unmarshaller; -import javax.xml.bind.Marshaller; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.List; - -public class SvgToVMLConverter { - private ObjectFactory svgObjectFactory; - private static final int CORRECTION_HANDCODE = 5; - private Object svgRootElem; - - public SvgToVMLConverter() { - this.svgObjectFactory = new ObjectFactory(); - - } - - public void convert(final InputStream vmlDocument) throws JAXBException { - - final JAXBContext vmlContext = JAXBContext.newInstance("com.wisemapping.xml.vmlmap"); - final Unmarshaller umarshaller = vmlContext.createUnmarshaller(); - final Group rootElem = (Group) umarshaller.unmarshal(vmlDocument); - - this.svgRootElem = convert(rootElem); - } - - private Svg convert(Group g) { - final Svg svgElement = svgObjectFactory.createSvg(); - svgElement.setPreserveAspectRatio("none"); - - /* - - - */ - - final String coordorigin = g.getCoordorigin(); - String coordSize = g.getCoordsize(); - svgElement.setViewBox(coordorigin + ", " + coordSize); - - final Style style = Style.parse(g.getStyle()); - float width = style.getWidth(); - svgElement.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgElement.setHeight(String.valueOf(height)); - - // Convert connection lines ... - final List polylines = g.getPolyline(); - final List svgPolylines = svgElement.getPolyline(); - for (Polyline vmlPolyline : polylines) { - final com.wisemapping.xml.svgmap.Polyline svgPolyline = convert(vmlPolyline); - svgPolylines.add(svgPolyline); - } - - final List vmlLines = g.getLine(); - final List svgLines = svgElement.getLine(); - for (Line vmlLine : vmlLines) { - final com.wisemapping.xml.svgmap.Line svgPolyline = convert(vmlLine); - svgLines.add(svgPolyline); - } - - // Convert Topics ... - final List vmlTopics = g.getGroup(); - final List svgTopics = svgElement.getG(); - for (Group topic : vmlTopics) { - G svgTopic = convertTopicGroup(topic); - svgTopics.add(svgTopic); - } - - // Convert connectors ... - g.getOval(); - - return svgElement; - } - - private G convertTopicGroup(final Group vmlTopic) { - /** - * - * - */ - final G svgTopic = new G(); - - final String styleStr = vmlTopic.getStyle(); - final Style style = Style.parse(styleStr); - - String transform = "translate(" + style.getLeft() + ", " + style.getTop() + ") scale(1, 1)"; - svgTopic.setTransform(transform); - - float width = style.getWidth(); - svgTopic.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgTopic.setHeight(String.valueOf(height)); - - svgTopic.setPreserveAspectRatio("none"); - - // Convert InnerShape ... - final List roundrects = vmlTopic.getRoundrect(); - float rectWidth = 0; - float rectHeight = 0; - for (Roundrect vmlRect : roundrects) { - - // Skip outerShape figure... - final Fill vmlFill = vmlRect.getFill(); - if (vmlFill == null || !"0".equals(vmlFill.getOpacity())) { - final com.wisemapping.xml.svgmap.Rect svgRect = convert(vmlRect); - svgTopic.setRect(svgRect); - final Style rectStyle = Style.parse(vmlRect.getStyle()); - - rectWidth = rectStyle.getWidth(); - rectHeight = rectStyle.getHeight(); - } - } - - final List vmlRects = vmlTopic.getRect(); - for (Rect vmlRect : vmlRects) { - - // Skip outerShape figure... - final Fill vmlFill = vmlRect.getFill(); - if (vmlFill == null || !"0".equals(vmlFill.getOpacity())) { - final com.wisemapping.xml.svgmap.Rect svgRect = convert(vmlRect); - svgTopic.setRect(svgRect); - final Style rectStyle = Style.parse(vmlRect.getStyle()); - - rectWidth = rectStyle.getWidth(); - rectHeight = rectStyle.getHeight(); - } - } - - final List vmlLines = vmlTopic.getLine(); - for (final Line vmlLine : vmlLines) { - - final String lineStyleStr = vmlLine.getStyle(); - final Style lineStyle = Style.parse(lineStyleStr); - if (lineStyle.isVisible()) { - com.wisemapping.xml.svgmap.Line line = convert(vmlLine); - svgTopic.setLine(line); - } else { - // Shape is line... - final String from = vmlLine.getFrom(); - String[] formPoints = from.split(","); - - final String to = vmlLine.getTo(); - String[] toPoints = to.split(","); - - rectWidth = Float.parseFloat(formPoints[0]) - Float.parseFloat(toPoints[0]); - rectWidth = Math.abs(rectWidth); - - rectHeight = Float.parseFloat(formPoints[1]); - } - } - - // Convert connection ovals.. - final List vmlOvals = vmlTopic.getOval(); - for (Oval vmlOval : vmlOvals) { - - // Skip outerShape figure... - final Ellipse svgElipse = convert(vmlOval); - if (svgElipse != null) { - svgTopic.setEllipse(svgElipse); - } - } - - // Convert Text ... - final List vmlTextShape = vmlTopic.getShape(); - final Text svgText = convertTextShape(vmlTextShape.get(0), rectWidth, rectHeight); - svgTopic.setText(svgText); - - return svgTopic; - } - - private com.wisemapping.xml.svgmap.Rect convert(Rect vmlRect) { - final com.wisemapping.xml.svgmap.Rect svgRect = new com.wisemapping.xml.svgmap.Rect(); - final Style style = Style.parse(vmlRect.getStyle()); - - float width = style.getWidth(); - svgRect.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgRect.setHeight(height); - - String top = style.getTop(); - svgRect.setY(Float.parseFloat(top)); - - String left = style.getLeft(); - svgRect.setX(Float.parseFloat(left)); - - // Fill properties ... - final String fillColor = vmlRect.getFillcolor(); - svgRect.setFill(fillColor); - - // Stroke properties ... - final String strokeColor = vmlRect.getStrokecolor(); - svgRect.setStroke(strokeColor); - svgRect.setStrokeWidth("0.5px"); - return svgRect; - - } - - private Ellipse convert(final Oval vmlOval) { - - /** - * - * - * - * - * - * - * SVG: - * - */ - final Style style = Style.parse(vmlOval.getStyle()); - Ellipse svgElipse = null; - if (style.isVisible()) { - svgElipse = new Ellipse(); - - float width = style.getWidth(); - svgElipse.setWidth(width); - svgElipse.setRx(width / 2); - - float height = style.getHeight(); - svgElipse.setHeight(height); - svgElipse.setRy(height / 2); - - String top = style.getTop(); - svgElipse.setCy(Float.parseFloat(top) + (width / 2)); - - String left = style.getLeft(); - svgElipse.setCx(Float.parseFloat(left) + (height / 2)); - - // Fill properties ... - final String fillColor = vmlOval.getFillcolor(); - svgElipse.setFill(fillColor); - - // Stroke properties ... - final String strokeColor = vmlOval.getStrokecolor(); - svgElipse.setStroke(strokeColor); - svgElipse.setStrokeWidth("0.5px"); - } - return svgElipse; - } - - private com.wisemapping.xml.svgmap.Line convert(final Line vmlLine) { - /** - * VML: - * - * <:stroke dashstyle="solid"> - * - * - * SVG: - * - */ - - com.wisemapping.xml.svgmap.Line svgLine = new com.wisemapping.xml.svgmap.Line(); - final String from = vmlLine.getFrom(); - final String[] fromPoints = from.split(","); - - svgLine.setX1(Float.parseFloat(fromPoints[0])); - svgLine.setY1(Float.parseFloat(fromPoints[1])); - - final String to = vmlLine.getTo(); - final String[] toPoints = to.split(","); - - svgLine.setX2(Float.parseFloat(toPoints[0])); - svgLine.setY2(Float.parseFloat(toPoints[1])); - - String strokeweight = vmlLine.getStrokeweight(); - svgLine.setStrokeWidth(strokeweight); - - String stokeColor = vmlLine.getStrokecolor(); - svgLine.setStroke(stokeColor); - - return svgLine; - } - - private Text convertTextShape(Shape vmlTextShape, float boxWidth, float boxHeigth) { - /** - * - * - * - * Central Topic - * - * - * - * SVG: - * Central Topic - * - */ - final Text svgText = new Text(); - Textbox vmlTextBox = vmlTextShape.getTextbox(); - final String textBoxStyleStr = vmlTextBox.getStyle(); - final Style textBoxStyle = Style.parse(textBoxStyleStr); - - // @todo: Take this hardcode from javascript ... - float fontSize = textBoxStyle.getFontSize(); - float scale = vmlTextBox.getXFontScale(); - float svgFontSize = fontSize / scale; - - svgText.setFontSize(svgFontSize); - - // Set text properties... - final String textValue = vmlTextBox.getSPAN().getSPAN(); - svgText.setContent(textValue); - - final String color = textBoxStyle.getColor(); - svgText.setFill(color); - - final String fontWidth = textBoxStyle.getFontWidth(); - svgText.setFontWeight(fontWidth); - - // Positionate font... - final String textSize = vmlTextBox.getXTextSize(); - final String[] split = textSize.split(","); - float textWidth = Float.valueOf(split[0]); - float textHeight = Float.valueOf(split[1]); - - svgText.setX(boxWidth - textWidth); - svgText.setY(boxHeigth - textHeight + CORRECTION_HANDCODE); - - return svgText; - - } - - private com.wisemapping.xml.svgmap.Rect convert(Roundrect vmlRect) { - - /* - * VML: - * - * - * - * - * - * SVG: - * - * - */ - final com.wisemapping.xml.svgmap.Rect svgRect = new com.wisemapping.xml.svgmap.Rect(); - final Style style = Style.parse(vmlRect.getStyle()); - svgRect.setRy(2.7F); - svgRect.setRx(2.7F); - - float width = style.getWidth(); - svgRect.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgRect.setHeight(height); - - String top = style.getTop(); - svgRect.setY(Float.parseFloat(top)); - - String left = style.getLeft(); - svgRect.setX(Float.parseFloat(left)); - - // Fill properties ... - final String fillColor = vmlRect.getFillcolor(); - svgRect.setFill(fillColor); - - // Stroke properties ... - final String strokeColor = vmlRect.getStrokecolor(); - svgRect.setStroke(strokeColor); - svgRect.setStrokeWidth("0.5px"); - - return svgRect; - - } - - private com.wisemapping.xml.svgmap.Polyline convert(Polyline vmlPolyline) { - - /* - * - * - * - * - * - */ - final com.wisemapping.xml.svgmap.Polyline svgPolyline = svgObjectFactory.createPolyline(); - - final String rPoints = vmlPolyline.getXPoints(); - svgPolyline.setPoints(rPoints); - - final String strokeColor = vmlPolyline.getStrokecolor(); - svgPolyline.setStroke(strokeColor); - - // @todo: Take from SVG. - svgPolyline.setFill("none"); - svgPolyline.setStrokeWidth("1px"); - svgPolyline.setStrokeOpacity("1"); - - return svgPolyline; - } - - - public void toXml(OutputStream os) throws JAXBException { - final JAXBContext svgContext = JAXBContext.newInstance("com.wisemapping.xml.svgmap"); - Marshaller m = svgContext.createMarshaller(); - m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); - m.marshal(svgRootElem, os); - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/VmlToSvgConverter.java b/wise-webapp/src/main/java/com/wisemapping/xml/VmlToSvgConverter.java deleted file mode 100644 index 7b75d666..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/VmlToSvgConverter.java +++ /dev/null @@ -1,450 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -package com.wisemapping.xml; - -import com.wisemapping.xml.vmlmap.*; -import com.wisemapping.xml.vmlmap.Polyline; -import com.wisemapping.xml.vmlmap.Line; -import com.wisemapping.xml.vmlmap.Rect; -import com.wisemapping.xml.svgmap.*; -import com.wisemapping.xml.svgmap.ObjectFactory; - -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; -import javax.xml.bind.Marshaller; -import java.io.*; -import java.util.List; - -public class VmlToSvgConverter { - private ObjectFactory svgObjectFactory; - private static final int CORRECTION_HARDCODE = 5; - private Object svgRootElem; - - public VmlToSvgConverter() { - this.svgObjectFactory = new ObjectFactory(); - - } - - public void convert(final Reader vmlDocument) throws JAXBException, IOException { - - final JAXBContext vmlContext = JAXBContext.newInstance("com.wisemapping.xml.vmlmap"); - final Unmarshaller umarshaller = vmlContext.createUnmarshaller(); - final Group rootElem = (Group) umarshaller.unmarshal(vmlDocument); - this.svgRootElem = convert(rootElem); - } - - private Svg convert(Group g) { - final Svg svgElement = svgObjectFactory.createSvg(); - svgElement.setPreserveAspectRatio("none"); - - /* - - - */ - - final String coordorigin = g.getCoordorigin(); - String coordSize = g.getCoordsize(); - svgElement.setViewBox(coordorigin + ", " + coordSize); - - final Style style = Style.parse(g.getStyle()); - float width = style.getWidth(); - svgElement.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgElement.setHeight(String.valueOf(height)); - - // Convert connection lines ... - final List polylines = g.getPolyline(); - final List svgPolylines = svgElement.getPolyline(); - for (Polyline vmlPolyline : polylines) { - final com.wisemapping.xml.svgmap.Polyline svgPolyline = convert(vmlPolyline); - svgPolylines.add(svgPolyline); - } - - final List vmlLines = g.getLine(); - final List svgLines = svgElement.getLine(); - for (Line vmlLine : vmlLines) { - final com.wisemapping.xml.svgmap.Line svgPolyline = convert(vmlLine); - svgLines.add(svgPolyline); - } - - // Convert Topics ... - final List vmlTopics = g.getGroup(); - final List svgTopics = svgElement.getG(); - for (Group topic : vmlTopics) { - G svgTopic = convertTopicGroup(topic); - svgTopics.add(svgTopic); - } - - // Convert connectors ... - g.getOval(); - - return svgElement; - } - - private G convertTopicGroup(final Group vmlTopic) { - /** - * - * - */ - final G svgTopic = new G(); - - final String styleStr = vmlTopic.getStyle(); - final Style style = Style.parse(styleStr); - - String transform = "translate(" + style.getLeft() + ", " + style.getTop() + ") scale(1, 1)"; - svgTopic.setTransform(transform); - - float width = style.getWidth(); - svgTopic.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgTopic.setHeight(String.valueOf(height)); - - svgTopic.setPreserveAspectRatio("none"); - - // Convert InnerShape ... - final List roundrects = vmlTopic.getRoundrect(); - float rectWidth = 0; - float rectHeight = 0; - for (Roundrect vmlRect : roundrects) { - - // Skip outerShape figure... - final Fill vmlFill = vmlRect.getFill(); - if (vmlFill == null || !"0".equals(vmlFill.getOpacity())) { - final com.wisemapping.xml.svgmap.Rect svgRect = convert(vmlRect); - svgTopic.setRect(svgRect); - final Style rectStyle = Style.parse(vmlRect.getStyle()); - - rectWidth = rectStyle.getWidth(); - rectHeight = rectStyle.getHeight(); - } - } - - final List vmlRects = vmlTopic.getRect(); - for (com.wisemapping.xml.vmlmap.Rect vmlRect : vmlRects) { - - // Skip outerShape figure... - final Fill vmlFill = vmlRect.getFill(); - if (vmlFill == null || !"0".equals(vmlFill.getOpacity())) { - final com.wisemapping.xml.svgmap.Rect svgRect = convert(vmlRect); - svgTopic.setRect(svgRect); - final Style rectStyle = Style.parse(vmlRect.getStyle()); - - rectWidth = rectStyle.getWidth(); - rectHeight = rectStyle.getHeight(); - } - } - - final List vmlLines = vmlTopic.getLine(); - for (final Line vmlLine : vmlLines) { - - final String lineStyleStr = vmlLine.getStyle(); - final Style lineStyle = Style.parse(lineStyleStr); - if (lineStyle.isVisible()) { - com.wisemapping.xml.svgmap.Line line = convert(vmlLine); - svgTopic.setLine(line); - } else { - // Shape is line... - final String from = vmlLine.getFrom(); - String[] formPoints = from.split(","); - - final String to = vmlLine.getTo(); - String[] toPoints = to.split(","); - - rectWidth = Float.parseFloat(formPoints[0]) - Float.parseFloat(toPoints[0]); - rectWidth = Math.abs(rectWidth); - - rectHeight = Float.parseFloat(formPoints[1]); - } - } - - // Convert connection ovals.. - final List vmlOvals = vmlTopic.getOval(); - for (Oval vmlOval : vmlOvals) { - - // Skip outerShape figure... - final Ellipse svgElipse = convert(vmlOval); - if (svgElipse != null) { - svgTopic.setEllipse(svgElipse); - } - } - - // Convert Text ... - final List vmlTextShape = vmlTopic.getShape(); - final Text svgText = convertTextShape(vmlTextShape.get(0), rectWidth, rectHeight); - svgTopic.setText(svgText); - - return svgTopic; - } - - private com.wisemapping.xml.svgmap.Rect convert(Rect vmlRect) { - final com.wisemapping.xml.svgmap.Rect svgRect = new com.wisemapping.xml.svgmap.Rect(); - final Style style = Style.parse(vmlRect.getStyle()); - - float width = style.getWidth(); - svgRect.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgRect.setHeight(height); - - String top = style.getTop(); - svgRect.setY(Float.parseFloat(top)); - - String left = style.getLeft(); - svgRect.setX(Float.parseFloat(left)); - - // Fill properties ... - final String fillColor = vmlRect.getFillcolor(); - svgRect.setFill(fillColor); - - // Stroke properties ... - final String strokeColor = vmlRect.getStrokecolor(); - svgRect.setStroke(strokeColor); - svgRect.setStrokeWidth("0.5px"); - return svgRect; - - } - - private Ellipse convert(final Oval vmlOval) { - - /** - * - * - * - * - * - * - * SVG: - * - */ - final Style style = Style.parse(vmlOval.getStyle()); - Ellipse svgElipse = null; - if (style.isVisible()) { - svgElipse = new Ellipse(); - - float width = style.getWidth(); - svgElipse.setWidth(width); - svgElipse.setRx(width / 2); - - float height = style.getHeight(); - svgElipse.setHeight(height); - svgElipse.setRy(height / 2); - - String top = style.getTop(); - svgElipse.setCy(Float.parseFloat(top) + (width / 2)); - - String left = style.getLeft(); - svgElipse.setCx(Float.parseFloat(left) + (height / 2)); - - // Fill properties ... - final String fillColor = vmlOval.getFillcolor(); - svgElipse.setFill(fillColor); - - // Stroke properties ... - final String strokeColor = vmlOval.getStrokecolor(); - svgElipse.setStroke(strokeColor); - svgElipse.setStrokeWidth("0.5px"); - } - return svgElipse; - } - - private com.wisemapping.xml.svgmap.Line convert(final Line vmlLine) { - /** - * VML: - * - * <:stroke dashstyle="solid"> - * - * - * SVG: - * - */ - - com.wisemapping.xml.svgmap.Line svgLine = new com.wisemapping.xml.svgmap.Line(); - final String from = vmlLine.getFrom(); - final String[] fromPoints = from.split(","); - - svgLine.setX1(Float.parseFloat(fromPoints[0])); - svgLine.setY1(Float.parseFloat(fromPoints[1])); - - final String to = vmlLine.getTo(); - final String[] toPoints = to.split(","); - - svgLine.setX2(Float.parseFloat(toPoints[0])); - svgLine.setY2(Float.parseFloat(toPoints[1])); - - String strokeweight = vmlLine.getStrokeweight(); - svgLine.setStrokeWidth(strokeweight); - - String stokeColor = vmlLine.getStrokecolor(); - svgLine.setStroke(stokeColor); - - return svgLine; - } - - private Text convertTextShape(Shape vmlTextShape, float boxWidth, float boxHeigth) { - /** - * - * - * - * Central Topic - * - * - * - * SVG: - * Central Topic - * - */ - final Text svgText = new Text(); - Textbox vmlTextBox = vmlTextShape.getTextbox(); - final String textBoxStyleStr = vmlTextBox.getStyle(); - final Style textBoxStyle = Style.parse(textBoxStyleStr); - - String fontStyle = svgText.getFontStyle(); - svgText.setFontStyle(fontStyle); - - // @todo: Take this hardcode from javascript ... - float fontSize = textBoxStyle.getFontSize(); - float scale = vmlTextBox.getXFontScale(); - float svgFontSize = fontSize / scale; - - svgText.setFontSize(svgFontSize); - - // Set text properties... - final String textValue = vmlTextBox.getSPAN().getSPAN(); - svgText.setContent(textValue); - - final String color = textBoxStyle.getColor(); - svgText.setFill(color); - - final String style = textBoxStyle.getFontWidth(); - svgText.setFontWeight(style); - - // Positionate font... - final String textSize = vmlTextBox.getXTextSize(); - final String[] split = textSize.split(","); - float textWidth = Float.valueOf(split[0]); - float textHeight = Float.valueOf(split[1]); - - svgText.setX(boxWidth - textWidth); - svgText.setY(boxHeigth - textHeight + CORRECTION_HARDCODE); - - return svgText; - - } - - private com.wisemapping.xml.svgmap.Rect convert(Roundrect vmlRect) { - - /* - * VML: - * - * - * - * - * - * SVG: - * - * - */ - final com.wisemapping.xml.svgmap.Rect svgRect = new com.wisemapping.xml.svgmap.Rect(); - final Style style = Style.parse(vmlRect.getStyle()); - svgRect.setRy(2.7F); - svgRect.setRx(2.7F); - - float width = style.getWidth(); - svgRect.setWidth(String.valueOf(width)); - - float height = style.getHeight(); - svgRect.setHeight(height); - - String top = style.getTop(); - svgRect.setY(Float.parseFloat(top)); - - String left = style.getLeft(); - svgRect.setX(Float.parseFloat(left)); - - // Fill properties ... - final String fillColor = vmlRect.getFillcolor(); - svgRect.setFill(fillColor); - - // Stroke properties ... - final String strokeColor = vmlRect.getStrokecolor(); - svgRect.setStroke(strokeColor); - svgRect.setStrokeWidth("0.5px"); - - return svgRect; - - } - - private com.wisemapping.xml.svgmap.Polyline convert(Polyline vmlPolyline) { - - /* - * - * - * - * - * - */ - final com.wisemapping.xml.svgmap.Polyline svgPolyline = svgObjectFactory.createPolyline(); - - final String rPoints = vmlPolyline.getXPoints(); - svgPolyline.setPoints(rPoints); - - final String strokeColor = vmlPolyline.getStrokecolor(); - svgPolyline.setStroke(strokeColor); - - // @todo: Take from SVG. - svgPolyline.setFill("none"); - svgPolyline.setStrokeWidth("1px"); - svgPolyline.setStrokeOpacity("1"); - - return svgPolyline; - } - - - public void toXml(OutputStream os) throws JAXBException { - final JAXBContext svgContext = JAXBContext.newInstance("com.wisemapping.xml.svgmap"); - Marshaller m = svgContext.createMarshaller(); - m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); - m.marshal(svgRootElem, os); - } - - public void toXml(Writer os) throws JAXBException { - final JAXBContext svgContext = JAXBContext.newInstance("com.wisemapping.xml.svgmap"); - Marshaller m = svgContext.createMarshaller(); - m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); - m.marshal(svgRootElem, os); - } - -} 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 deleted file mode 100644 index 81e68519..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Arrowlink.java +++ /dev/null @@ -1,229 +0,0 @@ -// -// 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.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 deleted file mode 100644 index 232f52aa..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Cloud.java +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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.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 deleted file mode 100644 index e1ba66fd..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Edge.java +++ /dev/null @@ -1,121 +0,0 @@ -// -// 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.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 deleted file mode 100644 index 059950b4..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Font.java +++ /dev/null @@ -1,162 +0,0 @@ -// -// 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.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 deleted file mode 100644 index fdca9e18..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Hook.java +++ /dev/null @@ -1,126 +0,0 @@ -// -// 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="{}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 deleted file mode 100644 index 0e0e2140..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Html.java +++ /dev/null @@ -1,79 +0,0 @@ -// -// 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 deleted file mode 100644 index fed3fcae..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Icon.java +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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.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 deleted file mode 100644 index 0f9657e7..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Map.java +++ /dev/null @@ -1,99 +0,0 @@ -// -// 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="{}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 deleted file mode 100644 index e2daf0c8..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Node.java +++ /dev/null @@ -1,466 +0,0 @@ -// -// 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.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; - - // Wise Extensions - @XmlAttribute(name = "wCOORDS") - protected String wcoords; - @XmlAttribute(name = "wORDER") - protected BigInteger worder; - - /** - * 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; - } - - public BigInteger getWorder() { - return worder; - } - - public void setWorder(BigInteger worder) { - this.worder = worder; - } - - /** - * 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; - } - - public String getWcoords() { - return wcoords; - } - - public void setWcoords(String wcoords) { - this.wcoords = wcoords; - } - - /** - * 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 deleted file mode 100644 index 0273f823..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/ObjectFactory.java +++ /dev/null @@ -1,140 +0,0 @@ -// -// 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.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 deleted file mode 100644 index 1343aa61..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Parameters.java +++ /dev/null @@ -1,68 +0,0 @@ -// -// 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.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 deleted file mode 100644 index b93e6f1e..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind/Richcontent.java +++ /dev/null @@ -1,106 +0,0 @@ -// -// 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/mindmap.xsd b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap.xsd deleted file mode 100755 index 8fb70df6..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap.xsd +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Icon.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Icon.java deleted file mode 100644 index bc53f2d3..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Icon.java +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for icon complex type. - * - *

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

- * <complexType name="icon">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="order" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "icon") -public class Icon { - - @XmlAttribute - protected String id; - @XmlAttribute - protected String order; - - /** - * 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 order property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOrder() { - return order; - } - - /** - * Sets the value of the order property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOrder(String value) { - this.order = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Link.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Link.java deleted file mode 100644 index 9c21d363..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Link.java +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for link complex type. - * - *

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

- * <complexType name="link">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="order" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "link") -public class Link { - - @XmlAttribute - protected String url; - @XmlAttribute - protected String order; - - /** - * Gets the value of the url property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Sets the value of the url property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - /** - * Gets the value of the order property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOrder() { - return order; - } - - /** - * Sets the value of the order property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOrder(String value) { - this.order = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Map.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Map.java deleted file mode 100644 index dd5389ec..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Map.java +++ /dev/null @@ -1,165 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -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; - - -/** - *

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="{}topic" maxOccurs="unbounded"/>
- *         <element ref="{}relationship" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "topic", - "relationship" -}) -@XmlRootElement(name = "map") -public class Map { - - @XmlElement(required = true) - protected List topic; - protected List relationship; - @XmlAttribute - protected String name; - @XmlAttribute - protected String version; - - /** - * Gets the value of the topic 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 topic property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TopicType } - * - * - */ - public List getTopic() { - if (topic == null) { - topic = new ArrayList(); - } - return this.topic; - } - - /** - * Gets the value of the relationship 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 relationship property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RelationshipType } - * - * - */ - public List getRelationship() { - if (relationship == null) { - relationship = new ArrayList(); - } - return this.relationship; - } - - /** - * 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 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/mindmap/Note.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Note.java deleted file mode 100644 index d141a706..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/Note.java +++ /dev/null @@ -1,65 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for note complex type. - * - *

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

- * <complexType name="note">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "note") -public class Note { - - @XmlAttribute - protected String text; - - /** - * 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; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/ObjectFactory.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/ObjectFactory.java deleted file mode 100644 index 483b9e71..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/ObjectFactory.java +++ /dev/null @@ -1,110 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -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.mindmap 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 _Topic_QNAME = new QName("", "topic"); - private final static QName _Relationship_QNAME = new QName("", "relationship"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.wisemapping.xml.mindmap - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link Note } - * - */ - public Note createNote() { - return new Note(); - } - - /** - * Create an instance of {@link Icon } - * - */ - public Icon createIcon() { - return new Icon(); - } - - /** - * Create an instance of {@link TopicType } - * - */ - public TopicType createTopicType() { - return new TopicType(); - } - - /** - * Create an instance of {@link Map } - * - */ - public Map createMap() { - return new Map(); - } - - /** - * Create an instance of {@link RelationshipType } - * - */ - public RelationshipType createRelationshipType() { - return new RelationshipType(); - } - - /** - * Create an instance of {@link Link } - * - */ - public Link createLink() { - return new Link(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TopicType }{@code >}} - * - */ - @XmlElementDecl(namespace = "", name = "topic") - public JAXBElement createTopic(TopicType value) { - return new JAXBElement(_Topic_QNAME, TopicType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link RelationshipType }{@code >}} - * - */ - @XmlElementDecl(namespace = "", name = "relationship") - public JAXBElement createRelationship(RelationshipType value) { - return new JAXBElement(_Relationship_QNAME, RelationshipType.class, null, value); - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/RelationshipType.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/RelationshipType.java deleted file mode 100644 index 88c0d1a2..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/RelationshipType.java +++ /dev/null @@ -1,254 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for relationshipType complex type. - * - *

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

- * <complexType name="relationshipType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="srcTopicId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="destTopicId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="lineType" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="srcCtrlPoint" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="destCtrlPoint" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="endArrow" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="startArrow" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "relationshipType") -public class RelationshipType { - - @XmlAttribute - protected String id; - @XmlAttribute - protected String srcTopicId; - @XmlAttribute - protected String destTopicId; - @XmlAttribute - protected String lineType; - @XmlAttribute - protected String srcCtrlPoint; - @XmlAttribute - protected String destCtrlPoint; - @XmlAttribute - protected Boolean endArrow; - @XmlAttribute - protected Boolean startArrow; - - /** - * 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 srcTopicId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSrcTopicId() { - return srcTopicId; - } - - /** - * Sets the value of the srcTopicId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSrcTopicId(String value) { - this.srcTopicId = value; - } - - /** - * Gets the value of the destTopicId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDestTopicId() { - return destTopicId; - } - - /** - * Sets the value of the destTopicId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDestTopicId(String value) { - this.destTopicId = value; - } - - /** - * Gets the value of the lineType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLineType() { - return lineType; - } - - /** - * Sets the value of the lineType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLineType(String value) { - this.lineType = value; - } - - /** - * Gets the value of the srcCtrlPoint property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSrcCtrlPoint() { - return srcCtrlPoint; - } - - /** - * Sets the value of the srcCtrlPoint property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSrcCtrlPoint(String value) { - this.srcCtrlPoint = value; - } - - /** - * Gets the value of the destCtrlPoint property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDestCtrlPoint() { - return destCtrlPoint; - } - - /** - * Sets the value of the destCtrlPoint property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDestCtrlPoint(String value) { - this.destCtrlPoint = value; - } - - /** - * Gets the value of the endArrow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isEndArrow() { - return endArrow; - } - - /** - * Sets the value of the endArrow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEndArrow(Boolean value) { - this.endArrow = value; - } - - /** - * Gets the value of the startArrow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isStartArrow() { - return startArrow; - } - - /** - * Sets the value of the startArrow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setStartArrow(Boolean value) { - this.startArrow = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/TopicType.java b/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/TopicType.java deleted file mode 100644 index 62b38bbc..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/mindmap/TopicType.java +++ /dev/null @@ -1,431 +0,0 @@ -// -// 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.16 at 11:06:29 AM ART -// - - -package com.wisemapping.xml.mindmap; - -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.XmlType; - - -/** - *

Java class for topicType complex type. - * - *

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

- * <complexType name="topicType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="icon" type="{}icon" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="link" type="{}link" minOccurs="0"/>
- *         <element name="note" type="{}note" minOccurs="0"/>
- *         <element ref="{}topic" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="shape" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="fontStyle" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="bgColor" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="brColor" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="order" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="position" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="central" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="shrink" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "topicType", propOrder = { - "icon", - "link", - "note", - "topic" -}) -public class TopicType { - - protected List icon; - protected Link link; - protected Note note; - protected List topic; - @XmlAttribute - protected String text; - @XmlAttribute - protected String shape; - @XmlAttribute - protected String fontStyle; - @XmlAttribute - protected String bgColor; - @XmlAttribute - protected String brColor; - @XmlAttribute - protected Integer order; - @XmlAttribute - protected String position; - @XmlAttribute - protected Boolean central; - @XmlAttribute - protected String id; - @XmlAttribute - protected Boolean shrink; - - /** - * Gets the value of the icon 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 icon property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Icon } - * - * - */ - public List getIcon() { - if (icon == null) { - icon = new ArrayList(); - } - return this.icon; - } - - /** - * Gets the value of the link property. - * - * @return - * possible object is - * {@link Link } - * - */ - public Link getLink() { - return link; - } - - /** - * Sets the value of the link property. - * - * @param value - * allowed object is - * {@link Link } - * - */ - public void setLink(Link value) { - this.link = value; - } - - /** - * Gets the value of the note property. - * - * @return - * possible object is - * {@link Note } - * - */ - public Note getNote() { - return note; - } - - /** - * Sets the value of the note property. - * - * @param value - * allowed object is - * {@link Note } - * - */ - public void setNote(Note value) { - this.note = value; - } - - /** - * Gets the value of the topic 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 topic property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TopicType } - * - * - */ - public List getTopic() { - if (topic == null) { - topic = new ArrayList(); - } - return this.topic; - } - - /** - * 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 shape property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getShape() { - return shape; - } - - /** - * Sets the value of the shape property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setShape(String value) { - this.shape = value; - } - - /** - * Gets the value of the fontStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFontStyle() { - return fontStyle; - } - - /** - * Sets the value of the fontStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFontStyle(String value) { - this.fontStyle = value; - } - - /** - * Gets the value of the bgColor property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBgColor() { - return bgColor; - } - - /** - * Sets the value of the bgColor property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBgColor(String value) { - this.bgColor = value; - } - - /** - * Gets the value of the brColor property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBrColor() { - return brColor; - } - - /** - * Sets the value of the brColor property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBrColor(String value) { - this.brColor = value; - } - - /** - * Gets the value of the order property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getOrder() { - return order; - } - - /** - * Sets the value of the order property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setOrder(Integer value) { - this.order = 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 central property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isCentral() { - return central; - } - - /** - * Sets the value of the central property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCentral(Boolean value) { - this.central = 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 shrink property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShrink() { - return shrink; - } - - /** - * Sets the value of the shrink property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShrink(Boolean value) { - this.shrink = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Ellipse.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Ellipse.java deleted file mode 100644 index d115f2c6..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Ellipse.java +++ /dev/null @@ -1,269 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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.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">
- *       <attribute name="cx" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="cy" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="fill" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="#E0E5EF" />
- *       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="rx" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="ry" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="stroke" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="#023BB9" />
- *       <attribute name="stroke-width" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="visibility" use="required">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- *             <enumeration value="hidden"/>
- *             <enumeration value="visible"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "ellipse") -public class Ellipse { - - @XmlAttribute(required = true) - protected float cx; - @XmlAttribute(required = true) - protected float cy; - @XmlAttribute(required = true) - protected String fill; - @XmlAttribute(required = true) - protected float height; - @XmlAttribute(required = true) - protected float rx; - @XmlAttribute(required = true) - protected float ry; - @XmlAttribute(required = true) - protected String stroke; - @XmlAttribute(name = "stroke-width", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String strokeWidth; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String visibility; - @XmlAttribute(required = true) - protected float width; - - /** - * Gets the value of the cx property. - */ - public float getCx() { - return cx; - } - - /** - * Sets the value of the cx property. - */ - public void setCx(float value) { - this.cx = value; - } - - /** - * Gets the value of the cy property. - */ - public float getCy() { - return cy; - } - - /** - * Sets the value of the cy property. - */ - public void setCy(float value) { - this.cy = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link String } - */ - public String getFill() { - if (fill == null) { - return "#E0E5EF"; - } else { - return fill; - } - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link String } - */ - public void setFill(String value) { - this.fill = value; - } - - /** - * Gets the value of the height property. - */ - public float getHeight() { - return height; - } - - /** - * Sets the value of the height property. - */ - public void setHeight(float value) { - this.height = value; - } - - /** - * Gets the value of the rx property. - */ - public float getRx() { - return rx; - } - - /** - * Sets the value of the rx property. - */ - public void setRx(float value) { - this.rx = value; - } - - /** - * Gets the value of the ry property. - */ - public float getRy() { - return ry; - } - - /** - * Sets the value of the ry property. - */ - public void setRy(float value) { - this.ry = value; - } - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link String } - */ - public String getStroke() { - if (stroke == null) { - return "#023BB9"; - } else { - return stroke; - } - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroke(String value) { - this.stroke = value; - } - - /** - * Gets the value of the strokeWidth property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeWidth() { - return strokeWidth; - } - - /** - * Sets the value of the strokeWidth property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeWidth(String value) { - this.strokeWidth = value; - } - - /** - * Gets the value of the visibility property. - * - * @return possible object is - * {@link String } - */ - public String getVisibility() { - return visibility; - } - - /** - * Sets the value of the visibility property. - * - * @param value allowed object is - * {@link String } - */ - public void setVisibility(String value) { - this.visibility = value; - } - - /** - * Gets the value of the width property. - */ - public float getWidth() { - return width; - } - - /** - * Sets the value of the width property. - */ - public void setWidth(float value) { - this.width = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/G.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/G.java deleted file mode 100644 index b4cc8094..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/G.java +++ /dev/null @@ -1,288 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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.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>
- *         <element ref="{http://www.w3.org/2000/svg}ellipse"/>
- *         <element ref="{http://www.w3.org/2000/svg}line"/>
- *         <element ref="{http://www.w3.org/2000/svg}rect"/>
- *         <element ref="{http://www.w3.org/2000/svg}text"/>
- *       </choice>
- *       <attribute name="focusable" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="true" />
- *       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="100" />
- *       <attribute name="preserveAspectRatio" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="none" />
- *       <attribute name="transform" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="100" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "ellipse", - "line", - "rect", - "text" - }) -@XmlRootElement(name = "g") -public class G { - - protected Ellipse ellipse; - protected Line line; - protected Rect rect; - protected Text text; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String focusable; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String height; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String preserveAspectRatio; - @XmlAttribute(required = true) - protected String transform; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String width; - - /** - * Gets the value of the ellipse property. - * - * @return possible object is - * {@link Ellipse } - */ - public Ellipse getEllipse() { - return ellipse; - } - - /** - * Sets the value of the ellipse property. - * - * @param value allowed object is - * {@link Ellipse } - */ - public void setEllipse(Ellipse value) { - this.ellipse = value; - } - - /** - * Gets the value of the line property. - * - * @return possible object is - * {@link Line } - */ - public Line getLine() { - return line; - } - - /** - * Sets the value of the line property. - * - * @param value allowed object is - * {@link Line } - */ - public void setLine(Line value) { - this.line = value; - } - - /** - * Gets the value of the rect property. - * - * @return possible object is - * {@link Rect } - */ - public Rect getRect() { - return rect; - } - - /** - * Sets the value of the rect property. - * - * @param value allowed object is - * {@link Rect } - */ - public void setRect(Rect value) { - this.rect = value; - } - - /** - * Gets the value of the text property. - * - * @return possible object is - * {@link Text } - */ - public Text getText() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value allowed object is - * {@link Text } - */ - public void setText(Text value) { - this.text = value; - } - - /** - * Gets the value of the focusable property. - * - * @return possible object is - * {@link String } - */ - public String getFocusable() { - if (focusable == null) { - return "true"; - } else { - return focusable; - } - } - - /** - * Sets the value of the focusable property. - * - * @param value allowed object is - * {@link String } - */ - public void setFocusable(String value) { - this.focusable = value; - } - - /** - * Gets the value of the height property. - * - * @return possible object is - * {@link String } - */ - public String getHeight() { - if (height == null) { - return "100"; - } else { - return height; - } - } - - /** - * Sets the value of the height property. - * - * @param value allowed object is - * {@link String } - */ - public void setHeight(String value) { - this.height = value; - } - - /** - * Gets the value of the preserveAspectRatio property. - * - * @return possible object is - * {@link String } - */ - public String getPreserveAspectRatio() { - if (preserveAspectRatio == null) { - return "none"; - } else { - return preserveAspectRatio; - } - } - - /** - * Sets the value of the preserveAspectRatio property. - * - * @param value allowed object is - * {@link String } - */ - public void setPreserveAspectRatio(String value) { - this.preserveAspectRatio = value; - } - - /** - * Gets the value of the transform property. - * - * @return possible object is - * {@link String } - */ - public String getTransform() { - return transform; - } - - /** - * Sets the value of the transform property. - * - * @param value allowed object is - * {@link String } - */ - public void setTransform(String value) { - this.transform = value; - } - - /** - * Gets the value of the width property. - * - * @return possible object is - * {@link String } - */ - public String getWidth() { - if (width == null) { - return "100"; - } else { - 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/svgmap/Line.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Line.java deleted file mode 100644 index 321370d8..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Line.java +++ /dev/null @@ -1,278 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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.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">
- *       <attribute name="fill-opacity" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="stroke" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="stroke-opacity" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="stroke-width" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="1px" />
- *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="visibility">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- *             <enumeration value="hidden"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="x1" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="x2" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="y1" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="y2" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "line") -public class Line { - - @XmlAttribute(name = "fill-opacity") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String fillOpacity; - @XmlAttribute(required = true) - protected String stroke; - @XmlAttribute(name = "stroke-opacity") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String strokeOpacity; - @XmlAttribute(name = "stroke-width", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String strokeWidth; - @XmlAttribute - protected String style; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String visibility; - @XmlAttribute(required = true) - protected float x1; - @XmlAttribute(required = true) - protected float x2; - @XmlAttribute(required = true) - protected float y1; - @XmlAttribute(required = true) - protected float y2; - - /** - * Gets the value of the fillOpacity property. - * - * @return possible object is - * {@link String } - */ - public String getFillOpacity() { - return fillOpacity; - } - - /** - * Sets the value of the fillOpacity property. - * - * @param value allowed object is - * {@link String } - */ - public void setFillOpacity(String value) { - this.fillOpacity = value; - } - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link String } - */ - public String getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroke(String value) { - this.stroke = value; - } - - /** - * Gets the value of the strokeOpacity property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeOpacity() { - return strokeOpacity; - } - - /** - * Sets the value of the strokeOpacity property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeOpacity(String value) { - this.strokeOpacity = value; - } - - /** - * Gets the value of the strokeWidth property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeWidth() { - if (strokeWidth == null) { - return "1px"; - } else { - return strokeWidth; - } - } - - /** - * Sets the value of the strokeWidth property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeWidth(String value) { - this.strokeWidth = 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 visibility property. - * - * @return possible object is - * {@link String } - */ - public String getVisibility() { - return visibility; - } - - /** - * Sets the value of the visibility property. - * - * @param value allowed object is - * {@link String } - */ - public void setVisibility(String value) { - this.visibility = value; - } - - /** - * Gets the value of the x1 property. - */ - public float getX1() { - return x1; - } - - /** - * Sets the value of the x1 property. - */ - public void setX1(float value) { - this.x1 = value; - } - - /** - * Gets the value of the x2 property. - */ - public float getX2() { - return x2; - } - - /** - * Sets the value of the x2 property. - */ - public void setX2(float value) { - this.x2 = value; - } - - /** - * Gets the value of the y1 property. - */ - public float getY1() { - return y1; - } - - /** - * Sets the value of the y1 property. - */ - public void setY1(float value) { - this.y1 = value; - } - - /** - * Gets the value of the y2 property. - */ - public float getY2() { - return y2; - } - - /** - * Sets the value of the y2 property. - */ - public void setY2(float value) { - this.y2 = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/ObjectFactory.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/ObjectFactory.java deleted file mode 100644 index 36bedcb8..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/ObjectFactory.java +++ /dev/null @@ -1,104 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the com.mindmap.xml.svgmap 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 { - - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.mindmap.xml.svgmap - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link Rect } - */ - public Rect createRect() { - return new Rect(); - } - - /** - * Create an instance of {@link Svg } - */ - public Svg createSvg() { - return new Svg(); - } - - /** - * Create an instance of {@link Text } - */ - public Text createText() { - return new Text(); - } - - /** - * Create an instance of {@link Ellipse } - */ - public Ellipse createEllipse() { - return new Ellipse(); - } - - /** - * Create an instance of {@link Line } - */ - public Line createLine() { - return new Line(); - } - - /** - * Create an instance of {@link Polyline } - */ - public Polyline createPolyline() { - return new Polyline(); - } - - /** - * Create an instance of {@link G } - */ - public G createG() { - return new G(); - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Polyline.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Polyline.java deleted file mode 100644 index 0b17955d..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Polyline.java +++ /dev/null @@ -1,239 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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.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">
- *       <attribute name="fill" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="none" />
- *       <attribute name="fill-opacity" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="points" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="stroke" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="stroke-opacity" use="required">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- *             <enumeration value="0.4"/>
- *             <enumeration value="1"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="stroke-width" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="1px" />
- *       <attribute name="visibility" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "polyline") -public class Polyline { - - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String fill; - @XmlAttribute(name = "fill-opacity") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String fillOpacity; - @XmlAttribute - protected String points; - @XmlAttribute(required = true) - protected String stroke; - @XmlAttribute(name = "stroke-opacity", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String strokeOpacity; - @XmlAttribute(name = "stroke-width", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String strokeWidth; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String visibility; - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link String } - */ - public String getFill() { - if (fill == null) { - return "none"; - } else { - return fill; - } - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link String } - */ - public void setFill(String value) { - this.fill = value; - } - - /** - * Gets the value of the fillOpacity property. - * - * @return possible object is - * {@link String } - */ - public String getFillOpacity() { - return fillOpacity; - } - - /** - * Sets the value of the fillOpacity property. - * - * @param value allowed object is - * {@link String } - */ - public void setFillOpacity(String value) { - this.fillOpacity = value; - } - - /** - * Gets the value of the points property. - * - * @return possible object is - * {@link String } - */ - public String getPoints() { - return points; - } - - /** - * Sets the value of the points property. - * - * @param value allowed object is - * {@link String } - */ - public void setPoints(String value) { - this.points = value; - } - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link String } - */ - public String getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroke(String value) { - this.stroke = value; - } - - /** - * Gets the value of the strokeOpacity property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeOpacity() { - return strokeOpacity; - } - - /** - * Sets the value of the strokeOpacity property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeOpacity(String value) { - this.strokeOpacity = value; - } - - /** - * Gets the value of the strokeWidth property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeWidth() { - if (strokeWidth == null) { - return "1px"; - } else { - return strokeWidth; - } - } - - /** - * Sets the value of the strokeWidth property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeWidth(String value) { - this.strokeWidth = value; - } - - /** - * Gets the value of the visibility property. - * - * @return possible object is - * {@link String } - */ - public String getVisibility() { - return visibility; - } - - /** - * Sets the value of the visibility property. - * - * @param value allowed object is - * {@link String } - */ - public void setVisibility(String value) { - this.visibility = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Rect.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Rect.java deleted file mode 100644 index e18bc5c8..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Rect.java +++ /dev/null @@ -1,341 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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.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">
- *       <attribute name="fill" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="fill-opacity" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="rx" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="ry" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="stroke" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="stroke-opacity" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="stroke-width" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="visibility" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="y" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "rect") -public class Rect { - - @XmlAttribute(required = true) - protected String fill; - @XmlAttribute(name = "fill-opacity") - protected Float fillOpacity; - @XmlAttribute(required = true) - protected float height; - @XmlAttribute - protected Float rx; - @XmlAttribute - protected Float ry; - @XmlAttribute(required = true) - protected String stroke; - @XmlAttribute(name = "stroke-opacity") - protected Float strokeOpacity; - @XmlAttribute(name = "stroke-width", required = true) - protected String strokeWidth; - @XmlAttribute - protected String style; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String visibility; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String width; - @XmlAttribute(required = true) - protected float x; - @XmlAttribute(required = true) - protected float y; - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link String } - */ - public String getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link String } - */ - public void setFill(String value) { - this.fill = value; - } - - /** - * Gets the value of the fillOpacity property. - * - * @return possible object is - * {@link Float } - */ - public Float getFillOpacity() { - return fillOpacity; - } - - /** - * Sets the value of the fillOpacity property. - * - * @param value allowed object is - * {@link Float } - */ - public void setFillOpacity(Float value) { - this.fillOpacity = value; - } - - /** - * Gets the value of the height property. - */ - public float getHeight() { - return height; - } - - /** - * Sets the value of the height property. - */ - public void setHeight(float value) { - this.height = value; - } - - /** - * Gets the value of the rx property. - * - * @return possible object is - * {@link Float } - */ - public Float getRx() { - return rx; - } - - /** - * Sets the value of the rx property. - * - * @param value allowed object is - * {@link Float } - */ - public void setRx(Float value) { - this.rx = value; - } - - /** - * Gets the value of the ry property. - * - * @return possible object is - * {@link Float } - */ - public Float getRy() { - return ry; - } - - /** - * Sets the value of the ry property. - * - * @param value allowed object is - * {@link Float } - */ - public void setRy(Float value) { - this.ry = value; - } - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link String } - */ - public String getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroke(String value) { - this.stroke = value; - } - - /** - * Gets the value of the strokeOpacity property. - * - * @return possible object is - * {@link Float } - */ - public Float getStrokeOpacity() { - return strokeOpacity; - } - - /** - * Sets the value of the strokeOpacity property. - * - * @param value allowed object is - * {@link Float } - */ - public void setStrokeOpacity(Float value) { - this.strokeOpacity = value; - } - - /** - * Gets the value of the strokeWidth property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeWidth() { - return strokeWidth; - } - - /** - * Sets the value of the strokeWidth property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeWidth(String value) { - this.strokeWidth = 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 visibility property. - * - * @return possible object is - * {@link String } - */ - public String getVisibility() { - return visibility; - } - - /** - * Sets the value of the visibility property. - * - * @param value allowed object is - * {@link String } - */ - public void setVisibility(String value) { - this.visibility = 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; - } - - /** - * Gets the value of the x property. - */ - public float getX() { - return x; - } - - /** - * Sets the value of the x property. - */ - public void setX(float value) { - this.x = value; - } - - /** - * Gets the value of the y property. - */ - public float getY() { - return y; - } - - /** - * Sets the value of the y property. - */ - public void setY(float value) { - this.y = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Svg.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Svg.java deleted file mode 100644 index f29330b9..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Svg.java +++ /dev/null @@ -1,331 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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; -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">
- *       <sequence>
- *         <element ref="{http://www.w3.org/2000/svg}polyline" maxOccurs="unbounded"/>
- *         <element ref="{http://www.w3.org/2000/svg}line" maxOccurs="unbounded"/>
- *         <element ref="{http://www.w3.org/2000/svg}g" maxOccurs="unbounded"/>
- *         <element ref="{http://www.w3.org/2000/svg}rect" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="focusable" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="preserveAspectRatio" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *       <attribute name="viewBox" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "polyline", - "line", - "g", - "rect" - }) -@XmlRootElement(name = "svg") -public class Svg { - - @XmlElement(required = true) - protected List polyline; - @XmlElement(required = true) - protected List line; - @XmlElement(required = true) - protected List g; - @XmlElement(required = true) - protected List rect; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String focusable; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String height; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String id; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String preserveAspectRatio; - @XmlAttribute(required = true) - protected String viewBox; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String width; - - /** - * Gets the value of the polyline 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 polyline property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Polyline } - */ - public List getPolyline() { - if (polyline == null) { - polyline = new ArrayList(); - } - return this.polyline; - } - - /** - * Gets the value of the line 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 line property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Line } - */ - public List getLine() { - if (line == null) { - line = new ArrayList(); - } - return this.line; - } - - /** - * Gets the value of the g 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 g property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link G } - */ - public List getG() { - if (g == null) { - g = new ArrayList(); - } - return this.g; - } - - /** - * Gets the value of the rect 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 rect property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Rect } - */ - public List getRect() { - if (rect == null) { - rect = new ArrayList(); - } - return this.rect; - } - - /** - * Gets the value of the focusable property. - * - * @return possible object is - * {@link String } - */ - public String getFocusable() { - return focusable; - } - - /** - * Sets the value of the focusable property. - * - * @param value allowed object is - * {@link String } - */ - public void setFocusable(String value) { - this.focusable = value; - } - - /** - * Gets the value of the height property. - * - * @return possible object is - * {@link String } - */ - public String getHeight() { - return height; - } - - /** - * Sets the value of the height property. - * - * @param value allowed object is - * {@link String } - */ - public void setHeight(String value) { - this.height = 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 preserveAspectRatio property. - * - * @return possible object is - * {@link String } - */ - public String getPreserveAspectRatio() { - return preserveAspectRatio; - } - - /** - * Sets the value of the preserveAspectRatio property. - * - * @param value allowed object is - * {@link String } - */ - public void setPreserveAspectRatio(String value) { - this.preserveAspectRatio = value; - } - - /** - * Gets the value of the viewBox property. - * - * @return possible object is - * {@link String } - */ - public String getViewBox() { - return viewBox; - } - - /** - * Sets the value of the viewBox property. - * - * @param value allowed object is - * {@link String } - */ - public void setViewBox(String value) { - this.viewBox = 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/svgmap/Text.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Text.java deleted file mode 100644 index b538eef6..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/Text.java +++ /dev/null @@ -1,298 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - - -package com.wisemapping.xml.svgmap; - -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; -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">
- *       <attribute name="fill" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="focusable" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="true" />
- *       <attribute name="font-family" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="verdana" />
- *       <attribute name="font-size" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="font-style" use="required">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- *             <enumeration value="italic"/>
- *             <enumeration value="normal"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="font-weight" use="required">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- *             <enumeration value="bold"/>
- *             <enumeration value="normal"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *       <attribute name="style" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="y" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "content" - }) -@XmlRootElement(name = "text") -public class Text { - - @XmlValue - protected String content; - @XmlAttribute(required = true) - protected String fill; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String focusable; - @XmlAttribute(name = "font-family", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String fontFamily; - @XmlAttribute(name = "font-size", required = true) - protected float fontSize; - @XmlAttribute(name = "font-style", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String fontStyle; - @XmlAttribute(name = "font-weight", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String fontWeight; - @XmlAttribute(required = true) - protected String style; - @XmlAttribute(required = true) - protected float x; - @XmlAttribute(required = true) - protected float y; - - /** - * Gets the value of the content property. - * - * @return possible object is - * {@link String } - */ - public String getContent() { - return content; - } - - /** - * Sets the value of the content property. - * - * @param value allowed object is - * {@link String } - */ - public void setContent(String value) { - this.content = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link String } - */ - public String getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link String } - */ - public void setFill(String value) { - this.fill = value; - } - - /** - * Gets the value of the focusable property. - * - * @return possible object is - * {@link String } - */ - public String getFocusable() { - if (focusable == null) { - return "true"; - } else { - return focusable; - } - } - - /** - * Sets the value of the focusable property. - * - * @param value allowed object is - * {@link String } - */ - public void setFocusable(String value) { - this.focusable = value; - } - - /** - * Gets the value of the fontFamily property. - * - * @return possible object is - * {@link String } - */ - public String getFontFamily() { - if (fontFamily == null) { - return "verdana"; - } else { - return fontFamily; - } - } - - /** - * Sets the value of the fontFamily property. - * - * @param value allowed object is - * {@link String } - */ - public void setFontFamily(String value) { - this.fontFamily = value; - } - - /** - * Gets the value of the fontSize property. - */ - public float getFontSize() { - return fontSize; - } - - /** - * Sets the value of the fontSize property. - */ - public void setFontSize(float value) { - this.fontSize = value; - } - - /** - * Gets the value of the fontStyle property. - * - * @return possible object is - * {@link String } - */ - public String getFontStyle() { - return fontStyle; - } - - /** - * Sets the value of the fontStyle property. - * - * @param value allowed object is - * {@link String } - */ - public void setFontStyle(String value) { - this.fontStyle = value; - } - - /** - * Gets the value of the fontWeight property. - * - * @return possible object is - * {@link String } - */ - public String getFontWeight() { - return fontWeight; - } - - /** - * Sets the value of the fontWeight property. - * - * @param value allowed object is - * {@link String } - */ - public void setFontWeight(String value) { - this.fontWeight = 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 x property. - */ - public float getX() { - return x; - } - - /** - * Sets the value of the x property. - */ - public void setX(float value) { - this.x = value; - } - - /** - * Gets the value of the y property. - */ - public float getY() { - return y; - } - - /** - * Sets the value of the y property. - */ - public void setY(float value) { - this.y = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/package-info.java b/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/package-info.java deleted file mode 100644 index b59f5d9e..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/svgmap/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:27:07 PM ART -// - -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2000/svg", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.wisemapping.xml.svgmap; diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Element.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Element.java deleted file mode 100644 index 7104dc30..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Element.java +++ /dev/null @@ -1,169 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for element complex type. - *

- *

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

- *

- * <complexType name="element">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="fillcolor" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="opacity" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="strokecolor" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="strokeweight" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "element") -public class Element { - - @XmlAttribute - protected String fillcolor; - @XmlAttribute - protected String opacity; - @XmlAttribute(required = true) - protected String strokecolor; - @XmlAttribute - protected String strokeweight; - @XmlAttribute - protected String style; - - /** - * Gets the value of the fillcolor property. - * - * @return possible object is - * {@link String } - */ - public String getFillcolor() { - return fillcolor; - } - - /** - * Sets the value of the fillcolor property. - * - * @param value allowed object is - * {@link String } - */ - public void setFillcolor(String value) { - this.fillcolor = value; - } - - /** - * Gets the value of the opacity property. - * - * @return possible object is - * {@link String } - */ - public String getOpacity() { - return opacity; - } - - /** - * Sets the value of the opacity property. - * - * @param value allowed object is - * {@link String } - */ - public void setOpacity(String value) { - this.opacity = value; - } - - /** - * Gets the value of the strokecolor property. - * - * @return possible object is - * {@link String } - */ - public String getStrokecolor() { - return strokecolor; - } - - /** - * Sets the value of the strokecolor property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokecolor(String value) { - this.strokecolor = value; - } - - /** - * Gets the value of the strokeweight property. - * - * @return possible object is - * {@link String } - */ - public String getStrokeweight() { - return strokeweight; - } - - /** - * Sets the value of the strokeweight property. - * - * @param value allowed object is - * {@link String } - */ - public void setStrokeweight(String value) { - this.strokeweight = 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; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Fill.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Fill.java deleted file mode 100644 index f5b9e08c..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Fill.java +++ /dev/null @@ -1,79 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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="opacity" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "fill") -public class Fill { - - @XmlAttribute - protected String opacity; - - /** - * Gets the value of the opacity property. - * - * @return possible object is - * {@link String } - */ - public String getOpacity() { - return opacity; - } - - /** - * Sets the value of the opacity property. - * - * @param value allowed object is - * {@link String } - */ - public void setOpacity(String value) { - this.opacity = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Group.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Group.java deleted file mode 100644 index 276bb541..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Group.java +++ /dev/null @@ -1,318 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <choice>
- *         <element ref="{http://mindmap.com/xml/vmlmap}group" maxOccurs="unbounded"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}line" maxOccurs="unbounded"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}oval" maxOccurs="unbounded"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}polyline" maxOccurs="unbounded"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}rect" maxOccurs="unbounded"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}roundrect" maxOccurs="unbounded"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}shape" maxOccurs="unbounded"/>
- *       </choice>
- *       <attribute name="coordorigin" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="coordsize" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "group", - "line", - "oval", - "polyline", - "rect", - "roundrect", - "shape" - }) -@XmlRootElement(name = "group") -public class Group - extends Element { - - protected List group; - protected List line; - protected List oval; - protected List polyline; - protected List rect; - protected List roundrect; - protected List shape; - @XmlAttribute - protected String coordorigin; - @XmlAttribute(required = true) - protected String coordsize; - - /** - * Gets the value of the group 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 group property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Group } - */ - public List getGroup() { - if (group == null) { - group = new ArrayList(); - } - return this.group; - } - - /** - * Gets the value of the line 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 line property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Line } - */ - public List getLine() { - if (line == null) { - line = new ArrayList(); - } - return this.line; - } - - /** - * Gets the value of the oval 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 oval property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Oval } - */ - public List getOval() { - if (oval == null) { - oval = new ArrayList(); - } - return this.oval; - } - - /** - * Gets the value of the polyline 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 polyline property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Polyline } - */ - public List getPolyline() { - if (polyline == null) { - polyline = new ArrayList(); - } - return this.polyline; - } - - /** - * Gets the value of the rect 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 rect property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Rect } - */ - public List getRect() { - if (rect == null) { - rect = new ArrayList(); - } - return this.rect; - } - - /** - * Gets the value of the roundrect 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 roundrect property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Roundrect } - */ - public List getRoundrect() { - if (roundrect == null) { - roundrect = new ArrayList(); - } - return this.roundrect; - } - - /** - * Gets the value of the shape 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 shape property. - *

- *

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

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

- *

- *

- * Objects of the following type(s) are allowed in the list - * {@link Shape } - */ - public List getShape() { - if (shape == null) { - shape = new ArrayList(); - } - return this.shape; - } - - /** - * Gets the value of the coordorigin property. - * - * @return possible object is - * {@link String } - */ - public String getCoordorigin() { - return coordorigin; - } - - /** - * Sets the value of the coordorigin property. - * - * @param value allowed object is - * {@link String } - */ - public void setCoordorigin(String value) { - this.coordorigin = value; - } - - /** - * Gets the value of the coordsize property. - * - * @return possible object is - * {@link String } - */ - public String getCoordsize() { - return coordsize; - } - - /** - * Sets the value of the coordsize property. - * - * @param value allowed object is - * {@link String } - */ - public void setCoordsize(String value) { - this.coordsize = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Line.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Line.java deleted file mode 100644 index e2273d36..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Line.java +++ /dev/null @@ -1,184 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element ref="{http://mindmap.com/xml/vmlmap}stroke"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}fill" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="stroked" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="t" />
- *       <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "stroke", - "fill" - }) -@XmlRootElement(name = "line") -public class Line - extends Element { - - @XmlElement(required = true) - protected Stroke stroke; - protected Fill fill; - @XmlAttribute(required = true) - protected String from; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String stroked; - @XmlAttribute(required = true) - protected String to; - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link Stroke } - */ - public Stroke getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link Stroke } - */ - public void setStroke(Stroke value) { - this.stroke = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link Fill } - */ - public Fill getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link Fill } - */ - public void setFill(Fill value) { - this.fill = value; - } - - /** - * Gets the value of the from property. - * - * @return possible object is - * {@link String } - */ - public String getFrom() { - return from; - } - - /** - * Sets the value of the from property. - * - * @param value allowed object is - * {@link String } - */ - public void setFrom(String value) { - this.from = value; - } - - /** - * Gets the value of the stroked property. - * - * @return possible object is - * {@link String } - */ - public String getStroked() { - if (stroked == null) { - return "t"; - } else { - return stroked; - } - } - - /** - * Sets the value of the stroked property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroked(String value) { - this.stroked = value; - } - - /** - * Gets the value of the to property. - * - * @return possible object is - * {@link String } - */ - public String getTo() { - return to; - } - - /** - * Sets the value of the to property. - * - * @param value allowed object is - * {@link String } - */ - public void setTo(String value) { - this.to = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/ObjectFactory.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/ObjectFactory.java deleted file mode 100644 index a49e029b..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/ObjectFactory.java +++ /dev/null @@ -1,139 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the com.mindmap.xml.vmlmap 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 { - - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.mindmap.xml.vmlmap - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link Textbox } - */ - public Textbox createTextbox() { - return new Textbox(); - } - - /** - * Create an instance of {@link Shape } - */ - public Shape createShape() { - return new Shape(); - } - - /** - * Create an instance of {@link Roundrect } - */ - public Roundrect createRoundrect() { - return new Roundrect(); - } - - /** - * Create an instance of {@link Oval } - */ - public Oval createOval() { - return new Oval(); - } - - /** - * Create an instance of {@link Textbox.SPAN } - */ - public Textbox.SPAN createTextboxSPAN() { - return new Textbox.SPAN(); - } - - /** - * Create an instance of {@link Rect } - */ - public Rect createRect() { - return new Rect(); - } - - /** - * Create an instance of {@link Element } - */ - public Element createElement() { - return new Element(); - } - - /** - * Create an instance of {@link Line } - */ - public Line createLine() { - return new Line(); - } - - /** - * Create an instance of {@link Group } - */ - public Group createGroup() { - return new Group(); - } - - /** - * Create an instance of {@link Stroke } - */ - public Stroke createStroke() { - return new Stroke(); - } - - /** - * Create an instance of {@link Polyline } - */ - public Polyline createPolyline() { - return new Polyline(); - } - - /** - * Create an instance of {@link Fill } - */ - public Fill createFill() { - return new Fill(); - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Oval.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Oval.java deleted file mode 100644 index 3250b7a6..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Oval.java +++ /dev/null @@ -1,166 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element ref="{http://mindmap.com/xml/vmlmap}stroke"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}fill"/>
- *       </sequence>
- *       <attribute name="coordsize" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="21600,21600" />
- *       <attribute name="stroked" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="t" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "stroke", - "fill" - }) -@XmlRootElement(name = "oval") -public class Oval - extends Element { - - @XmlElement(required = true) - protected Stroke stroke; - @XmlElement(required = true) - protected Fill fill; - @XmlAttribute(required = true) - protected String coordsize; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String stroked; - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link Stroke } - */ - public Stroke getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link Stroke } - */ - public void setStroke(Stroke value) { - this.stroke = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link Fill } - */ - public Fill getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link Fill } - */ - public void setFill(Fill value) { - this.fill = value; - } - - /** - * Gets the value of the coordsize property. - * - * @return possible object is - * {@link String } - */ - public String getCoordsize() { - if (coordsize == null) { - return "21600,21600"; - } else { - return coordsize; - } - } - - /** - * Sets the value of the coordsize property. - * - * @param value allowed object is - * {@link String } - */ - public void setCoordsize(String value) { - this.coordsize = value; - } - - /** - * Gets the value of the stroked property. - * - * @return possible object is - * {@link String } - */ - public String getStroked() { - if (stroked == null) { - return "t"; - } else { - return stroked; - } - } - - /** - * Sets the value of the stroked property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroked(String value) { - this.stroked = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Polyline.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Polyline.java deleted file mode 100644 index 17023c8c..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Polyline.java +++ /dev/null @@ -1,184 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element ref="{http://mindmap.com/xml/vmlmap}stroke"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}fill" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="filled" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="f" />
- *       <attribute name="points" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="xPoints" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "stroke", - "fill" - }) -@XmlRootElement(name = "polyline") -public class Polyline - extends Element { - - @XmlElement(required = true) - protected Stroke stroke; - protected Fill fill; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String filled; - @XmlAttribute - protected String points; - @XmlAttribute - protected String xPoints; - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link Stroke } - */ - public Stroke getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link Stroke } - */ - public void setStroke(Stroke value) { - this.stroke = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link Fill } - */ - public Fill getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link Fill } - */ - public void setFill(Fill value) { - this.fill = value; - } - - /** - * Gets the value of the filled property. - * - * @return possible object is - * {@link String } - */ - public String getFilled() { - if (filled == null) { - return "f"; - } else { - return filled; - } - } - - /** - * Sets the value of the filled property. - * - * @param value allowed object is - * {@link String } - */ - public void setFilled(String value) { - this.filled = value; - } - - /** - * Gets the value of the points property. - * - * @return possible object is - * {@link String } - */ - public String getPoints() { - return points; - } - - /** - * Sets the value of the points property. - * - * @param value allowed object is - * {@link String } - */ - public void setPoints(String value) { - this.points = value; - } - - /** - * Gets the value of the xPoints property. - * - * @return possible object is - * {@link String } - */ - public String getXPoints() { - return xPoints; - } - - /** - * Sets the value of the xPoints property. - * - * @param value allowed object is - * {@link String } - */ - public void setXPoints(String value) { - this.xPoints = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Rect.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Rect.java deleted file mode 100644 index 9f69180f..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Rect.java +++ /dev/null @@ -1,158 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element ref="{http://mindmap.com/xml/vmlmap}stroke"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}fill"/>
- *       </sequence>
- *       <attribute name="coordsize" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="stroked" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "stroke", - "fill" - }) -@XmlRootElement(name = "rect") -public class Rect - extends Element { - - @XmlElement(required = true) - protected Stroke stroke; - @XmlElement(required = true) - protected Fill fill; - @XmlAttribute(required = true) - protected String coordsize; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String stroked; - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link Stroke } - */ - public Stroke getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link Stroke } - */ - public void setStroke(Stroke value) { - this.stroke = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link Fill } - */ - public Fill getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link Fill } - */ - public void setFill(Fill value) { - this.fill = value; - } - - /** - * Gets the value of the coordsize property. - * - * @return possible object is - * {@link String } - */ - public String getCoordsize() { - return coordsize; - } - - /** - * Sets the value of the coordsize property. - * - * @param value allowed object is - * {@link String } - */ - public void setCoordsize(String value) { - this.coordsize = value; - } - - /** - * Gets the value of the stroked property. - * - * @return possible object is - * {@link String } - */ - public String getStroked() { - return stroked; - } - - /** - * Sets the value of the stroked property. - * - * @param value allowed object is - * {@link String } - */ - public void setStroked(String value) { - this.stroked = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Roundrect.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Roundrect.java deleted file mode 100644 index 37b1efd4..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Roundrect.java +++ /dev/null @@ -1,166 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element ref="{http://mindmap.com/xml/vmlmap}stroke"/>
- *         <element ref="{http://mindmap.com/xml/vmlmap}fill"/>
- *       </sequence>
- *       <attribute name="arcsize" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="9830f" />
- *       <attribute name="coordsize" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="21600,21600" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "stroke", - "fill" - }) -@XmlRootElement(name = "roundrect") -public class Roundrect - extends Element { - - @XmlElement(required = true) - protected Stroke stroke; - @XmlElement(required = true) - protected Fill fill; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String arcsize; - @XmlAttribute(required = true) - protected String coordsize; - - /** - * Gets the value of the stroke property. - * - * @return possible object is - * {@link Stroke } - */ - public Stroke getStroke() { - return stroke; - } - - /** - * Sets the value of the stroke property. - * - * @param value allowed object is - * {@link Stroke } - */ - public void setStroke(Stroke value) { - this.stroke = value; - } - - /** - * Gets the value of the fill property. - * - * @return possible object is - * {@link Fill } - */ - public Fill getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value allowed object is - * {@link Fill } - */ - public void setFill(Fill value) { - this.fill = value; - } - - /** - * Gets the value of the arcsize property. - * - * @return possible object is - * {@link String } - */ - public String getArcsize() { - if (arcsize == null) { - return "9830f"; - } else { - return arcsize; - } - } - - /** - * Sets the value of the arcsize property. - * - * @param value allowed object is - * {@link String } - */ - public void setArcsize(String value) { - this.arcsize = value; - } - - /** - * Gets the value of the coordsize property. - * - * @return possible object is - * {@link String } - */ - public String getCoordsize() { - if (coordsize == null) { - return "21600,21600"; - } else { - return coordsize; - } - } - - /** - * Sets the value of the coordsize property. - * - * @param value allowed object is - * {@link String } - */ - public void setCoordsize(String value) { - this.coordsize = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Shape.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Shape.java deleted file mode 100644 index 4f32c253..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Shape.java +++ /dev/null @@ -1,112 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element ref="{http://mindmap.com/xml/vmlmap}textbox"/>
- *       </sequence>
- *       <attribute name="coordsize" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="100,100" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "textbox" - }) -@XmlRootElement(name = "shape") -public class Shape - extends Element { - - @XmlElement(required = true) - protected Textbox textbox; - @XmlAttribute(required = true) - protected String coordsize; - - /** - * Gets the value of the textbox property. - * - * @return possible object is - * {@link Textbox } - */ - public Textbox getTextbox() { - return textbox; - } - - /** - * Sets the value of the textbox property. - * - * @param value allowed object is - * {@link Textbox } - */ - public void setTextbox(Textbox value) { - this.textbox = value; - } - - /** - * Gets the value of the coordsize property. - * - * @return possible object is - * {@link String } - */ - public String getCoordsize() { - if (coordsize == null) { - return "100,100"; - } else { - return coordsize; - } - } - - /** - * Sets the value of the coordsize property. - * - * @param value allowed object is - * {@link String } - */ - public void setCoordsize(String value) { - this.coordsize = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Stroke.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Stroke.java deleted file mode 100644 index b882fdc8..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Stroke.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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.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">
- *       <attribute name="dashstyle">
- *         <simpleType>
- *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- *             <enumeration value="solid"/>
- *           </restriction>
- *         </simpleType>
- *       </attribute>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "stroke") -public class Stroke { - - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String dashstyle; - - /** - * Gets the value of the dashstyle property. - * - * @return possible object is - * {@link String } - */ - public String getDashstyle() { - return dashstyle; - } - - /** - * Sets the value of the dashstyle property. - * - * @param value allowed object is - * {@link String } - */ - public void setDashstyle(String value) { - this.dashstyle = value; - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Textbox.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Textbox.java deleted file mode 100644 index b220c4cf..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/Textbox.java +++ /dev/null @@ -1,211 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - - -package com.wisemapping.xml.vmlmap; - -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>
- *     <extension base="{http://mindmap.com/xml/vmlmap}element">
- *       <sequence>
- *         <element name="SPAN">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <sequence>
- *                   <element name="SPAN" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                 </sequence>
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *       </sequence>
- *       <attribute name="inset" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="0,0,0,0" />
- *       <attribute name="xFontScale" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
- *       <attribute name="xTextSize" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "span" - }) -@XmlRootElement(name = "textbox") -public class Textbox - extends Element { - - @XmlElement(name = "SPAN", namespace = "", required = true) - protected Textbox.SPAN span; - @XmlAttribute(required = true) - protected String inset; - @XmlAttribute(required = true) - protected float xFontScale; - @XmlAttribute(required = true) - protected String xTextSize; - - /** - * Gets the value of the span property. - * - * @return possible object is - * {@link Textbox.SPAN } - */ - public Textbox.SPAN getSPAN() { - return span; - } - - /** - * Sets the value of the span property. - * - * @param value allowed object is - * {@link Textbox.SPAN } - */ - public void setSPAN(Textbox.SPAN value) { - this.span = value; - } - - /** - * Gets the value of the inset property. - * - * @return possible object is - * {@link String } - */ - public String getInset() { - if (inset == null) { - return "0,0,0,0"; - } else { - return inset; - } - } - - /** - * Sets the value of the inset property. - * - * @param value allowed object is - * {@link String } - */ - public void setInset(String value) { - this.inset = value; - } - - /** - * Gets the value of the xFontScale property. - */ - public float getXFontScale() { - return xFontScale; - } - - /** - * Sets the value of the xFontScale property. - */ - public void setXFontScale(float value) { - this.xFontScale = value; - } - - /** - * Gets the value of the xTextSize property. - * - * @return possible object is - * {@link String } - */ - public String getXTextSize() { - return xTextSize; - } - - /** - * Sets the value of the xTextSize property. - * - * @param value allowed object is - * {@link String } - */ - public void setXTextSize(String value) { - this.xTextSize = value; - } - - - /** - *

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 name="SPAN" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *       </sequence>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "span" - }) - public static class SPAN { - - @XmlElement(name = "SPAN", namespace = "", required = true) - protected String span; - - /** - * Gets the value of the span property. - * - * @return possible object is - * {@link String } - */ - public String getSPAN() { - return span; - } - - /** - * Sets the value of the span property. - * - * @param value allowed object is - * {@link String } - */ - public void setSPAN(String value) { - this.span = value; - } - - } - -} diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/package-info.java b/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/package-info.java deleted file mode 100644 index 381607ee..00000000 --- a/wise-webapp/src/main/java/com/wisemapping/xml/vmlmap/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* 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. -*/ - -// -// 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.04.14 at 05:18:25 PM ART -// - -@javax.xml.bind.annotation.XmlSchema(namespace = "http://wisemapping.com/xml/vmlmap", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.wisemapping.xml.vmlmap; diff --git a/wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd b/wise-webapp/src/main/resources/freemind_0.9.0.xsd similarity index 97% rename from wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd rename to wise-webapp/src/main/resources/freemind_0.9.0.xsd index 7de99d23..59c54621 100755 --- a/wise-webapp/src/main/java/com/wisemapping/xml/freemind_0_9_0.xsd +++ b/wise-webapp/src/main/resources/freemind_0.9.0.xsd @@ -1,159 +1,159 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wise-webapp/src/main/resources/mindmap.xjb b/wise-webapp/src/main/resources/mindmap.xjb new file mode 100644 index 00000000..b864d5d7 --- /dev/null +++ b/wise-webapp/src/main/resources/mindmap.xjb @@ -0,0 +1,14 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/wise-webapp/src/main/resources/mindmap.xsd b/wise-webapp/src/main/resources/mindmap.xsd old mode 100755 new mode 100644 index 7928ff60..c4697b35 --- a/wise-webapp/src/main/resources/mindmap.xsd +++ b/wise-webapp/src/main/resources/mindmap.xsd @@ -1,64 +1,69 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wise-webapp/src/main/resources/wiseservices.wsdl b/wise-webapp/src/main/resources/wiseservices.wsdl deleted file mode 100644 index fc66cfec..00000000 --- a/wise-webapp/src/main/resources/wiseservices.wsdl +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wise-webapp/src/test/data/freemind/basic.mmr b/wise-webapp/src/test/data/freemind/basic.mmr index 00c4d5b3..ccc84af8 100644 --- a/wise-webapp/src/test/data/freemind/basic.mmr +++ b/wise-webapp/src/test/data/freemind/basic.mmr @@ -1 +1,15 @@ - \ No newline at end of file + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/basic.wxml b/wise-webapp/src/test/data/freemind/basic.wxml index 583599f9..2efdbb2d 100644 --- a/wise-webapp/src/test/data/freemind/basic.wxml +++ b/wise-webapp/src/test/data/freemind/basic.wxml @@ -1 +1,30 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/fonts.mmr b/wise-webapp/src/test/data/freemind/fonts.mmr index 71f8c15f..4050a195 100644 --- a/wise-webapp/src/test/data/freemind/fonts.mmr +++ b/wise-webapp/src/test/data/freemind/fonts.mmr @@ -1 +1,40 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/fonts.wxml b/wise-webapp/src/test/data/freemind/fonts.wxml index cc1b4161..ea07cdfe 100644 --- a/wise-webapp/src/test/data/freemind/fonts.wxml +++ b/wise-webapp/src/test/data/freemind/fonts.wxml @@ -1 +1,55 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/i18n.mmr b/wise-webapp/src/test/data/freemind/i18n.mmr index a1476b37..797635d7 100644 --- a/wise-webapp/src/test/data/freemind/i18n.mmr +++ b/wise-webapp/src/test/data/freemind/i18n.mmr @@ -1 +1,8 @@ - \ No newline at end of file + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/i18n.wxml b/wise-webapp/src/test/data/freemind/i18n.wxml index 229f7e6d..b3620f4d 100644 --- a/wise-webapp/src/test/data/freemind/i18n.wxml +++ b/wise-webapp/src/test/data/freemind/i18n.wxml @@ -1 +1,15 @@ - \ No newline at end of file + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/icons.mmr b/wise-webapp/src/test/data/freemind/icons.mmr index 4a5df9e2..063ba53e 100644 --- a/wise-webapp/src/test/data/freemind/icons.mmr +++ b/wise-webapp/src/test/data/freemind/icons.mmr @@ -1 +1,198 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/icons.wxml b/wise-webapp/src/test/data/freemind/icons.wxml index a0b38727..be7a188f 100644 --- a/wise-webapp/src/test/data/freemind/icons.wxml +++ b/wise-webapp/src/test/data/freemind/icons.wxml @@ -1 +1,295 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/links.mmr b/wise-webapp/src/test/data/freemind/links.mmr index e0216c6c..16df9afc 100644 --- a/wise-webapp/src/test/data/freemind/links.mmr +++ b/wise-webapp/src/test/data/freemind/links.mmr @@ -1 +1,14 @@ - \ No newline at end of file + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/links.wxml b/wise-webapp/src/test/data/freemind/links.wxml index 2263b382..9a1954ca 100644 --- a/wise-webapp/src/test/data/freemind/links.wxml +++ b/wise-webapp/src/test/data/freemind/links.wxml @@ -1 +1,18 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/longnodes.mmr b/wise-webapp/src/test/data/freemind/longnodes.mmr index 5d13ccb7..26e92591 100644 --- a/wise-webapp/src/test/data/freemind/longnodes.mmr +++ b/wise-webapp/src/test/data/freemind/longnodes.mmr @@ -1 +1,6 @@ - \ No newline at end of file + + + + + + diff --git a/wise-webapp/src/test/data/freemind/longnodes.wxml b/wise-webapp/src/test/data/freemind/longnodes.wxml index aa337201..006115ab 100644 --- a/wise-webapp/src/test/data/freemind/longnodes.wxml +++ b/wise-webapp/src/test/data/freemind/longnodes.wxml @@ -1 +1,9 @@ - \ No newline at end of file + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/node-styles.mmr b/wise-webapp/src/test/data/freemind/node-styles.mmr index 260f95fe..39dd8600 100644 --- a/wise-webapp/src/test/data/freemind/node-styles.mmr +++ b/wise-webapp/src/test/data/freemind/node-styles.mmr @@ -1 +1,50 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/node-styles.wxml b/wise-webapp/src/test/data/freemind/node-styles.wxml index eeb09506..aa881c56 100644 --- a/wise-webapp/src/test/data/freemind/node-styles.wxml +++ b/wise-webapp/src/test/data/freemind/node-styles.wxml @@ -1 +1,63 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/process.mmr b/wise-webapp/src/test/data/freemind/process.mmr index fff79e47..4db388d1 100644 --- a/wise-webapp/src/test/data/freemind/process.mmr +++ b/wise-webapp/src/test/data/freemind/process.mmr @@ -1 +1,121 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/freemind/process.wxml b/wise-webapp/src/test/data/freemind/process.wxml index 60a65b85..94716e8e 100644 --- a/wise-webapp/src/test/data/freemind/process.wxml +++ b/wise-webapp/src/test/data/freemind/process.wxml @@ -1 +1,227 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/wisemaps/bigmap.mmr b/wise-webapp/src/test/data/wisemaps/bigmap.mmr index 2585b689..51ff9561 100644 --- a/wise-webapp/src/test/data/wisemaps/bigmap.mmr +++ b/wise-webapp/src/test/data/wisemaps/bigmap.mmr @@ -1 +1,276 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/wisemaps/simple-maps.mmr b/wise-webapp/src/test/data/wisemaps/simple-maps.mmr index e69de29b..41946830 100644 --- a/wise-webapp/src/test/data/wisemaps/simple-maps.mmr +++ b/wise-webapp/src/test/data/wisemaps/simple-maps.mmr @@ -0,0 +1,1214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/wisemaps/welcome.mmr b/wise-webapp/src/test/data/wisemaps/welcome.mmr new file mode 100644 index 00000000..e5840e36 --- /dev/null +++ b/wise-webapp/src/test/data/wisemaps/welcome.mmr @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wise-webapp/src/test/data/wisemaps/welcome.wxml b/wise-webapp/src/test/data/wisemaps/welcome.wxml new file mode 100644 index 00000000..250b9482 --- /dev/null +++ b/wise-webapp/src/test/data/wisemaps/welcome.wxml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java index fece1544..646d4f80 100644 --- a/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java +++ b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java @@ -34,7 +34,7 @@ public class ExportTest { final StringBuilder recContent = new StringBuilder(); String line = br.readLine(); while (line != null) { - recContent.append(line); + recContent.append(line).append("\n"); line = br.readLine(); } @@ -65,14 +65,14 @@ public class ExportTest { final StringBuilder content = new StringBuilder(); String line = br.readLine(); while (line != null) { - content.append(line); + content.append(line).append("\n"); line = br.readLine(); } fis.close(); final MindMap result = new MindMap(); - result.setXml(content.toString().getBytes("UTF-8")); + result.setXmlStr(content.toString()); return result; } @@ -84,7 +84,7 @@ public class ExportTest { final File[] freeMindFiles = dataDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { - return name.endsWith(".xml"); + return name.endsWith(".wxml"); } }); diff --git a/wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java index cb10b30a..2f28b7db 100644 --- a/wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java +++ b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java @@ -17,6 +17,7 @@ import java.io.*; @Test public class ImportExportTest { private static final String DATA_DIR_PATH = "src/test/data/freemind/"; + private static final String UTF_8 = "UTF-8"; final private Importer importer; final private FreemindExporter exporter; @@ -30,8 +31,6 @@ public class ImportExportTest { @Test(dataProvider = "Data-Provider-Function") public void exportImportTest(@NotNull final File freeMindFile, @NotNull final File wiseFile, @NotNull final File freeRecFile) throws ImporterException, IOException, ExportException { - - final FileInputStream fileInputStream = new FileInputStream(freeMindFile.getAbsolutePath()); final MindMap mindMap = importer.importMap("basic", "basic", fileInputStream); @@ -46,7 +45,7 @@ public class ImportExportTest { } else { final FileOutputStream fos = new FileOutputStream(wiseFile); - fos.write(mindMap.getXmlStr().getBytes("UTF-8")); + fos.write(mindMap.getXmlStr().getBytes(UTF_8)); fos.close(); } @@ -59,7 +58,7 @@ public class ImportExportTest { final ByteArrayOutputStream bos = new ByteArrayOutputStream(); exporter.export(mindMap, bos); - Assert.assertEquals(bos.toByteArray(), recContent.getBytes("UTF-8")); + Assert.assertEquals(new String(bos.toByteArray(), UTF_8), recContent); } else { final FileOutputStream fos = new FileOutputStream(freeRecFile); @@ -72,13 +71,13 @@ public class ImportExportTest { private String readFile(@NotNull File file) throws IOException { // Load rec file co final FileInputStream fis = new FileInputStream(file); - final InputStreamReader isr = new InputStreamReader(fis,"UTF-8"); + final InputStreamReader isr = new InputStreamReader(fis, UTF_8); final BufferedReader br = new BufferedReader(isr); final StringBuilder result = new StringBuilder(); String line = br.readLine(); while (line != null) { - result.append(line); + result.append(line).append("\n"); line = br.readLine(); } @@ -97,7 +96,7 @@ public class ImportExportTest { final File[] freeMindFiles = dataDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { - return name.endsWith(".mm") && (testNameToRun==null || name.startsWith(testNameToRun)); + return name.endsWith(".mm") && (testNameToRun == null || name.startsWith(testNameToRun)); } }); diff --git a/wise-webapp/testng.xml b/wise-webapp/testng.xml index 40f9e6ea..8ad94978 100644 --- a/wise-webapp/testng.xml +++ b/wise-webapp/testng.xml @@ -7,7 +7,7 @@ - +