org.jboss.shrinkwrap.descriptor.api.webcommon30
Interface MimeMappingType<T>

All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
All Known Implementing Classes:
MimeMappingTypeImpl

public interface MimeMappingType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>

This interface defines the contract for the mime-mappingType xsd type

Original Documentation:



The mime-mappingType defines a mapping between an extension
and a mime type.

Used in: web-app


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Method Summary
 java.lang.String getExtension()
          Returns the extension element
 java.lang.String getMimeType()
          Returns the mime-type element
 MimeMappingType<T> removeExtension()
          Removes the extension element
 MimeMappingType<T> removeMimeType()
          Removes the mime-type element
 MimeMappingType<T> setExtension(java.lang.String extension)
          If not already created, a new extension element with the given value will be created.
 MimeMappingType<T> setMimeType(java.lang.String mimeType)
          If not already created, a new mime-type element with the given value will be created.
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

setExtension

MimeMappingType<T> setExtension(java.lang.String extension)
If not already created, a new extension element with the given value will be created. Otherwise, the existing extension element will be updated with the given value.

Returns:
the current instance of MimeMappingType

removeExtension

MimeMappingType<T> removeExtension()
Removes the extension element

Returns:
the current instance of MimeMappingType

getExtension

java.lang.String getExtension()
Returns the extension element

Returns:
the node defined for the element extension

setMimeType

MimeMappingType<T> setMimeType(java.lang.String mimeType)
If not already created, a new mime-type element with the given value will be created. Otherwise, the existing mime-type element will be updated with the given value.

Returns:
the current instance of MimeMappingType

removeMimeType

MimeMappingType<T> removeMimeType()
Removes the mime-type element

Returns:
the current instance of MimeMappingType

getMimeType

java.lang.String getMimeType()
Returns the mime-type element

Returns:
the node defined for the element mime-type