java.lang.Object
com.aoapps.lang.attribute.Attribute.Name<T>
- All Implemented Interfaces:
Serializable
A name without any specific scope or context.
Attribute: Has name, still needs scope or context.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSupports attributes in extensible contexts, loaded viaServiceLoader.load(java.lang.Class)on each access tocontext(java.lang.Object).static interfaceSupports scope attributes in extensible scopes, loaded viaServiceLoader.load(java.lang.Class)on each access toscope(java.lang.Class). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontext(C context) Attribute: Uses the given context and this name.getName()Gets the attribute Name.<C> Scope.Attribute<C, T> Attribute: Uses the given scope and this name, still needs context.<C> Scope.Attribute<C, T> Attribute: Uses the given scope (located by content type) and this name, still needs context.
-
Field Details
-
name
-
-
Constructor Details
-
Name
-
-
Method Details
-
getName
Gets the attribute Name. -
scope
Attribute: Uses the given scope (located by content type) and this name, still needs context.Performance: This loads
Attribute.Name.ScopeFactoryviaServiceLoader.load(java.lang.Class)on every call. It is strongly encouraged to use subclass-specific implementations where performance is critical. -
scope
Attribute: Uses the given scope and this name, still needs context. -
context
Attribute: Uses the given context and this name.Performance: This loads
Attribute.Name.ContextFactoryviaServiceLoader.load(java.lang.Class)on every call. It is strongly encouraged to use subclass-specific implementations where performance is critical.
-
