Package org.idempiere.print
Record Class ReportContentType
java.lang.Object
java.lang.Record
org.idempiere.print.ReportContentType
public record ReportContentType(String name, String fileExtension, String contentType)
extends Record
UI-independent description of a supported report output type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringInternal content type for an HTML report with viewer interaction such as drill-down links. -
Constructor Summary
ConstructorsConstructorDescriptionReportContentType(String name, String fileExtension, String contentType) Creates an instance of aReportContentTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.final inthashCode()Returns a hash code value for this object.static booleanisInteractiveHTML(String contentType) name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
HTML_INTERACTIVE_CONTENT_TYPE
Internal content type for an HTML report with viewer interaction such as drill-down links. Content delivered to a browser still usestext/html. Only renderers that actually produce viewer-interactive HTML (e.g. with drill-down links) should advertise this type.- See Also:
-
-
Constructor Details
-
ReportContentType
Creates an instance of aReportContentTyperecord class.- Parameters:
name- the value for thenamerecord componentfileExtension- the value for thefileExtensionrecord componentcontentType- the value for thecontentTyperecord component
-
-
Method Details
-
isInteractiveHTML
- Parameters:
contentType- content type to test- Returns:
truefor the internal interactive HTML content type
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
fileExtension
Returns the value of thefileExtensionrecord component.- Returns:
- the value of the
fileExtensionrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-