@Override public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException { ArrayList<XmlWriter.Attribute> attrs = new ArrayList<XmlWriter.Attribute>(); if (rel != null) { attrs.add(new XmlWriter.Attribute("rel", rel)); } if (href != null) { attrs.add(new XmlWriter.Attribute("href", href)); } if (readOnly) { attrs.add(new XmlWriter.Attribute("readOnly", "true")); } generateStartElement(w, Namespaces.gNs, "entryLink", attrs, null); if (entry != null) { ExtensionProfile nestedExtProfile = extProfile.getEntryLinkProfile(); if (nestedExtProfile == null) { nestedExtProfile = extProfile; } entry.generateAtom(w, nestedExtProfile); } // Invoke ExtensionPoint. generateExtensions(w, extProfile); w.endElement(Namespaces.gNs, "entryLink"); }
@Override public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException { ArrayList<XmlWriter.Attribute> attrs = new ArrayList<XmlWriter.Attribute>(); if (rel != null) { attrs.add(new XmlWriter.Attribute("rel", rel)); } if (href != null) { attrs.add(new XmlWriter.Attribute("href", href)); } if (readOnly) { attrs.add(new XmlWriter.Attribute("readOnly", "true")); } generateStartElement(w, Namespaces.gNs, "entryLink", attrs, null); if (entry != null) { ExtensionProfile nestedExtProfile = extProfile.getEntryLinkProfile(); if (nestedExtProfile == null) { nestedExtProfile = extProfile; } entry.generateAtom(w, nestedExtProfile); } // Invoke ExtensionPoint. generateExtensions(w, extProfile); w.endElement(Namespaces.gNs, "entryLink"); }
@Override public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException { ArrayList<XmlWriter.Attribute> attrs = new ArrayList<XmlWriter.Attribute>(); if (rel != null) { attrs.add(new XmlWriter.Attribute("rel", rel)); } if (href != null) { attrs.add(new XmlWriter.Attribute("href", href)); } if (readOnly) { attrs.add(new XmlWriter.Attribute("readOnly", "true")); } generateStartElement(w, Namespaces.gNs, "entryLink", attrs, null); if (entry != null) { ExtensionProfile nestedExtProfile = extProfile.getEntryLinkProfile(); if (nestedExtProfile == null) { nestedExtProfile = extProfile; } entry.generateAtom(w, nestedExtProfile); } // Invoke ExtensionPoint. generateExtensions(w, extProfile); w.endElement(Namespaces.gNs, "entryLink"); }