Java Examples for com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty
The following java examples will help you to understand the usage of com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty. These source code samples are taken from different open source projects.
Example 1
| Project: opencit-master File: TpmEndorsementCollection.java View source code |
// jackson 2.0
@JsonInclude(JsonInclude.Include.ALWAYS)
@JacksonXmlElementWrapper(localName = "tpm_endorsements")
@JacksonXmlProperty(localName = "tpm_endorsement")
public List<TpmEndorsement> getTpmEndorsements() {
return tpmEndorsements;
}Example 2
| Project: jackson-dataformat-xml-master File: TestConflictingGetters.java View source code |
@JacksonXmlElementWrapper(localName = "beanInfo")
@JacksonXmlProperty(localName = "item")
public BeanInfo[] getBeanInfo() {
return beanInfo;
}Example 3
| Project: dropwizard-xml-master File: Ship.java View source code |
@JacksonXmlProperty(localName = "ShipCaptain")
public String getCaptain() {
// avoid a infinite loop by returning Captain name instead of Captain object.
return shipCaptain.getNickName();
}Example 4
| Project: ctatt-gtfsrealtime-master File: Train.java View source code |
@JacksonXmlProperty(localName = "prdt")
public void setPredictionTimestamp(String predictionTimestamp) throws ParseException {
this.predictionTimestamp = DateUtils.parseTimestamp(predictionTimestamp);
}Example 5
| Project: spring-social-slideshare-master File: SlideshowIdHolderMixin.java View source code |
// Using proper element name. returned by edit and upload APIs
@JacksonXmlProperty(localName = "SlideShowID")
public SlideshowIdHolderBuilder withCorrectName(String id) {
this.id = id;
return this;
}Example 6
| Project: blood-shepherd-master File: ManufacturingParameters.java View source code |
@JacksonXmlProperty(isAttribute = true)
public String getHardwarePartNumber() {
return hardwarePartNumber;
}