Package org.opencastproject.smil.impl
Class SmilResponseImpl
java.lang.Object
org.opencastproject.smil.impl.SmilResponseImpl
- All Implemented Interfaces:
org.opencastproject.smil.api.SmilResponse
SmilResponse implementation.-
Constructor Summary
ConstructorsConstructorDescriptionSmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil) ConstructorSmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject entity) Constructor.SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject[] entities) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.opencastproject.smil.api.SmilResponsefromXml(InputStream smilResponseXml) DeserializeSmilResponsefrom XML.static org.opencastproject.smil.api.SmilResponseDeserializeSmilResponsefrom XML.org.opencastproject.smil.entity.api.SmilObject[]intorg.opencastproject.smil.entity.api.SmilObjectorg.opencastproject.smil.entity.api.SmilgetSmil()toXml()
-
Constructor Details
-
SmilResponseImpl
public SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil) Constructor- Parameters:
smil- to set
-
SmilResponseImpl
public SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject entity) Constructor.- Parameters:
smil- to setentity- to set
-
SmilResponseImpl
public SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject[] entities) Constructor.- Parameters:
smil- to setentities- to set
-
-
Method Details
-
getSmil
public org.opencastproject.smil.entity.api.Smil getSmil()- Specified by:
getSmilin interfaceorg.opencastproject.smil.api.SmilResponse
-
getEntitiesCount
public int getEntitiesCount()- Specified by:
getEntitiesCountin interfaceorg.opencastproject.smil.api.SmilResponse
-
getEntity
public org.opencastproject.smil.entity.api.SmilObject getEntity() throws org.opencastproject.smil.api.SmilException- Specified by:
getEntityin interfaceorg.opencastproject.smil.api.SmilResponse- Throws:
org.opencastproject.smil.api.SmilException
-
getEntities
public org.opencastproject.smil.entity.api.SmilObject[] getEntities() throws org.opencastproject.smil.api.SmilException- Specified by:
getEntitiesin interfaceorg.opencastproject.smil.api.SmilResponse- Throws:
org.opencastproject.smil.api.SmilException
-
toXml
- Specified by:
toXmlin interfaceorg.opencastproject.smil.api.SmilResponse- Throws:
javax.xml.bind.JAXBException
-
fromXml
public static org.opencastproject.smil.api.SmilResponse fromXml(String smilResponseXml) throws javax.xml.bind.JAXBException DeserializeSmilResponsefrom XML.- Parameters:
smilResponseXml-SmilResponseas XML- Returns:
SmilResponseobject- Throws:
javax.xml.bind.JAXBException- if deserialization fail
-
fromXml
protected static org.opencastproject.smil.api.SmilResponse fromXml(InputStream smilResponseXml) throws javax.xml.bind.JAXBException DeserializeSmilResponsefrom XML.- Parameters:
smilResponseXml-SmilResponseas XMLInputStream- Returns:
SmilResponseobject- Throws:
javax.xml.bind.JAXBException- if deserialization fail
-