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 TargetFormat
add(java.lang.String mimetype)
Adds the mimetyoe.boolean
equals(java.lang.Object obj)
java.lang.String
getExtension()
java.lang.String
getMimetype()
java.util.Set<java.lang.String>
getMimetypes()
TargetFormatType
getType()
Getter for the target format type.int
hashCode()
java.lang.String
toString()
-
-
-
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:
getExtension
in interfaceFormat
- Returns:
- File extension as
String
. - See Also:
Format.getExtension()
-
getType
public TargetFormatType getType()
Getter for the target format type.- Returns:
TargetFormatType
instance.
-
getMimetype
public java.lang.String getMimetype()
- Specified by:
getMimetype
in interfaceFormat
- Returns:
- MIME type.
- See Also:
Format.getMimetype()
-
getMimetypes
public java.util.Set<java.lang.String> getMimetypes()
- Specified by:
getMimetypes
in interfaceFormat
- Returns:
- all possible MIME-Types as
Set
ofSting
representations. - See Also:
Format.getMimetypes()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-