Class FormThemeReference.FormThemePlugin
java.lang.Object
de.xima.fc.form.common.models.FormThemeReference
de.xima.fc.form.common.models.FormThemeReference.FormThemePlugin
- All Implemented Interfaces:
Serializable
- Enclosing class:
FormThemeReference
A form theme reference to a form theme provided by a plugin, i.e.
de.xima.fc.plugin.form.IPluginFormTheme.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class FormThemeReference
FormThemeReference.ClientFormTheme, FormThemeReference.DefaultMatcher<R,E>, FormThemeReference.FormThemePlugin, FormThemeReference.FormThemeReferenceDeserializer, FormThemeReference.Matcher<R, E>, FormThemeReference.System -
Method Summary
Modifier and TypeMethodDescriptionintGets the length of the parts representing the payload of this reference, i.e. the length of the array returned byFormThemeReference.toCanonicalPayloadParts().copy()Creates a copy of this form theme reference.booleanprotected voidfillCanonicalPayloadParts(String[] parts, int offset) Gets the key of the referenced plugin.Gets the name of the referenced plugin class.Gets the ID of the plugin.inthashCode()kind()Gets the enum constant that represents the kind of this form theme reference.Converts this form theme reference to its canonical string representation.Gets a simple name describing this reference.toString()Methods inherited from class FormThemeReference
canonicalPartsLength, clientFormTheme, clone, formThemePlugin, matchFormThemeReference, ofAttributeMap, ofCanonicalParts, ofCanonicalPartsOrNull, ofCanonicalPayloadParts, ofCanonicalPayloadPartsOrNull, ofCanonicalPayloadString, ofCanonicalPayloadStringOrNull, ofCanonicalString, ofCanonicalStringOrNull, system, systemClassic, systemModern, systemUnstyled, toAttributeMap, toCanonicalParts, toCanonicalPayloadParts, toCanonicalString
-
Method Details
-
canonicalPayloadPartsLength
public int canonicalPayloadPartsLength()Description copied from class:FormThemeReferenceGets the length of the parts representing the payload of this reference, i.e. the length of the array returned byFormThemeReference.toCanonicalPayloadParts(). The payload is the data of this reference, without theFormThemeReference.kind().- Specified by:
canonicalPayloadPartsLengthin classFormThemeReference- Returns:
- The length of the parts representing this reference.
-
copy
Description copied from class:FormThemeReferenceCreates a copy of this form theme reference.- Specified by:
copyin classFormThemeReference- Returns:
- A copy of this form theme reference.
-
equals
- Specified by:
equalsin classFormThemeReference
-
getPluginKey
Gets the key of the referenced plugin. Each plugin JAR file must contain a MANIFEST.MF with an attributePlugin-Keythat specifies the unique key of the plugin.- Returns:
- The key of the plugin.
-
getPluginName
Gets the name of the referenced plugin class. This corresponds to theString de.xima.fc.plugin.interfaces.IFCPlugin#getName()of the plugin. The plugin name is only required to be unique amongst the plugins in the same plugin JAR file.- Returns:
- The name of the plugin.
-
getThemeId
Gets the ID of the plugin. Each form theme plugin may provide multiple form themes, each with a unique ID. The theme ID is only required to be unique amongst the themes provided by the same plugin class.- Returns:
- The ID of the theme.
-
hashCode
public int hashCode()- Specified by:
hashCodein classFormThemeReference
-
kind
Description copied from class:FormThemeReferenceGets the enum constant that represents the kind of this form theme reference.- Specified by:
kindin classFormThemeReference- Returns:
- The kind of the form theme reference.
-
toCanonicalPayloadString
Description copied from class:FormThemeReferenceConverts this form theme reference to its canonical string representation. Only includes the data of this particularFormThemeReference.kind()of reference, does not include data regarding which kind of reference this is.- Specified by:
toCanonicalPayloadStringin classFormThemeReference- Returns:
- The canonical string representation of the form theme reference.
- See Also:
-
toSimpleName
Description copied from class:FormThemeReferenceGets a simple name describing this reference. Should not be used for any purposes other than to pretty-print the reference.- Specified by:
toSimpleNamein classFormThemeReference- Returns:
- A simple name describing this reference.
-
toString
-
fillCanonicalPayloadParts
- Specified by:
fillCanonicalPayloadPartsin classFormThemeReference
-