public class NamePropertyAnnotation extends Object implements NameProperty
NameProperty
annotation.
Constructor and Description |
---|
NamePropertyAnnotation(Field on)
Constructor.
|
NamePropertyAnnotation(Method on)
Constructor.
|
NamePropertyAnnotation(String on)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType() |
String |
on() |
NamePropertyAnnotation |
on(Field value)
Sets the
|
NamePropertyAnnotation |
on(Method value)
Sets the
|
NamePropertyAnnotation |
on(String value)
Sets the
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, toString
public NamePropertyAnnotation(String on)
on
- The initial value for the NameProperty.on()
public NamePropertyAnnotation(Method on)
on
- The initial value for the NameProperty.on()
public NamePropertyAnnotation(Field on)
on
- The initial value for the NameProperty.on()
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public NamePropertyAnnotation on(String value)
value
- The new value for this property.public NamePropertyAnnotation on(Method value)
value
- The new value for this property.public NamePropertyAnnotation on(Field value)
value
- The new value for this property.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.