org.apache.wink.common.model.atom
Class AtomCommonAttributesSimpleContent

java.lang.Object
  extended by org.apache.wink.common.model.atom.AtomCommonAttributesSimpleContent
Direct Known Subclasses:
AppAccept, AtomGenerator

public class AtomCommonAttributesSimpleContent
extends java.lang.Object

Common attributes Per RFC4287

 Any element defined by this specification MAY have an xml:base attribute
 [W3C.REC-xmlbase-20010627]. When xml:base is used in an Atom Document, it serves the function
 described in section 5.1.1 of [RFC3986], establishing the base URI (or IRI) for resolving any
 relative references found within the effective scope of the xml:base attribute.
 
 Any element defined by this specification MAY have an xml:lang attribute, whose content indicates
 the natural language for the element and its descendents. The language context is only
 significant for elements and attributes declared to be "Language- Sensitive" by this
 specification. Requirements regarding the content and interpretation of xml:lang are specified in
 XML 1.0 [W3C.REC-xml-20040204], Section 2.12.
 
  atomCommonAttributes =
     attribute xml:base { atomUri }?,
     attribute xml:lang { atomLanguageTag }?,
     undefinedAttribute*
 


Field Summary
protected  java.lang.String base
           
protected  java.lang.String lang
           
protected  java.lang.String value
           
 
Constructor Summary
AtomCommonAttributesSimpleContent()
           
AtomCommonAttributesSimpleContent(SyndSimpleContent value)
           
 
Method Summary
 java.lang.String getBase()
          Gets the value of base.
 java.lang.String getLang()
          Gets the value of lang.
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
          Gets a map that contains attributes that aren't bound to any typed on this class.
 java.lang.String getValue()
          Gets the value of value.
 void setBase(java.lang.String value)
          Sets the value of base.
 void setLang(java.lang.String value)
          Sets the value of lang.
 void setValue(java.lang.String value)
          Sets the value of value.
protected  SyndSimpleContent toSynd(SyndSimpleContent value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected java.lang.String value

base

protected java.lang.String base

lang

protected java.lang.String lang
Constructor Detail

AtomCommonAttributesSimpleContent

public AtomCommonAttributesSimpleContent()

AtomCommonAttributesSimpleContent

public AtomCommonAttributesSimpleContent(SyndSimpleContent value)
Method Detail

toSynd

protected SyndSimpleContent toSynd(SyndSimpleContent value)

getValue

public java.lang.String getValue()
Gets the value of value.


setValue

public void setValue(java.lang.String value)
Sets the value of value.


getBase

public java.lang.String getBase()
Gets the value of base.


setBase

public void setBase(java.lang.String value)
Sets the value of base.


getLang

public java.lang.String getLang()
Gets the value of lang.


setLang

public void setLang(java.lang.String value)
Sets the value of lang.


getOtherAttributes

public java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed 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 © 2009-2013 The Apache Software Foundation. All Rights Reserved.