public abstract class Content extends Object implements IContent
| Modifier and Type | Class and Description |
|---|---|
static class |
Content.ChildHandlerInfo
Return type for
getChildHandler(ExtensionProfile, Attributes) contains an
element handler and a content element. |
IContent.Type| Constructor and Description |
|---|
Content() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
generateAtom(XmlWriter w,
ExtensionProfile extProfile)
Generates XML in the Atom format.
|
abstract void |
generateRss(XmlWriter w,
ExtensionProfile extProfile)
Generates XML in the RSS format.
|
static Content.ChildHandlerInfo |
getChildHandler(ExtensionProfile extProfile,
Attributes attrs)
Parses XML in the Atom format.
|
abstract String |
getLang()
Returns the human language that this content is written in.
|
abstract int |
getType()
Returns this content's type.
|
public abstract int getType()
IContent.Type for the set of
expected values.public abstract String getLang()
public abstract void generateAtom(XmlWriter w, ExtensionProfile extProfile) throws IOException
w - output writerextProfile - extension profile for nested extensions.IOExceptionpublic abstract void generateRss(XmlWriter w, ExtensionProfile extProfile) throws IOException
w - output writerextProfile - extension profile for nested extensions.IOExceptionpublic static Content.ChildHandlerInfo getChildHandler(ExtensionProfile extProfile, Attributes attrs) throws ParseException, IOException
extProfile - ExtensionProfile used for nested content.attrs - XML attributes of the Content node.
Used to determine the type of this node.ParseExceptionIOExceptionCopyright © 2012. All Rights Reserved.