Methods Summary |
---|
public AtomParser | getChildParser(javax.xml.namespace.QName aName)
if (aName == null)
throw new GDataParseException("QName must not be null");
if (aName.getNamespaceURI().equals(GOMNamespace.ATOM_NS_URI)) {
if (aName.getLocalPart().equals(NAME_LOCAL_NAME))
return this.new NameParser();
if (aName.getLocalPart().equals(URI_LOCAL_NAME))
return this.new UriParser();
if (aName.getLocalPart().equals(EMAIL_LOCAL_NAME))
return this.new EmailParser();
}
return super.getChildParser(aName);
|
public java.lang.String | getEmail()
return this.email;
|
public java.lang.String | getName()
return this.name;
|
public java.lang.String | getUri()
return this.uri;
|
public void | processEndElement()
if (this.name == null)
throw new GDataParseException(String.format(
AtomParser.MISSING_ELEMENT_CHILD, this.localName,
NAME_LOCAL_NAME));
|
public void | setEmail(java.lang.String aEmail)
this.email = aEmail;
|
public void | setName(java.lang.String aName)
this.name = aName;
|
public void | setUri(java.lang.String aUri)
this.uri = aUri;
|
public void | writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
if (aStreamWriter == null)
throw new GDataParseException("GOMWriter must not be null");
List<GOMAttribute> list = getXmlNamespaceAttributes();
if (this.xmlLang != null) {
list = new ArrayList<GOMAttribute>(1);
list.add(GOMUtils
.buildXMLNamespaceAttribute(this.xmlLang, XML_LANG));
}
aStreamWriter.writeStartElement(this.qname, list);
aStreamWriter.writeSimpleXMLElement(NAME_LOCAL_NAME, this.name, null);
if (this.email != null)
aStreamWriter.writeSimpleXMLElement(EMAIL_LOCAL_NAME, this.email,
null);
if (this.uri != null)
aStreamWriter.writeSimpleXMLElement(URI_LOCAL_NAME, this.uri, null);
aStreamWriter.writeEndElement();
|
public void | writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter, java.lang.String aRssName)
if (aStreamWriter == null)
throw new GDataParseException("GOMWriter must not be null");
StringBuilder builder = new StringBuilder("");
if (this.email != null)
builder.append(this.email);
if (this.name != null)
builder.append("(").append(this.name).append(")");
aStreamWriter.writeSimpleXMLElement(aRssName,
getXmlNamespaceAttributes(), builder.toString());
|
public void | writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
//
|