|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Element
com.edustructures.sifworks.SIFElement
com.edustructures.sifworks.SIFList<T>
com.edustructures.sifworks.SIFKeyedList<MediaType>
com.edustructures.sifworks.instr.MediaTypes
public class MediaTypes
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
MediaTypes()
Constructor |
|
MediaTypes(MediaType mediaType)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
void |
addMediaType(java.lang.String value)
Adds a new <MediaType> repeatable element. |
MediaType |
getMediaType(java.lang.String value)
Gets a MediaType object instance. |
MediaType[] |
getMediaTypes()
Gets all MediaType object instances. |
void |
removeMediaType(java.lang.String value)
Removes a MediaType object instance. |
void |
setMediaTypes(MediaType[] mediatypes)
Sets an array of MediaType objects. |
| Methods inherited from class com.edustructures.sifworks.SIFKeyedList |
|---|
getChild, getChild |
| Methods inherited from class com.edustructures.sifworks.SIFList |
|---|
add, addAll, clear, contains, containsAll, get, iterator, remove, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getKey, getSIFValue, getSIFVersion, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setSIFVersion, setTextValue, setXmlId, tag |
| Methods inherited from class com.edustructures.sifworks.Element |
|---|
compareTo, getElementDef, getParent, getRoot, isChanged, isDoNotEncode, isEmpty, setChanged, setDoNotEncode, setElementDef, setEmpty, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode, isEmpty |
| Constructor Detail |
|---|
public MediaTypes()
public MediaTypes(MediaType mediaType)
mediaType - MIME type [MIME] based on IANA registration (see RFC2048) or 'non-digital'.| Method Detail |
|---|
public void addMediaType(java.lang.String value)
<MediaType> repeatable element.
This form of setMediaType is provided as a convenience method
that is functionally equivalent to the version of setMediaType
that accepts a single MediaType object.
value - Gets or sets the content value of the <MediaType> elementpublic void removeMediaType(java.lang.String value)
MediaType object instance. More than one instance can be defined for this object because it is a repeatable field element.
value - Identifies the MediaType object to remove by its Value valuepublic MediaType getMediaType(java.lang.String value)
MediaType object instance. More than one instance can be defined for this object because it is a repeatable field element.
value - Identifies the MediaType object to return by its "Value" attribute value
MediaType objectpublic MediaType[] getMediaTypes()
MediaType object instances. More than one instance can be defined for this object because it is a repeatable field element.
MediaType objectspublic void setMediaTypes(MediaType[] mediatypes)
MediaType objects. All existing
MediaType instances
are removed and replaced with this list. Calling this method with the
parameter value set to null removes all MediaTypes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||