Package org.opencastproject.smil.entity
Class SmilHeadImpl
java.lang.Object
org.opencastproject.smil.entity.SmilObjectImpl
org.opencastproject.smil.entity.SmilHeadImpl
- All Implemented Interfaces:
SmilHead,SmilObject
SmilHead implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd newSmilMetawith given values.voidAdd givenSmilMetaelement.voidaddParamGroup(SmilMediaParamGroup group) Add param group and its content if not exists.voidclear()Remove all elements inside.getElementOrNull(String elementId) Returns element with given elementId or null.protected StringReturnsSmilObjectId prefix (must begin with alphanumeric charackter).getMetaByName(String name) ReturnsSmilMetaelement with given name.getMetas()ReturnsListof meta elements inside.ReturnsListof paramGroup elements.protected List<SmilMediaParamGroup> ReturnsListofSmilMediaParamGroupobjects.voidputAllChilds(List<SmilObject> elements) Put all containing elements intoListgiven as parameter.removeElement(String elementId) Remove element with given Id and returns it.voidremoveMetaByName(String name) RemoveSmilMetaelement with given name.voidRemove given param group.protected voidsetMetasList(List<SmilMeta> metas) protected voidsetParamGroupsList(List<SmilMediaParamGroup> paramGroups) SetListofSmilMediaParamGroupobjects.Methods inherited from class org.opencastproject.smil.entity.SmilObjectImpl
getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencastproject.smil.entity.api.SmilObject
getId
-
Constructor Details
-
SmilHeadImpl
public SmilHeadImpl()
-
-
Method Details
-
getMetas
-
getMetasList
- Returns:
- the meta data elements
-
setMetasList
- Parameters:
metas- the meta data elements to set
-
getParamGroups
- Specified by:
getParamGroupsin interfaceSmilHead- Returns:
- the param groups
-
getParamGroupsList
ReturnsListofSmilMediaParamGroupobjects.- Returns:
- the param groups
-
setParamGroupsList
SetListofSmilMediaParamGroupobjects.- Parameters:
paramGroups- the param groups to set
-
getIdPrefix
ReturnsSmilObjectId prefix (must begin with alphanumeric charackter).- Specified by:
getIdPrefixin classSmilObjectImpl- Returns:
- Id prefix
-
removeElement
Remove element with given Id and returns it. Returns null if there is no element with given Id.- Specified by:
removeElementin classSmilObjectImpl- Parameters:
elementId- element Id- Returns:
- removed element or null
-
clear
public void clear()Remove all elements inside. -
getMetaByName
ReturnsSmilMetaelement with given name. -
addMeta
Add newSmilMetawith given values. -
addMeta
Add givenSmilMetaelement.- Parameters:
meta-SmilMetato add
-
removeMetaByName
RemoveSmilMetaelement with given name.- Parameters:
name-SmilMetaname
-
addParamGroup
Add param group and its content if not exists.- Parameters:
group- param group
-
removeParamGroup
Remove given param group.- Parameters:
group- param group to remove
-
getElementOrNull
Returns element with given elementId or null.- Specified by:
getElementOrNullin classSmilObjectImpl- Parameters:
elementId- element Id- Returns:
- element with given elementId or null
-
putAllChilds
Put all containing elements intoListgiven as parameter.- Specified by:
putAllChildsin classSmilObjectImpl- Parameters:
elements-Listwhere to pul child elements to
-