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

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

public class GOMLinkImpl
extends AbstractGOMElement
implements GOMLink

element atom:link { atomCommonAttributes, attribute href { atomUri }, attribute rel { atomNCName | atomUri }?, attribute type { atomMediaType }?, attribute hreflang { atomLanguageTag }?, attribute title { text }?, attribute length { text }?, undefinedContent }

Author:
Simon Willnauer

Field Summary
 
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.GOMLink
LOCALNAME
 
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
GOMLinkImpl()
           
 
Method Summary
 String getHref()
           
 String getHrefLang()
           
 Integer getLength()
           
 String getRel()
           
 String getTitle()
           
 String getType()
           
 void processAttribute(javax.xml.namespace.QName aQName, String aValue)
          
 void processEndElement()
          
 void setHref(String aHref)
           
 void setHrefLang(String aHrefLang)
           
 void setLength(Integer aLength)
           
 void setRel(String aRel)
           
 void setTitle(String aTitle)
           
 void setType(String aType)
           
 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
 

Constructor Detail

GOMLinkImpl

public GOMLinkImpl()
Method Detail

getHref

public String getHref()
Specified by:
getHref in interface GOMLink
Returns:
- the href attribute value of the element link
See Also:
GOMLink.getHref()

setHref

public void setHref(String aHref)
Specified by:
setHref in interface GOMLink
Parameters:
aHref - - the href attribute value of the element link to set.
See Also:
GOMLink.setHref(java.lang.String)

getHrefLang

public String getHrefLang()
Specified by:
getHrefLang in interface GOMLink
Returns:
the hreflang attribute value of the element link
See Also:
GOMLink.getHrefLang()

setHrefLang

public void setHrefLang(String aHrefLang)
Specified by:
setHrefLang in interface GOMLink
Parameters:
aHrefLang - - the hreflang attribute value of the element link to set.
See Also:
GOMLink.setHrefLang(java.lang.String)

getLength

public Integer getLength()
Specified by:
getLength in interface GOMLink
Returns:
- the length attribute value of the element link.
See Also:
GOMLink.getLength()

setLength

public void setLength(Integer aLength)
Specified by:
setLength in interface GOMLink
Parameters:
aLength - - the length attribute value of the element link to set.
See Also:
org.apache.lucene.gdata.gom.GOMLink#setLength(java.lang.String)

getRel

public String getRel()
Specified by:
getRel in interface GOMLink
Returns:
- the rel attribute value of the element link.
See Also:
GOMLink.getRel()

setRel

public void setRel(String aRel)
Specified by:
setRel in interface GOMLink
Parameters:
aRel - - the rel attribute value of the element link to set
See Also:
GOMLink.setRel(java.lang.String)

getTitle

public String getTitle()
Specified by:
getTitle in interface GOMLink
Returns:
- the title attribute value of the element link.
See Also:
GOMLink.getTitle()

setTitle

public void setTitle(String aTitle)
Specified by:
setTitle in interface GOMLink
Parameters:
aTitle - - the title attribute value of the element link to set
See Also:
GOMLink.setTitle(java.lang.String)

getType

public String getType()
Specified by:
getType in interface GOMLink
Returns:
- the type attribute value of the element link.
See Also:
GOMLink.getType()

setType

public void setType(String aType)
Specified by:
setType in interface GOMLink
Parameters:
aType - - the type attribute value of the element link.
See Also:
GOMLink.setType(java.lang.String)

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.