Class Item
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.Item
- All Implemented Interfaces:
ValueOfContractor
,Serializable
- Direct Known Subclasses:
Preset
Abstract supertype for item providing containers. Subclasses have to implement ValueOfContractor creating
a new instance by an item-name having a corresponding is-prefixed method. E.g., the item "Default"
(case-sensitive) must have a corresponding method "isDefault" (case-sensitive).
- Since:
- 4.0.55
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.common.text.ValueOfContractor
ValueOfContractor.Invoke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
Camelizes the given name.boolean
Equality implementation based on the item's name.final <T extends Annotation>
TgetAnnotation
(Class<T> clazz) Provides all annotations defined for the given class.getName()
Provides the item's name.int
hashCode()
The hashcode implementation.toString()
Provides the textual representation of this item.
-
Constructor Details
-
Item
Constructor taking the item's name.- Parameters:
name
- The item's name.- Since:
- 4.0.55
-
-
Method Details
-
getName
Provides the item's name.- Returns:
- The item's name.
- Since:
- 4.0.55
-
equals
Equality implementation based on the item's name. -
hashCode
public int hashCode()The hashcode implementation. -
toString
Provides the textual representation of this item. -
getAnnotation
Provides all annotations defined for the given class.- Parameters:
clazz
- The class to get annotations for.- Returns:
- The class's annotations.
- Since:
- 4.0.55
-
camelize
Camelizes the given name.- Parameters:
name
- The name to be camelized.- Returns:
- The camelized name.
- Since:
- 4.0.55
-