public class CSMediaTypeContent extends CSItemContent
CSMedia
object.
CSMediaType
,
CSMediaTypeMultiple
,
Serialized FormConstructor and Description |
---|
CSMediaTypeContent()
Constructs an empty
CSMediaTypeContent object. |
Modifier and Type | Method and Description |
---|---|
CSItemContent |
createInstance()
Creates a new
CSMediaTypeContent object and returns it as a CSItemContent , its
superclass. |
boolean |
equals(java.lang.Object obj)
Determines whether the data contained in this
CSMediaTypeContent object is equal to another
object. |
java.lang.String |
getDescription()
Gets the description of the media type.
|
boolean |
getIndexContent()
Gets the media type's index content flag.
|
int |
getMediaTypeID()
Gets the media type ID.
|
java.util.ArrayList |
getSubTypes()
Gets the array of subtypes for this media type.
|
java.lang.String |
getType()
Gets the name of the media type.
|
void |
setDescription(java.lang.String strDesc)
Sets the description of the media type.
|
void |
setIndexContent(boolean bIndexContent)
Sets the media type's index content flag.
|
void |
setMediaTypeID(int nMediaTypeID)
Sets the media type ID.
|
void |
setSubTypes(java.util.ArrayList arrSubTypes)
Sets the array of subtypes for this media type.
|
void |
setSubTypes(java.lang.String strSubTypes)
Sets the array of subtypes for this media type from a text string in the format retrieved from the database,
"Thumbnail;m;u,Image;o;u,LargeImage;o;u" for example.
|
void |
setType(java.lang.String strType)
Sets the type name.
|
java.lang.String |
toString()
Outputs the contents of this
CSMediaTypeContent object to a String object in a
user-friendly format. |
clone, getID, setID, unset
public CSMediaTypeContent()
CSMediaTypeContent
object.public void setMediaTypeID(int nMediaTypeID)
nMediaTypeID
- the unique numeric ID of the media type.public int getMediaTypeID()
public void setType(java.lang.String strType)
strType
- a String
containing the name of the media type.public java.lang.String getType()
String
containing the name of the media type.public void setDescription(java.lang.String strDesc)
strDesc
- a String
containing the description of the media type.public java.lang.String getDescription()
String
containing the description of the media type.public void setSubTypes(java.lang.String strSubTypes)
CSMediaTypeContentFile
object will be
created for each subtype, all of which are stored in an ArrayList
.
strSubTypes
- a String
containing the subtype information.public void setSubTypes(java.util.ArrayList arrSubTypes)
arrSubTypes
- an ArrayList
of CSMediaTypeContentFile
objects.public java.util.ArrayList getSubTypes()
ArrayList
of CSMediaTypeContentFile
objects.public void setIndexContent(boolean bIndexContent)
bIndexContent
- true if file content is indexed, false otherwise.public boolean getIndexContent()
public CSItemContent createInstance()
CSMediaTypeContent
object and returns it as a CSItemContent
, its
superclass.
CSMediaTypeContent
object.public java.lang.String toString()
CSMediaTypeContent
object to a String
object in a
user-friendly format.
toString
in class CSItemContent
String
containing the user-friendly output.public boolean equals(java.lang.Object obj)
CSMediaTypeContent
object is equal to another
object. Note that the key data used for searching is not tested for equality.
equals
in class CSItemContent
obj
- the object to be tested for equality.false
if there are any differences between the objects.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.