org.apache.lucene.gdata.gom.core
Class GOMCategoryImpl

java.lang.Object
  extended by org.apache.lucene.gdata.gom.core.AbstractGOMElement
      extended by org.apache.lucene.gdata.gom.core.GOMCategoryImpl
All Implemented Interfaces:
AtomParser, GOMCategory, GOMElement, GOMXmlEntity

public class GOMCategoryImpl
extends AbstractGOMElement
implements GOMCategory

Author:
Simon Willnauer

Field Summary
protected  String label
           
protected  String scheme
           
protected  String term
           
 
Fields inherited from class org.apache.lucene.gdata.gom.core.AbstractGOMElement
extensionAttributes, localName, nsPrefix, nsUri, qname, textValue, xmlBase, xmlLang
 
Fields inherited from interface org.apache.lucene.gdata.gom.GOMCategory
LABLE_ATTRIBUTE, LOCALNAME, SCHEME_ATTRIBUTE, TERM_ATTRIBUTE
 
Fields inherited from interface org.apache.lucene.gdata.gom.GOMElement
XML_BASE, XML_LANG
 
Fields inherited from interface org.apache.lucene.gdata.gom.core.AtomParser
DUPLICATE_ATTRIBUTE, DUPLICATE_ELEMENT, DUPLICATE_ELEMENT_VALUE, INVALID_ATTRIBUTE, INVALID_ELEMENT_VALUE, MISSING_ELEMENT_ATTRIBUTE, MISSING_ELEMENT_CHILD, MISSING_ELEMENT_VALUE, MISSING_ELEMENT_VALUE_PLAIN, UNEXPECTED_ATTRIBUTE, UNEXPECTED_ELEMENT, UNEXPECTED_ELEMENT_CHILD, UNEXPECTED_ELEMENT_VALUE, URECOGNIZED_ELEMENT_CHILD
 
Constructor Summary
GOMCategoryImpl()
           
 
Method Summary
 String getLabel()
           
 String getScheme()
           
 String getTerm()
           
 void processAttribute(javax.xml.namespace.QName aQName, String aValue)
          
 void processEndElement()
          
 void setLabel(String aLabel)
           
 void setScheme(String aScheme)
           
 void setTerm(String aTerm)
           
 void writeAtomOutput(GOMOutputWriter aStreamWriter)
          Generates the xml element represented by this class in the ATOM 1.0 formate.
 void writeRssOutput(GOMOutputWriter aStreamWriter)
          Generates the xml element represented by this class in the RSS 2.0 formate.
 
Methods inherited from class org.apache.lucene.gdata.gom.core.AbstractGOMElement
addAttribute, getChildParser, getLocalName, getQname, getTextValue, getXmlBase, getXmlLang, getXmlNamespaceAttributes, processElementValue, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue, writeRssOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.lucene.gdata.gom.GOMElement
getXmlBase, getXmlLang, writeRssOutput
 
Methods inherited from interface org.apache.lucene.gdata.gom.GOMXmlEntity
getLocalName, getQname, getTextValue, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue
 
Methods inherited from interface org.apache.lucene.gdata.gom.core.AtomParser
getChildParser, processElementValue
 

Field Detail

term

protected String term

label

protected String label

scheme

protected String scheme
Constructor Detail

GOMCategoryImpl

public GOMCategoryImpl()
Method Detail

setTerm

public void setTerm(String aTerm)
Specified by:
setTerm in interface GOMCategory
Parameters:
aTerm - - the attribute term { text }
See Also:
GOMCategory.setTerm(java.lang.String)

setLabel

public void setLabel(String aLabel)
Specified by:
setLabel in interface GOMCategory
Parameters:
aLabel - - the attribute lable { text }
See Also:
GOMCategory.setLabel(java.lang.String)

setScheme

public void setScheme(String aScheme)
Specified by:
setScheme in interface GOMCategory
Parameters:
aScheme - - the attribute scheme { atomUri }
See Also:
GOMCategory.setScheme(java.lang.String)

getTerm

public String getTerm()
Specified by:
getTerm in interface GOMCategory
Returns:
the attribute term { text }
See Also:
GOMCategory.getTerm()

getScheme

public String getScheme()
Specified by:
getScheme in interface GOMCategory
Returns:
the attribute scheme { atomUri }
See Also:
GOMCategory.getScheme()

getLabel

public String getLabel()
Specified by:
getLabel in interface GOMCategory
Returns:
the attribute lable { text }
See Also:
GOMCategory.getLabel()

processAttribute

public void processAttribute(javax.xml.namespace.QName aQName,
                             String aValue)
Description copied from class: AbstractGOMElement

Specified by:
processAttribute in interface AtomParser
Overrides:
processAttribute in class AbstractGOMElement
See Also:
AbstractGOMElement.processAttribute(javax.xml.namespace.QName, java.lang.String)

processEndElement

public void processEndElement()
Description copied from class: AbstractGOMElement

Specified by:
processEndElement in interface AtomParser
Overrides:
processEndElement in class AbstractGOMElement
See Also:
AbstractGOMElement.processEndElement()

writeAtomOutput

public void writeAtomOutput(GOMOutputWriter aStreamWriter)
                     throws javax.xml.stream.XMLStreamException
Description copied from interface: GOMElement
Generates the xml element represented by this class in the ATOM 1.0 formate.

Specified by:
writeAtomOutput in interface GOMElement
Parameters:
aStreamWriter - - the GOMOutputWriter implementation to write the output
Throws:
javax.xml.stream.XMLStreamException - - if the GOMOutputWriter throws an exception
See Also:
org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

writeRssOutput

public void writeRssOutput(GOMOutputWriter aStreamWriter)
                    throws javax.xml.stream.XMLStreamException
Description copied from interface: GOMElement
Generates the xml element represented by this class in the RSS 2.0 formate.

Specified by:
writeRssOutput in interface GOMElement
Parameters:
aStreamWriter - - the GOMOutputWriter implementation to write the output
Throws:
javax.xml.stream.XMLStreamException - - if the GOMOutputWriter throws an exception
See Also:
org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.