|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This basic interface defines behavior common to all kinds of metadata objects that are persistent and can be altered. It also extends EJBLocalObject and therefore represents the local interface of a Metadata Entity EJB.
MetaDataEntity EJBs consist of the two basic alterable properties:
null
.
null
.
Method Summary | |
void |
addChild(MetaDataEntityLocal (src) child)
Adds the given Metadata Entity EJB to the receiver's set of children. |
void |
addMediaEntity(MediaEntityLocal (src) mediaEntity)
Adds the given Media Entity EJB to the receiver's set of associated Media Entity EJBs that are described by the receiver. |
MetaDataEntityLocal (src) [] |
getChildren()
Returns the receiver's children as an array of Media Entity EJBs. |
long |
getLastModified()
Returns a timestamp stating when the receiver's persistent state was last modified. |
MediaEntityLocal (src) [] |
getMediaEntities()
Returns the Media Entity EJBs associated with the receiver. |
MediaEntityLocal (src) [] |
getMediaEntities(MediaFormat (src) mediaFormat,
boolean searchCildren)
This method locates all Media Entity EJBs associated with the receiver that have the specified media format. |
MediaEntityLocal (src) [] |
getMediaEntities(java.lang.String mimeType,
boolean searchCildren)
This method locates all Media Entity EJBs associated with the receiver that have the given mime type. |
java.lang.String |
getName()
Returns the receiver's non-unique name as a String. |
MetaDataEntityLocal (src) |
getNextVersion()
Returns the succeeding version edition of the receiver, which allows querying and a history chain of metadata objects that represent the same thing. |
MetaDataEntityLocal (src) [] |
getParents()
Returns the receiver's parents as an array of Metadata Entity EJBs. |
MetaDataEntityLocal (src) |
getPreviousVersion()
Returns the previous version of the receiver, which allows querying a history of metadata objects that represent the same logical thing. |
java.lang.String |
getXML()
This method returns the receiver's content as an XML string. |
void |
removeChild(MetaDataEntityLocal (src) child)
Removes the given Metadata Entity EJB from the receiver's set of children. |
void |
removeMediaEntity(MediaEntityLocal (src) mediaEntity)
Removes the given Media Entity EJB from the receiver's set of associated Media Entity EJBs that are described by the receiver. |
void |
setName(java.lang.String name)
Sets the receiver's non-unique name as a String. |
void |
setPreviousVersion(MetaDataEntityLocal (src) metadata)
Defines the given metadata entity to be the previous version of the receiver, which allows querying a history chain of metadata objects that represent the same logical thing. |
void |
setXML(java.lang.String xmlContent,
boolean validate)
If the given XML content is well formed, it replaces the receiver's current metadata content. |
Methods inherited from interface javax.ejb.EJBLocalObject (src) |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
Method Detail |
public void addChild(MetaDataEntityLocal (src) child) throws MediaException (src)
child
-
java.lang.NullPointerException
- if the value passed is null
.
MediaException (src)
public void addMediaEntity(MediaEntityLocal (src) mediaEntity) throws MediaException (src)
mediaEntity
-
java.lang.NullPointerException
- if the value passed is null
.
MediaException (src)
public MetaDataEntityLocal (src) [] getChildren() throws MediaException (src)
MediaException (src)
public long getLastModified() throws MediaException (src)
MediaException (src)
public MediaEntityLocal (src) [] getMediaEntities() throws MediaException (src)
MediaException (src)
public MediaEntityLocal (src) [] getMediaEntities(MediaFormat (src) mediaFormat, boolean searchCildren) throws MediaException (src)
java.lang.NullPointerException
- if the media format passed is
null
.
MediaException (src)
public MediaEntityLocal (src) [] getMediaEntities(java.lang.String mimeType, boolean searchCildren) throws MediaException (src)
true
,
the search is extended to all Media Entity EJBs that relate to the
receiver or one of its recursive children.
java.lang.NullPointerException
- if the mime type passed is null
.
MediaException (src)
public java.lang.String getName() throws MediaException (src)
MediaException (src)
public MetaDataEntityLocal (src) getNextVersion() throws MediaException (src)
null
is returned if no next version
exists.
MediaException (src)
public MetaDataEntityLocal (src) [] getParents() throws MediaException (src)
MediaException (src)
public MetaDataEntityLocal (src) getPreviousVersion() throws MediaException (src)
null
is returned if no previous version exists.
MediaException (src)
public java.lang.String getXML() throws MediaException (src)
ContentAccessException (src)
- if the value passed is null
.
MediaException (src)
public void removeChild(MetaDataEntityLocal (src) child) throws MediaException (src)
child
-
java.lang.NullPointerException
- if the value passed is null
.
MediaException (src)
public void removeMediaEntity(MediaEntityLocal (src) mediaEntity) throws MediaException (src)
mediaEntity
-
java.lang.NullPointerException
- if the value passed is null
.
MediaException (src)
public void setName(java.lang.String name) throws MediaException (src)
name
-
java.lang.NullPointerException
- if the value passed is null
.
MediaException (src)
public void setPreviousVersion(MetaDataEntityLocal (src) metadata) throws MediaException (src)
null
causes the receiver not to have a predecessor
anymore. The operation is only allowed if version chain integrity is
preserved:
null
: A
javax.emb.VersionChainIntegrityException is thrown if the receiver has a
successor.
metadata
-
MediaException (src)
public void setXML(java.lang.String xmlContent, boolean validate) throws MediaException (src)
true
,
the content is additionally strictly validated before the operation is
performed.
xmlContent
- validate
-
java.lang.NullPointerException
- if the content passed is null
.
MetaDataValidationException (src)
- if the validate flag is
true
and the content validation fails.
MetaDataSyntaxException (src)
- if the XML content is not well
formed, regardless of the validate flag.
MediaException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |