Package com.saperion.connector.formats
Class TargetFormat
- java.lang.Object
-
- com.saperion.connector.formats.TargetFormat
-
-
Constructor Summary
Constructors Constructor Description TargetFormat(java.lang.String extension, TargetFormatType type, java.lang.String mimetype)Instantiates a new target format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetFormatadd(java.lang.String mimetype)Adds the mimetyoe.booleanequals(java.lang.Object obj)java.lang.StringgetExtension()java.lang.StringgetMimetype()java.util.Set<java.lang.String>getMimetypes()TargetFormatTypegetType()Getter for the target format type.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TargetFormat
public TargetFormat(java.lang.String extension, TargetFormatType type, java.lang.String mimetype)Instantiates a new target format.- Parameters:
extension- the extensiontype- the typemimetype- the mimetype
-
-
Method Detail
-
add
public TargetFormat add(java.lang.String mimetype)
Adds the mimetyoe.- Parameters:
mimetype- the mimetype to add- Returns:
- the target format
-
getExtension
public java.lang.String getExtension()
- Specified by:
getExtensionin interfaceFormat- Returns:
- File extension as
String. - See Also:
Format.getExtension()
-
getType
public TargetFormatType getType()
Getter for the target format type.- Returns:
TargetFormatTypeinstance.
-
getMimetype
public java.lang.String getMimetype()
- Specified by:
getMimetypein interfaceFormat- Returns:
- MIME type.
- See Also:
Format.getMimetype()
-
getMimetypes
public java.util.Set<java.lang.String> getMimetypes()
- Specified by:
getMimetypesin interfaceFormat- Returns:
- all possible MIME-Types as
SetofStingrepresentations. - See Also:
Format.getMimetypes()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-