Interface XMLBlock
-
- All Superinterfaces:
BaseAsset,Block,FolderContainedAsset,MetadataAwareAsset,NamedAsset,PermissionsCapableAsset
public interface XMLBlock extends Block
Represents an XMLBlock asset.- Since:
- 4.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetXML()Get the XML content of this block.org.jdom.ElementgetXMLAsXMLElement()Get the block's XML content as XML element instead of String.-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.BaseAsset
getAssetId, getAssetType, getIdentifer
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.Block
getBlockType
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.FolderContainedAsset
getCreatedBy, getCreatedOn, getFolderOrder, getIdentifier, getLastModified, getLastModifiedBy, getParentFolder, getParentFolderIdentifier, getPath, getSite, getSiteId, getSiteName, getTags, isHideSystemName, setHideSystemName, setParentFolder, setParentFolderIdentifier
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.MetadataAwareAsset
getLabel, getLinkingAssets, getMetadata, getMetadataSet, getMetadataSetId
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.NamedAsset
getName, setName
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.PermissionsCapableAsset
isCurrentUserCanRead, isCurrentUserCanWrite, isUserCanRead, isUserCanWrite
-
-
-
-
Method Detail
-
getXML
java.lang.String getXML() throws java.lang.ExceptionGet the XML content of this block.- Returns:
- the XML content as a String
- Throws:
java.lang.Exception- An exception will be thrown if the blocks's XML contents are not valid XML
-
getXMLAsXMLElement
org.jdom.Element getXMLAsXMLElement() throws java.lang.ExceptionGet the block's XML content as XML element instead of String. The returned Element will always be system-xml element containing the actual XML as its children.- Returns:
- Throws:
java.lang.Exception
-
-