Commit a91e1e7d by Mikhail Gashenko

JsonNode: (draft4) new node value search and update with ObjectMapper

parent f58d6c80
/target/
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>kz.arta.synergy.astdev</groupId> <groupId>kz.arta.synergy.astdev</groupId>
<artifactId>custom_bp</artifactId> <artifactId>custom_bp</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>custom_bp</name> <name>custom_bp</name>
<properties> <properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>1.5.6</version> <version>1.5.6</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId> <artifactId>jackson-core</artifactId>
<version>2.8.5</version> <version>2.8.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.jms</groupId> <groupId>javax.jms</groupId>
<artifactId>jms-api</artifactId> <artifactId>jms-api</artifactId>
<version>1.1-rev-1</version> <version>1.1-rev-1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.codehaus.jackson</groupId> <groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId> <artifactId>jackson-mapper-asl</artifactId>
<version>1.9.10</version> <version>1.9.10</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax</groupId> <groupId>org.codehaus.jackson</groupId>
<artifactId>javaee-web-api</artifactId> <artifactId>jackson-core-asl</artifactId>
<version>6.0</version> <version>1.9.13</version>
<scope>provided</scope> <type>jar</type>
</dependency> </dependency>
</dependencies> <dependency>
<groupId>javax</groupId>
<build> <artifactId>javaee-web-api</artifactId>
<plugins> <version>6.0</version>
<plugin> <scope>provided</scope>
<groupId>org.apache.maven.plugins</groupId> </dependency>
<artifactId>maven-compiler-plugin</artifactId> </dependencies>
<version>2.3.2</version>
<configuration> <build>
<source>1.7</source> <plugins>
<target>1.7</target> <plugin>
<compilerArguments> <groupId>org.apache.maven.plugins</groupId>
<endorseddirs>${endorsed.dir}</endorseddirs> <artifactId>maven-compiler-plugin</artifactId>
</compilerArguments> <version>2.3.2</version>
</configuration> <configuration>
</plugin> <source>1.7</source>
<plugin> <target>1.7</target>
<groupId>org.apache.maven.plugins</groupId> <compilerArguments>
<artifactId>maven-war-plugin</artifactId> <endorseddirs>${endorsed.dir}</endorseddirs>
<version>2.1.1</version> </compilerArguments>
<configuration> </configuration>
<failOnMissingWebXml>false</failOnMissingWebXml> </plugin>
</configuration> <plugin>
</plugin> <groupId>org.apache.maven.plugins</groupId>
<plugin> <artifactId>maven-war-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId> <version>2.1.1</version>
<artifactId>maven-dependency-plugin</artifactId> <configuration>
<version>2.1</version> <failOnMissingWebXml>false</failOnMissingWebXml>
<executions> </configuration>
<execution> </plugin>
<phase>validate</phase> <plugin>
<goals> <groupId>org.apache.maven.plugins</groupId>
<goal>copy</goal> <artifactId>maven-dependency-plugin</artifactId>
</goals> <version>2.1</version>
<configuration> <executions>
<outputDirectory>${endorsed.dir}</outputDirectory> <execution>
<silent>true</silent> <phase>validate</phase>
<artifactItems> <goals>
<artifactItem> <goal>copy</goal>
<groupId>javax</groupId> </goals>
<artifactId>javaee-endorsed-api</artifactId> <configuration>
<version>6.0</version> <outputDirectory>${endorsed.dir}</outputDirectory>
<type>jar</type> <silent>true</silent>
</artifactItem> <artifactItems>
</artifactItems> <artifactItem>
</configuration> <groupId>javax</groupId>
</execution> <artifactId>javaee-endorsed-api</artifactId>
</executions> <version>6.0</version>
</plugin> <type>jar</type>
</plugins> </artifactItem>
</build> </artifactItems>
<reporting> </configuration>
<plugins> </execution>
<plugin> </executions>
<groupId>org.apache.maven.plugins</groupId> </plugin>
<artifactId>maven-checkstyle-plugin</artifactId> </plugins>
<configuration> </build>
<configLocation>config/sun_checks.xml</configLocation> <reporting>
</configuration> <plugins>
</plugin> <plugin>
</plugins> <groupId>org.apache.maven.plugins</groupId>
</reporting> <artifactId>maven-checkstyle-plugin</artifactId>
</project> <configuration>
<configLocation>config/sun_checks.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package kz.arta.synergy.astdev.custom_bp;
import java.util.List;
import org.codehaus.jackson.annotate.JsonProperty;
/**
*
* @author drpsy
*/
public class AsNode {
@JsonProperty("id")
private String id;
@JsonProperty("type")
private String type;
@JsonProperty("label")
private String label;
@JsonProperty("key")
private String key;
@JsonProperty("value")
private String value;
@JsonProperty("data")
private List<AsNode> data;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public List<AsNode> getData() {
return data;
}
public void setData(List<AsNode> data) {
this.data = data;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment