org.openbp.cockpit.plugins.association
Class AssociationBean

java.lang.Object
  extended by org.openbp.common.generic.description.DescriptionObjectImpl
      extended by org.openbp.common.generic.description.DisplayObjectImpl
          extended by org.openbp.cockpit.plugins.association.AssociationBean
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Copyable, DescriptionObject, Displayable, DisplayObject, Validatable

public class AssociationBean
extends DisplayObjectImpl

Container bean containing the mime-type associations.

Author:
Andreas Putz
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.openbp.common.generic.Copyable
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW
 
Constructor Summary
AssociationBean()
          Constructor.
 
Method Summary
 void addMimeType(MimeTypeAssociation mimeType)
          Add a mime type to list.
 void copyFrom(java.lang.Object source, int copyMode)
           
 MimeTypeAssociation getMimeTypeAssociation(java.lang.String mimeType)
          Gets the MIME type association for the given MIME type.
 java.util.List getMimeTypes()
          Gets the mime types.
 void setMimeTypes(java.util.List mimeTypes)
          Sets the mime types.
 
Methods inherited from class org.openbp.common.generic.description.DisplayObjectImpl
getDisplayName, getDisplayText, setDisplayName
 
Methods inherited from class org.openbp.common.generic.description.DescriptionObjectImpl
clone, compareTo, getDescription, getDescriptionEscape, getDescriptionText, getName, setDescription, setDescriptionEscape, setName, toString, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openbp.common.generic.description.DescriptionObject
clone, getDescription, getDescriptionText, getName, setDescription, setName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AssociationBean

public AssociationBean()
Constructor.

Method Detail

getMimeTypes

public java.util.List getMimeTypes()
Gets the mime types.

Returns:
The list of mime types

setMimeTypes

public void setMimeTypes(java.util.List mimeTypes)
Sets the mime types.

Parameters:
mimeTypes - Mime types which can interact with this association

addMimeType

public void addMimeType(MimeTypeAssociation mimeType)
Add a mime type to list.

Parameters:
mimeType - Mime type which can interact with this association

getMimeTypeAssociation

public MimeTypeAssociation getMimeTypeAssociation(java.lang.String mimeType)
Gets the MIME type association for the given MIME type.

Parameters:
mimeType - Mime type
Returns:
The association or null if no such association exists

copyFrom

public void copyFrom(java.lang.Object source,
                     int copyMode)
              throws java.lang.CloneNotSupportedException
Specified by:
copyFrom in interface Copyable
Overrides:
copyFrom in class DisplayObjectImpl
Throws:
java.lang.CloneNotSupportedException
See Also:
Copyable.copyFrom(Object, int)


Copyright © 2011. All Rights Reserved.