yarfraw.generated.rss10.elements
Class TRss10Item

java.lang.Object
  extended by yarfraw.generated.rss10.elements.TRss10Item

public class TRss10Item
extends Object

While commonly a news headline, with RSS 1.0's modular extensibility, this can be just about anything: discussion posting, job listing, software patch -- any object with a URI. There may be a minimum of one item per RSS document. While RSS 1.0 does not enforce an upper limit, for backward compatibility with RSS 0.9 and 0.91, a maximum of fifteen items is recommended. {item_uri} must be unique with respect to any other rdf:about attributes in the RSS document and is a URI which identifies the item. {item_uri} should be identical to the value of the 'link' sub-element of the 'item' element, if possible.

Java class for tRss10Item complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="tRss10Item">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <choice maxOccurs="unbounded">
           <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
           <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
           <element name="link" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
           <element ref="{http://purl.org/dc/elements/1.1/}creator" minOccurs="0"/>
           <element ref="{http://purl.org/dc/elements/1.1/}rights" minOccurs="0"/>
           <element ref="{http://purl.org/dc/elements/1.1/}subject" maxOccurs="unbounded" minOccurs="0"/>
           <element ref="{http://purl.org/dc/elements/1.1/}date" minOccurs="0"/>
           <element ref="{http://purl.org/dc/elements/1.1/}contributor" minOccurs="0"/>
           <any/>
         </choice>
       </sequence>
       <attribute ref="{http://www.w3.org/1999/02/22-rdf-syntax-ns#}about use="required""/>
       <attribute ref="{http://www.w3.org/1999/02/22-rdf-syntax-ns#}resource"/>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String about
           
protected  String resource
           
protected  List<Object> titleOrDescriptionOrLink
           
 
Constructor Summary
TRss10Item()
           
 
Method Summary
 String getAbout()
          Gets the value of the about property.
 Map<QName,String> getOtherAttributes()
          Gets a map that contains attributes that aren't bound to any typed property on this class.
 String getResource()
          Gets the value of the resource property.
 List<Object> getTitleOrDescriptionOrLink()
          Gets the value of the titleOrDescriptionOrLink property.
 void setAbout(String value)
          Sets the value of the about property.
 void setResource(String value)
          Sets the value of the resource property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

titleOrDescriptionOrLink

protected List<Object> titleOrDescriptionOrLink

about

protected String about

resource

protected String resource
Constructor Detail

TRss10Item

public TRss10Item()
Method Detail

getTitleOrDescriptionOrLink

public List<Object> getTitleOrDescriptionOrLink()
Gets the value of the titleOrDescriptionOrLink property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the titleOrDescriptionOrLink property.

For example, to add a new item, do as follows:

    getTitleOrDescriptionOrLink().add(newItem);
 

Objects of the following type(s) are allowed in the list JAXBElement<DcType> JAXBElement<String> JAXBElement<String> JAXBElement<DcType> JAXBElement<DcType> JAXBElement<DcType> JAXBElement<DcType> Element JAXBElement<String>


getAbout

public String getAbout()
Gets the value of the about property.

Returns:
possible object is String

setAbout

public void setAbout(String value)
Sets the value of the about property.

Parameters:
value - allowed object is String

getResource

public String getResource()
Gets the value of the resource property.

Returns:
possible object is String

setResource

public void setResource(String value)
Sets the value of the resource property.

Parameters:
value - allowed object is String

getOtherAttributes

public Map<QName,String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.

the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

Returns:
always non-null


Copyright © 2008. All Rights Reserved.