com.github.nmorel.gwtjackson.rebind.BeanJsonMapperInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-jackson Show documentation
Show all versions of gwt-jackson Show documentation
gwt-jackson is a GWT JSON serializer/deserializer mechanism based on Jackson annotations
/*
* Copyright 2013 Nicolas Morel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.nmorel.gwtjackson.rebind;
import com.github.nmorel.gwtjackson.rebind.bean.BeanInfo;
import com.github.nmorel.gwtjackson.rebind.property.PropertyInfo;
import com.google.gwt.core.ext.typeinfo.JClassType;
import com.google.gwt.thirdparty.guava.common.collect.ImmutableMap;
/**
* BeanJsonMapperInfo class.
*
* @author Nicolas Morel
* @version $Id: $
*/
public class BeanJsonMapperInfo {
private final JClassType type;
private final String packageName;
private final boolean samePackage;
private final String simpleSerializerClassName;
private final String simpleDeserializerClassName;
private final BeanInfo beanInfo;
private final ImmutableMap properties;
/**
* Constructor for BeanJsonMapperInfo.
*
* @param type a {@link com.google.gwt.core.ext.typeinfo.JClassType} object.
* @param packageName a {@link java.lang.String} object.
* @param samePackage a boolean.
* @param simpleSerializerClassName a {@link java.lang.String} object.
* @param simpleDeserializerClassName a {@link java.lang.String} object.
* @param beanInfo a {@link com.github.nmorel.gwtjackson.rebind.bean.BeanInfo} object.
* @param properties a {@link com.google.gwt.thirdparty.guava.common.collect.ImmutableMap} object.
*/
public BeanJsonMapperInfo( JClassType type, String packageName, boolean samePackage, String simpleSerializerClassName,
String simpleDeserializerClassName, BeanInfo beanInfo, ImmutableMap properties ) {
this.type = type;
this.packageName = packageName;
this.samePackage = samePackage;
this.simpleSerializerClassName = simpleSerializerClassName;
this.simpleDeserializerClassName = simpleDeserializerClassName;
this.beanInfo = beanInfo;
this.properties = properties;
}
/**
* Getter for the field type
.
*
* @return a {@link com.google.gwt.core.ext.typeinfo.JClassType} object.
*/
public JClassType getType() {
return type;
}
/**
* Getter for the field packageName
.
*
* @return a {@link java.lang.String} object.
*/
public String getPackageName() {
return packageName;
}
/**
* isSamePackage
*
* @return a boolean.
*/
public boolean isSamePackage() {
return samePackage;
}
/**
* Getter for the field simpleSerializerClassName
.
*
* @return a {@link java.lang.String} object.
*/
public String getSimpleSerializerClassName() {
return simpleSerializerClassName;
}
/**
* Getter for the field simpleDeserializerClassName
.
*
* @return a {@link java.lang.String} object.
*/
public String getSimpleDeserializerClassName() {
return simpleDeserializerClassName;
}
/**
* Getter for the field beanInfo
.
*
* @return a {@link com.github.nmorel.gwtjackson.rebind.bean.BeanInfo} object.
*/
public BeanInfo getBeanInfo() {
return beanInfo;
}
/**
* Getter for the field properties
.
*
* @return a {@link com.google.gwt.thirdparty.guava.common.collect.ImmutableMap} object.
*/
public ImmutableMap getProperties() {
return properties;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy