org.codehaus.jackson.annotate.JsonAnySetter Java Examples

The following examples show how to use org.codehaus.jackson.annotate.JsonAnySetter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LoggedSingleRelativeRanking.java    From big-c with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #2
Source File: LoggedJob.java    From RDFS with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #3
Source File: LoggedLocation.java    From RDFS with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #4
Source File: LoggedNetworkTopology.java    From RDFS with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #5
Source File: LoggedSingleRelativeRanking.java    From RDFS with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #6
Source File: LoggedTaskAttempt.java    From RDFS with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #7
Source File: LoggedTask.java    From RDFS with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #8
Source File: IssueFields.java    From jira-rest-client with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public IssueFields setCustomfield(String key,Object value){ 
	if (this.customfield == null)
		this.customfield = new HashMap<String, Object>();
	
	this.customfield.put(key, value);
	
	return this;
}
 
Example #9
Source File: AtlasImportRequest.java    From incubator-atlas with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setOption(String key, String value) {
    if (null == options) {
        options = new HashMap<>();
    }
    options.put(key, value);
}
 
Example #10
Source File: LoggedTask.java    From big-c with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #11
Source File: LoggedTaskAttempt.java    From big-c with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #12
Source File: LoggedNetworkTopology.java    From big-c with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #13
Source File: LoggedLocation.java    From big-c with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #14
Source File: LoggedJob.java    From big-c with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #15
Source File: AbstractEntity.java    From usergrid with Apache License 2.0 5 votes vote down vote up
@Override
  @JsonAnySetter
  public void setDynamicProperty( String key, Object value ) {
      if (value == null || value.equals("")) {
	if (dynamic_properties.containsKey(key)) {
		dynamic_properties.remove(key);
	}
} else {
	dynamic_properties.put(key, value);
}
  }
 
Example #16
Source File: LoggedTask.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #17
Source File: LoggedTaskAttempt.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #18
Source File: LoggedSingleRelativeRanking.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unused")
// for input parameter ignored.
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #19
Source File: LoggedNetworkTopology.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #20
Source File: LoggedLocation.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #21
Source File: LoggedJob.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@JsonAnySetter
public void setUnknownAttribute(String attributeName, Object ignored) {
  if (!alreadySeenAnySetterAttributes.contains(attributeName)) {
    alreadySeenAnySetterAttributes.add(attributeName);
    System.err.println("In LoggedJob, we saw the unknown attribute "
        + attributeName + ".");
  }
}
 
Example #22
Source File: Name.java    From basiclti-util-java with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void setAdditionalProperties(String name, Object value) {
    this.additionalProperties.put(name, value);
}
 
Example #23
Source File: ServiceOwner.java    From basiclti-util-java with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void setAdditionalProperties(String name, Object value) {
    this.additionalProperties.put(name, value);
}
 
Example #24
Source File: BaseJson.java    From basiclti-util-java with Apache License 2.0 4 votes vote down vote up
@com.fasterxml.jackson.annotation.JsonAnySetter
@JsonAnySetter
public void addAdditionalProperty(String name, Object value) {
    this.additionalProperties.put(name, value);
}
 
Example #25
Source File: ServiceProviderName.java    From basiclti-util-java with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void setAdditionalProperties(String name, Object value) {
    this.additionalProperties.put(name, value);
}
 
Example #26
Source File: SubjectDetails.java    From bintray-client-java with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void set(String name, Object value) {
    other.put(name, value);
}
 
Example #27
Source File: Device.java    From openhab1-addons with Eclipse Public License 2.0 4 votes vote down vote up
@JsonAnySetter
public void set(String name, Object value) {
    properties.put(name, value.toString());
}
 
Example #28
Source File: StatsSnapshot.java    From ambry with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void add(String str, StatsSnapshot statsSnapshot) {
  subMap = subMap == null ? new HashMap<>() : subMap;
  subMap.put(str, statsSnapshot);
}
 
Example #29
Source File: ServiceProvider.java    From basiclti-util-java with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void setAdditionalProperties(String name, Object value) {
    this.additionalProperties.put(name, value);
}
 
Example #30
Source File: ServiceOwnerName.java    From basiclti-util-java with Apache License 2.0 4 votes vote down vote up
@JsonAnySetter
public void setAdditionalProperties(String name, Object value) {
    this.additionalProperties.put(name, value);
}