|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object yarfraw.core.datamodel.CategorySubject
public class CategorySubject
Rss 2.0: http://cyber.law.harvard.edu/rss/rss.html#syndic8
Rss 1.0: http://dublincore.org/documents/1999/07/02/dces/ - 'Dublin Core'
Atom 1.0: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html#rfc.section.4.2.2
Field Summary | |
---|---|
protected String |
_about
|
protected String |
_base
|
protected String |
_lang
|
protected Map<QName,String> |
_otherAttributes
|
protected List<Element> |
_otherElements
|
protected String |
_resource
|
Constructor Summary | |
---|---|
CategorySubject()
|
|
CategorySubject(String categoryOrSubjectOrTerm)
Creates a new category object. |
Method Summary | |
---|---|
CategorySubject |
addOtherAttributes(QName namespace,
String attribute)
Add an attribute that is not in the RSS 2.0 specs. |
CategorySubject |
addOtherElement(Element element)
Add an element that is not specified in the Rss specs. **Note** The element should not have an empty namespace to avoid collision with the specs elements. |
CategorySubject |
addOtherElement(String xmlString)
Add an element that is not specified in the Rss specs. **Note** The element should not have an empty namespace to avoid collision with the specs elements. |
boolean |
equals(Object other)
|
String |
getAbout()
This maps to the required 'about' attribute that present of all second level elements (channel, image, item, and textinput). |
String |
getAttributeValueByLocalName(String localName)
Search for attributes that are not in the spec by its local name. |
String |
getAttributeValueByQName(QName name)
Search for attributes that are not in the spec by its QName . |
String |
getBase()
This maps to the 'base' attribute that is common in all Atom 1.0 elements. |
String |
getCategoryOrSubjectOrTerm()
Rss 2.0 - Specify one or more categories that the channel belongs to. |
String |
getDomainOrScheme()
Rss 2.0 - a string that identifies a categorization taxonomy. |
Element |
getElementByLocalName(String localName)
Search through the other element list and return the FIRST element that matches the input localName. |
Element |
getElementByNS(String namespaceURI,
String localName)
Search through the other element list and return the first element that matches both input the namespaceURI and the localName. |
String |
getLabel()
This value is only used by Atom 1.0, it is ignored by other FeedFormat . |
String |
getLang()
The language attribute indicates the language that is used by the enclosed element. |
Locale |
getLangAsLocale()
The language attribute indicates the language that is used by the enclosed element. |
Map<QName,String> |
getOtherAttributes()
Any other attribute that is not in the RSS specs. |
List<Element> |
getOtherElements()
Other additional elements that are not in the Rss specs. |
String |
getResource()
This maps to the optional 'resource' attribute that present in some Rss 1.0 elements. |
int |
hashCode()
|
CategorySubject |
setAbout(String about)
Rss 1.0 only |
CategorySubject |
setBase(String base)
Atom 1.0 only Any element defined by this specification MAY have an xml:base attribute [W3C.REC-xmlbase-20010627]. |
CategorySubject |
setCategoryOrSubjectOrTerm(String categoryOrSubjectOrTerm)
Rss 2.0 - Specify one or more categories that the channel belongs to. |
CategorySubject |
setDomainOrScheme(String domainOrScheme)
Rss 2.0 - a string that identifies a categorization taxonomy. |
CategorySubject |
setLabel(String label)
This value is only used by Atom 1.0, it is ignored by other FeedFormat . |
CategorySubject |
setLang(Locale lang)
Rss 2.0 - <language> element. |
CategorySubject |
setLang(String lang)
Rss 2.0 - <language> element. |
CategorySubject |
setOtherAttributes(Map<QName,String> otherAttributes)
Any other attribute that is not in the RSS 2.0 specs. |
CategorySubject |
setOtherElements(List<Element> otherElements)
Other additional elements that are not in the Rss specs. **Note** The element should not have an empty namespace to avoid collision with the specs elements. |
CategorySubject |
setResource(String resource)
Rss 1.0 only |
String |
toString()
|
void |
validate(FeedFormat format)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String _base
protected String _lang
protected String _resource
protected String _about
protected Map<QName,String> _otherAttributes
protected List<Element> _otherElements
Constructor Detail |
---|
public CategorySubject()
public CategorySubject(String categoryOrSubjectOrTerm)
categoryOrSubjectOrTerm
- Method Detail |
---|
public String getLabel()
FeedFormat
.
public CategorySubject setLabel(String label)
FeedFormat
.
label
- label value
public String getCategoryOrSubjectOrTerm()
public CategorySubject setCategoryOrSubjectOrTerm(String categoryOrSubjectOrTerm)
categoryOrSubjectOrTerm
- public String getDomainOrScheme()
public CategorySubject setDomainOrScheme(String domainOrScheme)
domainOrScheme
- - the value of the attribute
public CategorySubject setOtherAttributes(Map<QName,String> otherAttributes)
public CategorySubject addOtherAttributes(QName namespace, String attribute)
public CategorySubject setOtherElements(List<Element> otherElements)
public CategorySubject addOtherElement(Element element)
element
- - any elementpublic CategorySubject addOtherElement(String xmlString) throws SAXException, IOException, ParserConfigurationException
xmlString
- - any element
ParserConfigurationException
IOException
SAXException
public CategorySubject setBase(String base)
base
-
public CategorySubject setLang(String lang)
lang
-
public CategorySubject setLang(Locale lang)
lang
-
public CategorySubject setResource(String resource)
resource
-
public CategorySubject setAbout(String about)
about
-
public void validate(FeedFormat format) throws ValidationException
ValidationException
public String getBase()
FeedFormat
will ignore this attribute.
public String getLang()
public Locale getLangAsLocale()
public String getResource()
FeedFormat
will ignore this attribute.
public String getAbout()
FeedFormat
will ignore this attribute.
public List<Element> getOtherElements()
public Element getElementByNS(String namespaceURI, String localName)
namespaceURI
- - namespaceURI of the element to be search forlocalName
- - localName of the element
public Element getElementByLocalName(String localName)
localName
- - localName of the element
public Map<QName,String> getOtherAttributes()
public String getAttributeValueByLocalName(String localName)
localName
- localName of the attribute
public String getAttributeValueByQName(QName name)
QName
.
name
- QName
of the attribute
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |