/** * Returns the XML namespace associated with the Atom Publishing * Protocol. */ public static final XmlNamespace getAtomPubNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? atomPubNs : atomPubStandardNs; }
/** * Returns the XML namespace associated with OpenSearch. */ public static final XmlNamespace getOpenSearchNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? openSearchNs : openSearch1_1Ns; }
/** * Returns the XML namespace associated with OpenSearch Description. */ public static final XmlNamespace getOpenSearchDescNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? openSearchDescNs : openSearchDesc1_1Ns; }
/** * Returns the ContentType that should be used in contexts that expect * an Atom entry. */ public static ContentType getAtomEntry() { // Use the unqualifed type for v1, the qualifed one for later versions return Service.getVersion().isCompatible(Service.Versions.V1) ? ATOM : ATOM_ENTRY; }
@Override public void processEndElement() { if (value == null) { value = ""; } if (coreVersion.isCompatible(Service.Versions.V1)) { accepts = Arrays.asList(value.split(",")); } else { addAccept(value); } } }
/** * Returns the ContentType that should be used in contexts that expect * an Atom feed. */ public static ContentType getAtomFeed() { // Use the unqualified type for v1, the qualified one for later versions return Service.getVersion().isCompatible(Service.Versions.V1) ? ATOM : ATOM_FEED; }
/** * Returns the ContentType that should be used in contexts that expect * an Atom feed. */ public static ContentType getAtomFeed() { // Use the unqualified type for v1, the qualified one for later versions return Service.getVersion().isCompatible(Service.Versions.V1) ? ATOM : ATOM_FEED; }
/** * Returns the XML writer namespace associated with the Atom Publishing * Protocol. */ public static final XmlNamespace getAtomPubNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? atomPubNs : atomPubStandardNs; }
/** * Returns the XML namespace associated with OpenSearch Description. */ public static final XmlNamespace getOpenSearchDescNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? openSearchDescNs : openSearchDesc1_1Ns; }
/** * Returns the XML writer namespace associated with OpenSearch Description. */ public static final XmlNamespace getOpenSearchDescNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? openSearchDescNs : openSearchDesc1_1Ns; }
/** * Returns the ContentType that should be used in contexts that expect * an Atom entry. */ public static ContentType getAtomEntry() { // Use the unqualifed type for v1, the qualifed one for later versions return Service.getVersion().isCompatible(Service.Versions.V1) ? ATOM : ATOM_ENTRY; }
/** * Returns the ContentType that should be used in contexts that expect * an Atom entry. */ public static ContentType getAtomEntry() { // Use the unqualifed type for v1, the qualifed one for later versions return Service.getVersion().isCompatible(Service.Versions.V1) ? ATOM : ATOM_ENTRY; }
/** * Returns the XML namespace associated with OpenSearch. */ public static final XmlNamespace getOpenSearchNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? openSearchNs : openSearch1_1Ns; }
/** * Returns the XML writer namespace associated with OpenSearch. */ public static final XmlNamespace getOpenSearchNs() { return Service.getVersion().isCompatible(Service.Versions.V1) ? openSearchNs : openSearch1_1Ns; }
@Override public void processEndElement() { if (value == null) { value = ""; } if (coreVersion.isCompatible(Service.Versions.V1)) { accepts = Arrays.asList(value.split(",")); } else { addAccept(value); } } }
@Override public void consumeAttributes(AttributeHelper attrHelper) throws ParseException { if (coreVersion.isCompatible(Service.Versions.V1)) { String titleAttr = attrHelper.consume("title", true); title = new PlainTextConstruct(titleAttr); } }
@Override public void consumeAttributes(AttributeHelper attrHelper) throws ParseException { if (coreVersion.isCompatible(Service.Versions.V1)) { String titleAttr = attrHelper.consume("title", true); title = new PlainTextConstruct(titleAttr); } }
@Override public void consumeAttributes(AttributeHelper attrHelper) throws ParseException { href = attrHelper.consume("href", true); if (coreVersion.isCompatible(Service.Versions.V1)) { String titleAttr = attrHelper.consume("title", true); title = new PlainTextConstruct(titleAttr); } }
@Override public void consumeAttributes(AttributeHelper attrHelper) throws ParseException { href = attrHelper.consume("href", true); if (coreVersion.isCompatible(Service.Versions.V1)) { String titleAttr = attrHelper.consume("title", true); title = new PlainTextConstruct(titleAttr); } }
@Override public void consumeAttributes(AttributeHelper attrHelper) throws ParseException { href = attrHelper.consume("href", true); if (coreVersion.isCompatible(Service.Versions.V1)) { String titleAttr = attrHelper.consume("title", true); title = new PlainTextConstruct(titleAttr); } }