public abstract class Content extends java.lang.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,
org.xml.sax.Attributes attrs)
Parses XML in the Atom format.
|
abstract java.lang.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 java.lang.String getLang()
public abstract void generateAtom(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
w
- output writerextProfile
- extension profile for nested extensions.java.io.IOException
public abstract void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
w
- output writerextProfile
- extension profile for nested extensions.java.io.IOException
public static Content.ChildHandlerInfo getChildHandler(ExtensionProfile extProfile, org.xml.sax.Attributes attrs) throws ParseException, java.io.IOException
extProfile
- ExtensionProfile used for nested content.attrs
- XML attributes of the Content node.
Used to determine the type of this node.ParseException
java.io.IOException