public class AnnotationDescriptor extends java.lang.Object implements Descriptor
AnnotationDescriptor class.
| Modifier and Type | Field and Description |
|---|---|
protected Meta |
description |
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationDescriptor()
Constructor for AnnotationDescriptor.
|
|
AnnotationDescriptor(Meta description)
Constructor for AnnotationDescriptor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
describesElement(java.lang.String name)
Returns true if given element name is presented in the descriptor
|
boolean |
describesParameter(java.lang.String name)
Returns true if given parameter name is presented in the descriptor
|
Meta |
getAnnotation()
Get this descriptor content as annotation with elements like 'parameter'
and 'element'
|
Value |
getDefault(java.lang.String name)
Return default value for parameter
|
java.util.List<java.lang.String> |
getElementNames(java.lang.String name)
getNodeNames.
|
java.lang.String |
getName()
getName.
|
java.util.List<java.lang.String> |
getParameterNames(java.lang.String name)
getParameterNames.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAnonimousprotected Meta description
public AnnotationDescriptor(Meta description)
Constructor for AnnotationDescriptor.
description - a Meta
object.protected AnnotationDescriptor()
Constructor for AnnotationDescriptor.
public java.util.List<java.lang.String> getParameterNames(java.lang.String name) throws DescriptorException
getParameterNames.
getParameterNames in interface Descriptorname - a String object.List object.DescriptorException - if any.public java.util.List<java.lang.String> getElementNames(java.lang.String name) throws DescriptorException
getNodeNames.
getElementNames in interface Descriptorname - a String object.List object.DescriptorException - if any.public Value getDefault(java.lang.String name)
getDefault in interface Descriptorname - a String object.Value object.public java.lang.String getName()
getName.
getName in interface NamedgetName in interface Descriptorpublic Meta getAnnotation()
getAnnotation in interface DescriptorMeta object.public boolean describesElement(java.lang.String name)
describesElement in interface Descriptorname - a String object.public boolean describesParameter(java.lang.String name)
describesParameter in interface Descriptorname - a String object.