Package com.oracle.coherence.cdi
Class Name.Literal
- java.lang.Object
-
- com.oracle.coherence.cdi.AnnotationLiteral<Name>
-
- com.oracle.coherence.cdi.Name.Literal
-
- All Implemented Interfaces:
Annotation
- Enclosing class:
- Name
public static class Name.Literal extends AnnotationLiteral<Name> implements Name
An annotation literal for theName
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.coherence.cdi.Name
Name.Literal
-
-
Constructor Summary
Constructors Constructor Description Literal(String sName, boolean fRegex)
ConstructName.Literal
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Name.Literal
of(String sName)
Create aName.Literal
.boolean
regex()
Returntrue
to indicate whether name is a regular expression.String
value()
The name used to identify a specific resource.-
Methods inherited from class com.oracle.coherence.cdi.AnnotationLiteral
annotationType, equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Literal
public Literal(String sName, boolean fRegex)
ConstructName.Literal
instance.- Parameters:
sName
- the resource namefRegex
-true
to indicate whether name is a regular expression
-
-
Method Detail
-
of
public static Name.Literal of(String sName)
Create aName.Literal
.- Parameters:
sName
- the resource name- Returns:
- a
Name.Literal
with the specified value
-
value
public String value()
The name used to identify a specific resource.- Returns:
- the name used to identify a specific resource
-
regex
public boolean regex()
Returntrue
to indicate whether name is a regular expression.- Returns:
true
to indicate whether name is a regular expression
-
-