Tabnine Logo
ElementMap.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.simpleframework.xml.ElementMap
constructor

Best Java code snippets using org.simpleframework.xml.ElementMap.<init> (Showing top 20 results out of 315)

origin: syncany/syncany

public class LsOperationResult implements OperationResult {
  @ElementList(name = "fileList", required = false, entry = "fileVersion")
  private ArrayList<FileVersion> fileList;
  
  @ElementMap(name = "fileVersions", required = false, key = "fileHistoryId", value = "partialFileHistory")
  private HashMap<FileHistoryId, PartialFileHistory> fileVersions;
  
  public LsOperationResult() {
    // Nothing
  }
  
  public LsOperationResult(List<FileVersion> fileList, Map<FileHistoryId, PartialFileHistory> fileVersions) {
    this.fileList = (fileList != null) ? new ArrayList<>(fileList) : null;
    this.fileVersions = (fileVersions != null) ? new HashMap<>(fileVersions) : null;
  }

  public List<FileVersion> getFileList() {
    return fileList;
  }

  public Map<FileHistoryId, PartialFileHistory> getFileVersions() {
    return fileVersions;
  }
}
origin: syncany/syncany

private String type;
@ElementMap(entry="property", key="name", required=false, attribute=true, inline=true)
protected Map<String, String> settings;
origin: syncany/syncany

@ElementMap(name = "systemProperties", entry = "property", key = "name", required = false, attribute = true)
private TreeMap<String, String> systemProperties;
origin: syncany/syncany

private long minSecondsBetweenCleanups = 3 * 60 * 60; // 3 hours
@ElementMap(entry = "fromTime", key = "truncateDateFormat", required = false, attribute = true, inline = true)
private SortedMap<Long, TimeUnit> purgeFileVersionSettings;
origin: openpnp/openpnp

  public static class OffsetTransform implements AxisTransform {
    @ElementMap(required=false)
    HashMap<String, Double> offsetsByHeadMountableId = new HashMap<>();
    
    public OffsetTransform() {
      offsetsByHeadMountableId.put("N1", 1.);
    }

    @Override
    public double toTransformed(Axis axis, HeadMountable hm, double rawCoordinate) {
      Double offset = offsetsByHeadMountableId.get(hm.getId());
      if (offset != null) {
        return rawCoordinate + offset;
      }
      return rawCoordinate;
    }

    @Override
    public double toRaw(Axis axis, HeadMountable hm, double transformedCoordinate) {
      Double offset = offsetsByHeadMountableId.get(hm.getId());
      if (offset != null) {
        return transformedCoordinate - offset;
      }
      return transformedCoordinate;
    }
  }
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

@ElementMap(entry = "typeDef", key = "pattern", attribute = true, inline = true, value = "Definition", valueType = TypeDef.class, required = false)
Map<String, TypeDef> registeredPatterns;
origin: org.carrot2/carrot2-core

@ElementMap(entry = "field", key = "key", attribute = true, inline = true, required = false)
private void setOtherFieldsXml(
  HashMap<String, SimpleXmlWrapperValue> otherFieldsForSerialization)
{
  if (otherFieldsForSerialization != null)
  {
    // No need to synchronize here, the object is being deserialized,
    // so it can't yet be seen by other threads.
    fields.putAll(SimpleXmlWrappers.unwrap(otherFieldsForSerialization));
  }
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

@ElementMap(inline = true, attribute=true, entry = "attribute", key = "name", keyType = String.class, value = "details", valueType = Boolean.class, required=false)
LinkedHashMap<String, Boolean> attributes;
origin: org.carrot2/carrot2-core

@ElementMap(entry = "field", key = "key", attribute = true, inline = true, required = false)
private HashMap<String, SimpleXmlWrapperValue> getOtherFieldsXml()
{
  final HashMap<String, SimpleXmlWrapperValue> otherFieldsForSerialization;
  synchronized (this)
  {
    otherFieldsForSerialization = MapUtils.asHashMap(SimpleXmlWrappers
      .wrap(fields));
  }
  otherFieldsForSerialization.remove(TITLE);
  otherFieldsForSerialization.remove(SUMMARY);
  otherFieldsForSerialization.remove(CONTENT_URL);
  otherFieldsForSerialization.remove(SOURCES);
  otherFieldsForSerialization.remove(LANGUAGE);
  otherFieldsForSerialization.remove(SCORE);
  fireSerializationListeners(otherFieldsForSerialization);
  return otherFieldsForSerialization.isEmpty() ? null : otherFieldsForSerialization;
}
origin: org.carrot2/carrot2-core

@ElementMap(name = "map", attribute = true)
private HashMap<String, SimpleXmlWrapperValue> forSerialization;
origin: cereda/arara

@ElementMap(entry = "hash", key = "file", attribute = true, inline = true)
private HashMap<String, String> map;
origin: org.carrot2.attributes/attributes-binder

public class BindableMetadata extends CommonMetadata
  @ElementMap(name = "attributes", entry = "attribute", key = "field-name", inline = false, attribute = true)
  private Map<String, AttributeMetadata> attributeMetadataInternal; 
origin: org.dd4t/dd4t-core

@ElementMap(name = "fields", keyType = String.class, valueType = Field.class, entry = "item", required = false)
@JsonIgnore
private Map<String, Field> fieldSet = new HashMap<>();
origin: net.sf.tsl2nano/tsl2.nano.descriptor

@ElementMap(entry = "member", attribute = true, inline = true, required = false, empty = true, keyType = String.class, key = "name")
private LinkedHashMap<String, Object> members;
origin: com.shazam.fork/fork

@Root
class TestSuite {

  @ElementList(inline=true, type=TestCase.class, required=false)
  private List<TestCase> testCases;

  @Path("./properties")
  @ElementMap(required = false, entry = "property", key = "name", value = "value", attribute = true, inline = true)
  private Map<String, String> properties;

  public List<TestCase>  getTestCase() {
    return testCases;
  }

  public Map<String, String> getProperties() {
    return properties;
  }
}

origin: org.dd4t/dd4t-core

protected ComponentType componentType;
@ElementMap (name = "fields", keyType = String.class, valueType = Field.class, entry = "item", required = false)
@JsonProperty ("Fields")
@JsonDeserialize (contentAs = BaseField.class)
origin: holodeck-b2b/Holodeck-B2B

public class ConfigXmlFile {
  @ElementMap(entry = "parameter", key = "name", attribute = true, inline = true)
  private Map<String, String>     parameters;
origin: org.dd4t/dd4t-core

protected int version;
@ElementMap (name = "metadata", keyType = String.class, valueType = Field.class, entry = "item", required = false)
@JsonProperty ("MetadataFields")
@JsonDeserialize (contentAs = BaseField.class)
origin: ngallagher/simpleframework

public class Report {
  @ElementMap(attribute=true, key="name")
  private Map<String, String> header;
origin: holodeck-b2b/Holodeck-B2B

@ElementMap(entry="parameter", key="name", attribute=true, inline=true, required=false)
private Map<String, String> parameters;
org.simpleframework.xmlElementMap<init>

Popular methods of ElementMap

  • attribute
  • data
  • empty
  • entry
  • inline
  • key
  • keyType
  • name
  • required
  • value
  • valueType
  • valueType

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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