|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMElementImpl
org.apache.abdera.parser.stax.FOMElement
org.apache.abdera.parser.stax.FOMExtensibleElement
org.apache.abdera.parser.stax.FOMContent
public class FOMContent
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.abdera.model.Content |
---|
Content.Type |
Field Summary | |
---|---|
protected Content.Type |
type
|
Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
---|
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName |
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
Fields inherited from interface org.apache.axiom.om.OMNode |
---|
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Fields inherited from interface org.apache.axiom.om.OMConstants |
---|
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI |
Constructor Summary | |
---|---|
|
FOMContent(Content.Type type)
|
protected |
FOMContent(Content.Type type,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMContent(Content.Type type,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMContent(QName qname,
Content.Type type,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMContent(QName qname,
Content.Type type,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMContent(String name,
org.apache.axiom.om.OMNamespace namespace,
Content.Type type,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
Method Summary | ||
---|---|---|
Object |
clone()
Clone this Base |
|
IRI |
getBaseUri()
Returns the value of this element's xml:base attribute or null if xml:base is
undefined. |
|
Content.Type |
getContentType()
Returns the Content Type |
|
javax.activation.DataHandler |
getDataHandler()
Attempts to Base64 decode the string value of the content element. |
|
String |
getLanguage()
Returns the value of this elements xml:lang attribute or null if xml:lang is undefined. |
|
javax.activation.MimeType |
getMimeType()
RFC4287: On the atom:content element, the value of the "type" attribute MAY be one of "text", "html", or "xhtml". |
|
IRI |
getResolvedBaseUri()
Returns the current in-scope, fully qualified Base URI for this element. |
|
IRI |
getResolvedSrc()
Returns the fully qualified URI form of the content src attribute. |
|
IRI |
getSrc()
RFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. |
|
String |
getValue()
Returns the string value of this atom:content element |
|
|
getValueElement()
Return the value element or null if type="text", type="html" or type is some non-XML media type |
|
String |
getWrappedValue()
Return the string value of the atom:content element with the enclosing div tag if type="xhtml" |
|
Content |
setContentType(Content.Type type)
Set the Content Type |
|
Content |
setDataHandler(javax.activation.DataHandler dataHandler)
Sets the string value of the content element by Base64 encoding the specifed byte array. |
|
Content |
setMimeType(String type)
RFC4287: On the atom:content element, the value of the "type" attribute MAY be one of "text", "html", or "xhtml". |
|
Content |
setSrc(String src)
RFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. |
|
|
setText(Content.Type type,
String value)
|
|
|
setText(String value)
|
|
Content |
setValue(String value)
Set the string value of the atom:content element |
|
|
setValueElement(T value)
Set the value element of the content. |
|
Content |
setWrappedValue(String wrappedValue)
Set the string value of the atom:content with the enclosing div tag |
Methods inherited from class org.apache.abdera.parser.stax.FOMExtensibleElement |
---|
addExtension, addExtension, addExtension, addExtension, addExtension, addExtensions, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension |
Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
---|
addAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerialize, internalSerializeAndConsume, isComplete, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
close, getOMFactory, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.abdera.model.Element |
---|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.apache.axiom.om.OMElement |
---|
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getTextAsQName, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
build, buildWithAttachments, close, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from interface org.apache.axiom.om.OMContainer |
---|
addChild, buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, isComplete |
Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx |
---|
setComplete |
Field Detail |
---|
protected Content.Type type
Constructor Detail |
---|
public FOMContent(Content.Type type)
protected FOMContent(String name, org.apache.axiom.om.OMNamespace namespace, Content.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory) throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMContent(QName qname, Content.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory)
protected FOMContent(QName qname, Content.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMXMLParserWrapper builder)
protected FOMContent(Content.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory) throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMContent(Content.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMXMLParserWrapper builder)
Method Detail |
---|
public final Content.Type getContentType()
Content
getContentType
in interface Content
public Content setContentType(Content.Type type)
Content
setContentType
in interface Content
type
- The Content Typepublic <T extends Element> T getValueElement()
Content
getValueElement
in interface Content
public <T extends Element> Content setValueElement(T value)
Content
setValueElement
in interface Content
value
- The element to setpublic javax.activation.MimeType getMimeType()
Content
getMimeType
in interface Content
public Content setMimeType(String type)
Content
setMimeType
in interface Content
type
- The media typepublic IRI getSrc()
Content
RFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. If the "src" attribute is present, atom:content MUST be empty. Atom Processors MAY use the IRI to retrieve the content and MAY choose to ignore remote content or to present it in a different manner than local content.
If the "src" attribute is present, the "type" attribute SHOULD be provided and MUST be a MIME media type, rather than "text", "html", or "xhtml".
getSrc
in interface Content
public IRI getResolvedSrc()
Content
getResolvedSrc
in interface Content
public Content setSrc(String src)
Content
RFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. If the "src" attribute is present, atom:content MUST be empty. Atom Processors MAY use the IRI to retrieve the content and MAY choose to ignore remote content or to present it in a different manner than local content.
If the "src" attribute is present, the "type" attribute SHOULD be provided and MUST be a MIME media type, rather than "text", "html", or "xhtml".
setSrc
in interface Content
src
- The IRI to use as the src attribute value for the contentpublic javax.activation.DataHandler getDataHandler()
Content
getDataHandler
in interface Content
public Content setDataHandler(javax.activation.DataHandler dataHandler)
Content
setDataHandler
in interface Content
dataHandler
- The DataHandler for the binary content requiring Base64 encodingpublic String getValue()
Content
getValue
in interface Content
public <T extends Element> T setText(Content.Type type, String value)
public <T extends Element> T setText(String value)
public Content setValue(String value)
Content
setValue
in interface Content
value
- The string valuepublic String getWrappedValue()
Content
getWrappedValue
in interface Content
public Content setWrappedValue(String wrappedValue)
Content
setWrappedValue
in interface Content
wrappedValue
- The string value with the wrapping div tagpublic IRI getBaseUri()
Element
xml:base
attribute or null if xml:base
is
undefined.
getBaseUri
in interface Element
getBaseUri
in class FOMElement
public IRI getResolvedBaseUri()
Element
getResolvedBaseUri
in interface Element
getResolvedBaseUri
in class FOMElement
public String getLanguage()
Element
xml:lang
attribute or null if xml:lang
is undefined.
getLanguage
in interface Element
getLanguage
in class FOMElement
public Object clone()
Base
clone
in interface Base
clone
in class FOMElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |