@XmlPath("contact-info/address") public Address getAddress() { return address; }
@XmlPath("contact-info/phone-number") public List<PhoneNumber> getPhoneNumbers() { return phoneNumbers; }
@XmlPath("personal-info/name/text()") public String getName() { return name; }
private String text; @XmlPath("user/profile_image_url/text()") private String profileImg;
@XmlPath("_link/@href") public String getHref() { return href; }
@XmlPath("_link/@rel") public String getRel() { return rel; }
@XmlPath("_link/@method") public String getMethod() { return method; }
@XmlPath("_link/@rel") public String getRel() { return rel; }
@XmlPath("_link/@method") public String getMethod() { return method; }
@XmlPath("_link/@href") public String getHref() { return href; }
/** * Get the metric value * * @return * @since 1.0.0 */ @XmlElement(name = "value") @XmlPath(".") T getValue();
@XmlSeeAlso({Author.class, Editor.class, Contributor.class}) static abstract class XMLContribution { @XmlPath(".") private Contribution c; XMLContribution is(Contribution c) { this.c = c; return this; } ContributorRole getRole() { return ContributorRole.valueOf(getClass().getSimpleName().toUpperCase()); } }
static class Abstract { Abstract() { /* for JAXB */ } Abstract(String lang, String value) { this.lang = lang; this.value = value; } @XmlPath("@xml:lang") private String lang; @XmlValue private String value; }
/** * Get the metric value * * @return * @since 1.0.0 */ @XmlElement(name = "value") @XmlPath(".") T getValue();
static class LangKeywords { LangKeywords() { /* for JAXB */ } LangKeywords(String lang, List<String> values) { this.lang = lang; this.ks = values; } @XmlPath("@xml:lang") private String lang; @XmlElement private List<String> ks; }
@XmlPath(".") @XmlJavaTypeAdapter(MixedContentAdapter.class) private String m_content;