ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # IGNITE-32 WIP: Minor fixes.
Date Sun, 28 Dec 2014 07:31:08 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-32 2b0a2d130 -> 037f556ae


# IGNITE-32 WIP: Minor fixes.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/037f556a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/037f556a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/037f556a

Branch: refs/heads/ignite-32
Commit: 037f556ae0506e80ab2d0c00c0d6bab7c682020c
Parents: 2b0a2d1
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Sun Dec 28 14:31:12 2014 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Sun Dec 28 14:31:12 2014 +0700

----------------------------------------------------------------------
 .../apache/ignite/schema/ui/SchemaLoadApp.java  |  2 +-
 .../ignite/schema/xml/XmlTransformer.java       | 22 ++++++++++++++++----
 2 files changed, 19 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/037f556a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
index 0bffbeb..4861171 100644
--- a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
+++ b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
@@ -318,7 +318,7 @@ public class SchemaLoadApp extends Application {
             }
         }));
 
-        pojoConstructorCh = genPnl.add(checkBox("Generate Constructor For POJO", false),
3);
+        pojoConstructorCh = genPnl.add(checkBox("Generate Constructors For POJOs", false),
3);
 
         xmlSingleFileCh = genPnl.add(checkBox("Write All Configurations To Single File",
true), 3);
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/037f556a/modules/schema-load/src/main/java/org/apache/ignite/schema/xml/XmlTransformer.java
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/org/apache/ignite/schema/xml/XmlTransformer.java
b/modules/schema-load/src/main/java/org/apache/ignite/schema/xml/XmlTransformer.java
index 84b388a..0b03970 100644
--- a/modules/schema-load/src/main/java/org/apache/ignite/schema/xml/XmlTransformer.java
+++ b/modules/schema-load/src/main/java/org/apache/ignite/schema/xml/XmlTransformer.java
@@ -28,6 +28,7 @@ public class XmlTransformer {
     /**
      * Add bean to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param clazz Bean class.
      */
@@ -44,6 +45,7 @@ public class XmlTransformer {
     /**
      * Add element to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param tagName XML tag name.
      * @param attr1 Name for first attr.
@@ -69,6 +71,7 @@ public class XmlTransformer {
     /**
      * Add element to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param tagName XML tag name.
      */
@@ -79,6 +82,7 @@ public class XmlTransformer {
     /**
      * Add element to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param tagName XML tag name.
      */
@@ -89,6 +93,7 @@ public class XmlTransformer {
     /**
      * Add &quot;property&quot; element to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param name Value for &quot;name&quot; attribute
      * @param val Value for &quot;value&quot; attribute
@@ -102,6 +107,7 @@ public class XmlTransformer {
     /**
      * Add fields to xml document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param name Property name.
      * @param fields Map with fields.
@@ -120,6 +126,7 @@ public class XmlTransformer {
     /**
      * Add type descriptors to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
      * @param name Property name.
      * @param descs Map with type descriptors.
@@ -145,6 +152,8 @@ public class XmlTransformer {
     /**
      * Add text fields to xml document.
      *
+     * @param doc XML document.
+     * @param parent Parent XML node.
      * @param textFields Collection with text fields.
      */
     private static void addTextFields(Document doc, Node parent, Collection<String>
textFields) {
@@ -161,6 +170,8 @@ public class XmlTransformer {
     /**
      * Add indexes to xml document.
      *
+     * @param doc XML document.
+     * @param parent Parent XML node.
      * @param groups Map with indexes.
      */
     private static void addGroups(Document doc, Node parent,
@@ -196,13 +207,14 @@ public class XmlTransformer {
     }
 
     /**
-     * Add element with cache query type metadata to XML document.
+     * Add element with type metadata to XML document.
      *
+     * @param doc XML document.
      * @param parent Parent XML node.
+     * @param pkg Package fo types.
      * @param meta Meta.
      */
-    private static void addCacheQueryTypeMetadata(Document doc, Node parent, String pkg,
-        GridCacheQueryTypeMetadata meta) {
+    private static void addTypeMetadata(Document doc, Node parent, String pkg, GridCacheQueryTypeMetadata
meta) {
         Element bean = addBean(doc, parent, GridCacheQueryTypeMetadata.class);
 
         addProperty(doc, bean, "type", pkg + "." + meta.getType());
@@ -231,6 +243,7 @@ public class XmlTransformer {
     /**
      * Transform metadata into xml.
      *
+     * @param pkg Package fo types.
      * @param meta Metadata to transform.
      * @param out File to output result.
      */
@@ -241,6 +254,7 @@ public class XmlTransformer {
     /**
      * Transform metadata into xml.
      *
+     * @param pkg Package fo types.
      * @param meta Metadata to transform.
      * @param out File to output result.
      */
@@ -264,7 +278,7 @@ public class XmlTransformer {
                     "http://www.springframework.org/schema/util/spring-util.xsd");
 
             for (GridCacheQueryTypeMetadata item : meta)
-                addCacheQueryTypeMetadata(doc, beans, pkg, item);
+                addTypeMetadata(doc, beans, pkg, item);
 
             TransformerFactory transformerFactory = TransformerFactory.newInstance();
 


Mime
View raw message