org.openbp.cockpit.plugins.association
Class MimeTypeAssociation

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.MimeTypeAssociation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Copyable, DescriptionObject, Displayable, DisplayObject, Validatable

public class MimeTypeAssociation
extends DisplayObjectImpl

Association object containing the mime type and the application belongs to that.

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
MimeTypeAssociation()
          Constructor.
MimeTypeAssociation(java.lang.String name)
          Constructor.
 
Method Summary
 void copyFrom(java.lang.Object source, int copyMode)
           
 java.lang.String getAssociatedProgram()
          Returns the associated program.
 java.lang.String getDisplayName()
          Gets the default display name of this object.
 void setAssociatedProgram(java.lang.String associatedProgram)
          Sets the associated program.
 
Methods inherited from class org.openbp.common.generic.description.DisplayObjectImpl
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

MimeTypeAssociation

public MimeTypeAssociation()
Constructor.


MimeTypeAssociation

public MimeTypeAssociation(java.lang.String name)
Constructor.

Parameters:
name - The name of the mime type
Method Detail

getAssociatedProgram

public java.lang.String getAssociatedProgram()
Returns the associated program.


setAssociatedProgram

public void setAssociatedProgram(java.lang.String associatedProgram)
Sets the associated program.


getDisplayName

public java.lang.String getDisplayName()
Gets the default display name of this object. The display name is the human-readable name of the object (i. e. a name that is displayed in the user interface).

Specified by:
getDisplayName in interface DisplayObject
Overrides:
getDisplayName in class DisplayObjectImpl

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.