Package com.saperion.connector.formats
Class TargetFormat
java.lang.Object
com.saperion.connector.formats.TargetFormat
- All Implemented Interfaces:
Format
Represents the target file format.
-
Constructor Summary
ConstructorsConstructorDescriptionTargetFormat(String extension, TargetFormatType type, String mimetype) Instantiates a new target format. -
Method Summary
-
Constructor Details
-
TargetFormat
Instantiates a new target format.- Parameters:
extension- the extensiontype- the typemimetype- the mimetype
-
-
Method Details
-
add
Adds the mimetyoe.- Parameters:
mimetype- the mimetype to add- Returns:
- the target format
-
getExtension
- Specified by:
getExtensionin interfaceFormat- Returns:
- File extension as
String. - See Also:
-
getType
Getter for the target format type.- Returns:
TargetFormatTypeinstance.
-
getMimetype
- Specified by:
getMimetypein interfaceFormat- Returns:
- MIME type.
- See Also:
-
getMimetypes
- Specified by:
getMimetypesin interfaceFormat- Returns:
- all possible MIME-Types as
SetofStingrepresentations. - See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-