@XmlPath("contact-info/phone-number") public List<PhoneNumber> getPhoneNumbers() { return phoneNumbers; }
next.setXmlPath(nextPath.value());
next.setXmlPath(nextPath.value());
@XmlPath("contact-info/address") public Address getAddress() { return address; }
property.setXmlPath(xmlPath.value()); Field tempField = new XMLField(xmlPath.value()); boolean isAttribute = tempField.getLastXPathFragment().isAttribute(); property.setIsAttribute(isAttribute); String schemaName = XMLProcessor.getNameFromXPath(xmlPath.value(), property.getPropertyName(), isAttribute); QName qName; NamespaceInfo nsInfo = getPackageInfoForPackage(cls).getNamespaceInfo();
@XmlPath("personal-info/name/text()") public String getName() { return name; }
property.setXmlPath(xmlPath.value()); Field tempField = new XMLField(xmlPath.value()); boolean isAttribute = tempField.getLastXPathFragment().isAttribute(); property.setIsAttribute(isAttribute); String schemaName = XMLProcessor.getNameFromXPath(xmlPath.value(), property.getPropertyName(), isAttribute); QName qName; NamespaceInfo nsInfo = getPackageInfoForPackage(cls).getNamespaceInfo();
private String text; @XmlPath("user/profile_image_url/text()") private String profileImg;
@XmlPath("_link/@rel") public String getRel() { return rel; }
@XmlPath("_link/@method") public String getMethod() { return method; }
@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/@href") public String getHref() { return href; }
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; }
@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()); } }
/** * Get the metric value * * @return * @since 1.0.0 */ @XmlElement(name = "value") @XmlPath(".") T getValue();
/** * 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;