Methods Summary |
---|
public java.lang.String | getGeneratorVersion()
return this.generatorVersion;
|
public java.lang.String | getUri()
return this.uri;
|
public void | processAttribute(javax.xml.namespace.QName aQName, java.lang.String aValue)
if (aQName == null)
throw new IllegalArgumentException("Qname must not be null");
if (aValue == null)
throw new IllegalArgumentException("Value must not be null");
if (aQName.getNamespaceURI().equals(GOMNamespace.ATOM_NS_URI)) {
if (aQName.getLocalPart().equals("uri")) {
if (this.uri != null)
throw new GDataParseException(String.format(
AtomParser.DUPLICATE_ATTRIBUTE, "uri"));
this.uri = aValue;
} else if (aQName.getLocalPart().equals("version")) {
if (this.generatorVersion != null)
throw new GDataParseException(String.format(
AtomParser.DUPLICATE_ATTRIBUTE, "version"));
this.generatorVersion = aValue;
}
}
super.processAttribute(aQName, aValue);
|
public void | processElementValue(java.lang.String aValue)
if (this.textValue != null)
throw new GDataParseException(String.format(
AtomParser.DUPLICATE_ELEMENT_VALUE, this.localName));
this.textValue = aValue;
|
public void | processEndElement()
if (this.uri != null)
try {
AtomParserUtils.getAbsolutAtomURI(this.xmlBase, this.uri);
} catch (URISyntaxException e) {
throw new GDataParseException(String.format(
AtomParser.INVALID_ELEMENT_VALUE, this.localName,
"absolute uri"));
}
|
public void | setGeneratorVersion(java.lang.String aVersion)
this.generatorVersion = aVersion;
|
public void | setUri(java.lang.String aUri)
this.uri = aUri;
|
public void | writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
List<GOMAttribute> list = getXmlNamespaceAttributes();
if (this.uri != null)
list.add(new GOMAttributeImpl("uri", this.uri));
if (this.generatorVersion != null)
list.add(new GOMAttributeImpl("version", this.generatorVersion));
aStreamWriter.writeSimpleXMLElement(this.qname, list, this.textValue);
|
public void | writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
aStreamWriter.writeSimpleXMLElement(this.localName,
getXmlNamespaceAttributes(), this.textValue);
|