Methods Summary |
---|
protected void | addAttribute(org.apache.lucene.gdata.gom.GOMAttribute aAttribute)
if (aAttribute != null)
this.extensionAttributes.add(aAttribute);
|
public AtomParser | getChildParser(javax.xml.namespace.QName aName){@inheritDoc}
throw new GDataParseException(String.format(UNEXPECTED_ELEMENT_CHILD,
this.qname));
|
public java.lang.String | getLocalName(){@inheritDoc}
return this.localName;
|
public javax.xml.namespace.QName | getQname(){@inheritDoc}
return this.qname;
|
public java.lang.String | getTextValue(){@inheritDoc}
return this.textValue;
|
public java.lang.String | getXmlBase(){@inheritDoc}
return this.xmlBase;
|
public java.lang.String | getXmlLang(){@inheritDoc}
return this.xmlLang;
|
protected java.util.List | getXmlNamespaceAttributes()
List<GOMAttribute> retVal = new LinkedList<GOMAttribute>();
if (this.xmlBase != null)
retVal.add(new GOMAttributeImpl(GOMNamespace.XML_NS_URI,
GOMNamespace.XML_NS_PREFIX, "base", this.xmlBase));
if (this.xmlLang != null)
retVal.add(new GOMAttributeImpl(GOMNamespace.XML_NS_URI,
GOMNamespace.XML_NS_PREFIX, "lang", this.xmlLang));
return retVal;
|
public void | processAttribute(javax.xml.namespace.QName aQName, java.lang.String aValue){@inheritDoc}
if (aQName == null)
throw new GDataParseException("QName must not be null");
if (aQName.getNamespaceURI().equals(GOMNamespace.XML_NS_URI)) {
if (aQName.getLocalPart().equals(XML_BASE))
this.xmlBase = aValue;
else if (aQName.getLocalPart().equals(XML_LANG))
this.xmlLang = aValue;
} else {
GOMAttributeImpl impl = new GOMAttributeImpl(aQName
.getNamespaceURI(), aQName.getPrefix(), aQName
.getLocalPart(), aValue);
this.addAttribute(impl);
}
|
public void | processElementValue(java.lang.String aValue){@inheritDoc}
throw new GDataParseException(String.format(UNEXPECTED_ELEMENT_VALUE,
this.qname));
|
public void | processEndElement(){@inheritDoc}
// no post processing
|
public void | setLocalName(java.lang.String aLocalName){@inheritDoc}
// must override
|
public void | setNamespacePrefix(java.lang.String aString){@inheritDoc}
this.nsPrefix = aString;
|
public void | setNamespaceUri(java.lang.String aString){@inheritDoc}
this.nsUri = aString;
|
public void | setTextValue(java.lang.String aTextValue){@inheritDoc}
this.textValue = aTextValue;
|
public void | writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter, java.lang.String aRssName){@inheritDoc}
|