congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
XStreamImplicit
Code IndexAdd Tabnine to your IDE (free)

How to use
XStreamImplicit
in
com.thoughtworks.xstream.annotations

Best Java code snippets using com.thoughtworks.xstream.annotations.XStreamImplicit (Showing top 20 results out of 918)

Refine searchRefine arrow

  • XStreamAlias
  • XStreamOmitField
  • XStreamAsAttribute
  • XmlRootElement
  • XmlAccessorType
  • XmlElement
origin: kiegroup/optaplanner

@XStreamAlias("entitySelector")
public class EntitySelectorConfig extends SelectorConfig<EntitySelectorConfig> {
  @XStreamAsAttribute
  protected String id = null;
  @XStreamAsAttribute
  protected String mimicSelectorRef = null;
  protected SelectionOrder selectionOrder = null;
  @XStreamAlias("nearbySelection")
  protected NearbySelectionConfig nearbySelectionConfig = null;
  @XStreamImplicit(itemFieldName = "filterClass")
  protected List<Class<? extends SelectionFilter>> filterClassList = null;
origin: com.thoughtworks.xstream/xstream

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
Class itemType = null;
origin: org.kie/kie-server-api

@XmlRootElement(name="responses")
@XStreamAlias( "responses" )
@XmlAccessorType(XmlAccessType.FIELD)
public class ServiceResponsesList {

  @XmlElement(name = "response")
  @XStreamImplicit(itemFieldName = "response")
  private List<ServiceResponse<? extends Object>> responses;

  public ServiceResponsesList() {
    responses = new ArrayList<ServiceResponse<? extends Object>>();
  }

  public ServiceResponsesList(List<ServiceResponse<? extends Object>> responses) {
    this.responses = responses;
  }

  public List<ServiceResponse<? extends Object>> getResponses() {
    return responses;
  }

  public void setResponses(List<ServiceResponse<? extends Object>> responses) {
    this.responses = responses;
  }
}

origin: kiegroup/droolsjbpm-integration

@XmlRootElement(name = "kie-container")
@XStreamAlias( "kie-container" )
public class KieContainerResource {
  @XStreamAlias( "container-id" )
  private String             containerId;
  @XStreamAlias( "release-id" )
  private ReleaseId          releaseId;
  private KieScannerResource scanner;
  @XStreamImplicit
  private List<KieServerConfigItem> configItems = new ArrayList<KieServerConfigItem>();
  @XStreamImplicit
  private List<Message> messages = new ArrayList<Message>();
origin: org.codehaus.sonar.plugins/sonar-plugin-checkstyle

@XStreamAlias("module")
public class Module implements Comparable<String> {
 @XStreamAsAttribute
 private String name;
 @XStreamImplicit
 private List<Module> children;
 @XStreamImplicit(itemFieldName = "property")
 private List<Property> properties;
 @XStreamOmitField
 private String metadata;
origin: kiegroup/optaplanner

@XStreamAlias("plannerBenchmarkResult")
public class PlannerBenchmarkResult {
  @XStreamOmitField // Moving or renaming a report directory after creation is allowed
  private File benchmarkReportDirectory;
  private EnvironmentMode environmentMode = null;
  @XStreamImplicit(itemFieldName = "solverBenchmarkResult")
  private List<SolverBenchmarkResult> solverBenchmarkResultList = null;
  @XStreamImplicit(itemFieldName = "unifiedProblemBenchmarkResult")
  private List<ProblemBenchmarkResult> unifiedProblemBenchmarkResultList = null;
origin: kiegroup/optaplanner

@XStreamAlias("cartesianProductMoveSelector")
public class CartesianProductMoveSelectorConfig extends MoveSelectorConfig<CartesianProductMoveSelectorConfig> {
  @XStreamImplicit()
  private List<MoveSelectorConfig> moveSelectorConfigList = null;
origin: com.almis.awe/awe-model

@XStreamImplicit
private List<FilterGroup> filterGroupList;
@XStreamImplicit
private List<Filter> filterList;
@XStreamOmitField
protected String union;
origin: binarywang/java-emoji-converter

public static class SubCategory {
  @Override
  public String toString() {
    return toSimpleString(this);
  }
  @XStreamImplicit(itemFieldName = "e")
  private List<Element> elements;
  @XStreamAsAttribute
  private String name;
  public List<Element> getElements() {
    return this.elements;
  }
  public void setElements(List<Element> elements) {
    this.elements = elements;
  }
}
origin: kiegroup/optaplanner

protected SelectionOrder selectionOrder = null;
@XStreamImplicit(itemFieldName = "filterClass")
protected List<Class<? extends SelectionFilter>> filterClassList = null;
origin: org.jvnet.hudson/xstream

private void processImplicitAnnotation(final Field field) {
  final XStreamImplicit implicitAnnotation = field.getAnnotation(XStreamImplicit.class);
  if (implicitAnnotation != null) {
    if (implicitCollectionMapper == null) {
      throw new InitializationException("No "
        + ImplicitCollectionMapper.class.getName()
        + " available");
    }
    final String fieldName = field.getName();
    final String itemFieldName = implicitAnnotation.itemFieldName();
    Class itemType = null;
    final Type genericType = field.getGenericType();
    if (genericType instanceof ParameterizedType) {
      final Type typeArgument = ((ParameterizedType)genericType)
        .getActualTypeArguments()[0];
      itemType = getClass(typeArgument);
    }
    if (itemFieldName != null && !"".equals(itemFieldName)) {
      implicitCollectionMapper.add(
        field.getDeclaringClass(), fieldName, itemFieldName, itemType);
    } else {
      implicitCollectionMapper.add(field.getDeclaringClass(), fieldName, itemType);
    }
  }
}
origin: kiegroup/droolsjbpm-integration

@XmlRootElement(name="responses")
@XStreamAlias( "responses" )
@XmlAccessorType(XmlAccessType.FIELD)
public class ServiceResponsesList {

  @XmlElement(name = "response")
  @XStreamImplicit(itemFieldName = "response")
  private List<ServiceResponse<? extends Object>> responses;

  public ServiceResponsesList() {
    responses = new ArrayList<ServiceResponse<? extends Object>>();
  }

  public ServiceResponsesList(List<ServiceResponse<? extends Object>> responses) {
    this.responses = responses;
  }

  public List<ServiceResponse<? extends Object>> getResponses() {
    return responses;
  }

  public void setResponses(List<ServiceResponse<? extends Object>> responses) {
    this.responses = responses;
  }
}

origin: org.codehaus.sonar-plugins/sonar-php-plugin

@XStreamAlias("file")
public class FileNode {
 @XStreamImplicit(itemFieldName = "line")
 private List<LineNode> lines;
 @XStreamOmitField
 @XStreamImplicit(itemFieldName = "class")
 private List<ClassNode> ignoredNodes;
 @XStreamAlias("metrics")
 private MetricsNode metrics;
 @XStreamAsAttribute
 private String name;
origin: kiegroup/optaplanner

@XStreamAlias("subSingleBenchmarkResult")
public class SubSingleBenchmarkResult implements BenchmarkResult {
  @XStreamOmitField // Bi-directional relationship restored through BenchmarkResultIO
  private SingleBenchmarkResult singleBenchmarkResult;
  private final int subSingleBenchmarkIndex;
  @XStreamImplicit(itemFieldName = "pureSubSingleStatistic")
  private List<PureSubSingleStatistic> pureSubSingleStatisticList = null;
  @XStreamOmitField // Lazily restored when read through ProblemStatistic and CSV files
  private Map<StatisticType, SubSingleStatistic> effectiveSubSingleStatisticMap;
origin: kiegroup/optaplanner

@XStreamAlias("problemBenchmarks")
public class ProblemBenchmarksConfig extends AbstractConfig<ProblemBenchmarksConfig> {
  @XStreamImplicit(itemFieldName = "xStreamAnnotatedClass")
  private List<Class> xStreamAnnotatedClassList = null;
  private Boolean writeOutputSolutionEnabled = null;
  @XStreamImplicit(itemFieldName = "inputSolutionFile")
  private List<File> inputSolutionFileList = null;
  @XStreamImplicit(itemFieldName = "problemStatisticType")
  private List<ProblemStatisticType> problemStatisticTypeList = null;
  @XStreamImplicit(itemFieldName = "singleStatisticType")
  private List<SingleStatisticType> singleStatisticTypeList = null;
origin: org.geomajas.plugin/geomajas-plugin-printing

private Rectangle bounds = new Rectangle(0, 0);
@XStreamOmitField
private PrintComponent<?> parent;
@XStreamImplicit(itemFieldName = "component")
protected List<PrintComponent<?>> children = new ArrayList<PrintComponent<?>>();
origin: ovea-deprecated/jetty-session-redis

private void processImplicitAnnotation(final Field field) {
  final XStreamImplicit implicitAnnotation = field.getAnnotation(XStreamImplicit.class);
  if (implicitAnnotation != null) {
    if (implicitCollectionMapper == null) {
      throw new InitializationException("No "
        + ImplicitCollectionMapper.class.getName()
        + " available");
    }
    final String fieldName = field.getName();
    final String itemFieldName = implicitAnnotation.itemFieldName();
    Class itemType = null;
    final Type genericType = field.getGenericType();
    if (genericType instanceof ParameterizedType) {
      final Type typeArgument = ((ParameterizedType)genericType)
        .getActualTypeArguments()[0];
      itemType = getClass(typeArgument);
    }
    if (itemFieldName != null && !"".equals(itemFieldName)) {
      implicitCollectionMapper.add(
        field.getDeclaringClass(), fieldName, itemFieldName, itemType);
    } else {
      implicitCollectionMapper.add(field.getDeclaringClass(), fieldName, itemType);
    }
  }
}
origin: kiegroup/droolsjbpm-integration

@XmlRootElement(name = "solvers")
@XStreamAlias("solvers")
@XmlAccessorType(XmlAccessType.FIELD)
public class SolverInstanceList {

  @XmlElement(name = "solver")
  @XStreamImplicit(itemFieldName = "solver")
  private List<SolverInstance> solvers;

  public SolverInstanceList() {
    solvers = new ArrayList<>();
  }

  public SolverInstanceList(List<SolverInstance> solvers) {
    this.solvers = solvers;
  }

  public List<SolverInstance> getContainers() {
    return solvers;
  }

  public void setContainers(List<SolverInstance> solvers) {
    this.solvers = solvers;
  }

}

origin: kiegroup/optaplanner

@XStreamAlias("valueSelector")
public class ValueSelectorConfig extends SelectorConfig<ValueSelectorConfig> {
  @XStreamAsAttribute
  protected String id = null;
  @XStreamAsAttribute
  protected String mimicSelectorRef = null;
  @XStreamAsAttribute // Works with a nested element input too, which is a BC req in 7.x, but undesired in 8.0
  protected String variableName = null;
  protected SelectionOrder selectionOrder = null;
  @XStreamAlias("nearbySelection")
  protected NearbySelectionConfig nearbySelectionConfig = null;
  @XStreamImplicit(itemFieldName = "filterClass")
  protected List<Class<? extends SelectionFilter>> filterClassList = null;
origin: org.apache.bval/bval-xstream

@XStreamAlias("beanInfos")
public class XMLMetaBeanInfos {
  @XStreamAsAttribute
  private String id;
  @XStreamAsAttribute
  private String version;
  @XStreamImplicit
  private List<XMLMetaValidator> validators;
  @XStreamImplicit
  private List<XMLMetaBean> beans;
  @XStreamOmitField
  private Map<String, XMLMetaBean> beanLookup;
  @XStreamOmitField
  private Map<String, XMLMetaValidator> validationLookup;
com.thoughtworks.xstream.annotationsXStreamImplicit

Most used methods

  • <init>
  • itemFieldName
  • keyFieldName

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JComboBox (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now