Codota Logo
XStreamImplicit
Code IndexAdd Codota 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
  • Common ways to obtain XStreamImplicit
private void myMethod () {
XStreamImplicit x =
  • Codota IconField field;field.getAnnotation(XStreamImplicit.class)
  • Smart code suggestions by Codota
}
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: org.aperteworkflow/base-widgets

@XmlAccessorType(XmlAccessType.NONE)
@XmlType
public abstract class HasWidgetsElement extends WidgetElement {
      @XmlElement(name = "upload", type = UploadWidgetElement.class)
  })
  @XStreamImplicit
  protected List<WidgetElement> widgets;
  @XStreamAsAttribute
  @AperteDoc(humanNameKey = "has.spacing", descriptionKey = "has.spacing.description")
  protected Boolean spacing;
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: 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: com.almis.awe/awe-model

@XStreamImplicit
private List<FilterGroup> filterGroupList;
@XStreamImplicit
private List<Filter> filterList;
@XStreamOmitField
protected String union;
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.aperteworkflow/base-widgets

@XmlAccessorType(XmlAccessType.FIELD)
      @XmlElement(name = "item", type = ItemElement.class)
  })
  @XStreamImplicit
  private List<ItemElement> values;
  @XStreamAsAttribute
  protected String dictionaryAttribute;
  @XStreamAsAttribute
  @AperteDoc(
      humanNameKey = "abstractSelect.defaultSelect",
  @XStreamAsAttribute
  @AperteDoc(humanNameKey = "any.required.humanName", descriptionKey = "any.required.description")
  private Boolean required;
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: 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;
com.thoughtworks.xstream.annotationsXStreamImplicit

Most used methods

  • <init>
  • itemFieldName
  • keyFieldName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Path (java.nio.file)
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now