org.jboss.shrinkwrap.descriptor.api.jboss51
Interface AnnotationType<T>

All Superinterfaces:
Child<T>

public interface AnnotationType<T>
extends Child<T>

This interface defines the contract for the annotationType xsd type

Since:
Generation date :2013-01-26T19:27:00.777+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 AnnotationType<T> annotationClass(String annotationClass)
          Sets the annotation-class element
 AnnotationType<T> annotationImplementationClass(String annotationImplementationClass)
          Sets the annotation-implementation-class element
 AnnotationPropertyType<AnnotationType<T>> createProperty()
          Creates a new property element
 AnnotationType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 List<String> getAllDescription()
          Returns all description elements
 List<AnnotationPropertyType<AnnotationType<T>>> getAllProperty()
          Returns all property elements
 String getAnnotationClass()
          Returns the annotation-class element
 String getAnnotationImplementationClass()
          Returns the annotation-implementation-class element
 String getId()
          Returns the id attribute
 InjectionTargetType<AnnotationType<T>> getOrCreateInjectionTarget()
          If not already created, a new injection-target element with the given value will be created.
 AnnotationPropertyType<AnnotationType<T>> getOrCreateProperty()
          If not already created, a new property element will be created and returned.
 AnnotationType<T> id(String id)
          Sets the id attribute
 AnnotationType<T> removeAllDescription()
          Removes the description element
 AnnotationType<T> removeAllProperty()
          Removes all property elements
 AnnotationType<T> removeAnnotationClass()
          Removes the annotation-class element
 AnnotationType<T> removeAnnotationImplementationClass()
          Removes the annotation-implementation-class element
 AnnotationType<T> removeId()
          Removes the id attribute
 AnnotationType<T> removeInjectionTarget()
          Removes the injection-target element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

description

AnnotationType<T> description(String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
values - list of description objects
Returns:
the current instance of AnnotationType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

AnnotationType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of AnnotationType

annotationClass

AnnotationType<T> annotationClass(String annotationClass)
Sets the annotation-class element

Parameters:
annotationClass - the value for the element annotation-class
Returns:
the current instance of AnnotationType

getAnnotationClass

String getAnnotationClass()
Returns the annotation-class element

Returns:
the node defined for the element annotation-class

removeAnnotationClass

AnnotationType<T> removeAnnotationClass()
Removes the annotation-class element

Returns:
the current instance of AnnotationType

annotationImplementationClass

AnnotationType<T> annotationImplementationClass(String annotationImplementationClass)
Sets the annotation-implementation-class element

Parameters:
annotationImplementationClass - the value for the element annotation-implementation-class
Returns:
the current instance of AnnotationType

getAnnotationImplementationClass

String getAnnotationImplementationClass()
Returns the annotation-implementation-class element

Returns:
the node defined for the element annotation-implementation-class

removeAnnotationImplementationClass

AnnotationType<T> removeAnnotationImplementationClass()
Removes the annotation-implementation-class element

Returns:
the current instance of AnnotationType

getOrCreateInjectionTarget

InjectionTargetType<AnnotationType<T>> getOrCreateInjectionTarget()
If not already created, a new injection-target element with the given value will be created. Otherwise, the existing injection-target element will be returned.

Returns:
a new or existing instance of InjectionTargetType>

removeInjectionTarget

AnnotationType<T> removeInjectionTarget()
Removes the injection-target element

Returns:
the current instance of AnnotationType

getOrCreateProperty

AnnotationPropertyType<AnnotationType<T>> getOrCreateProperty()
If not already created, a new property element will be created and returned. Otherwise, the first existing property element will be returned.

Returns:
the instance defined for the element property

createProperty

AnnotationPropertyType<AnnotationType<T>> createProperty()
Creates a new property element

Returns:
the new created instance of AnnotationPropertyType>

getAllProperty

List<AnnotationPropertyType<AnnotationType<T>>> getAllProperty()
Returns all property elements

Returns:
list of property

removeAllProperty

AnnotationType<T> removeAllProperty()
Removes all property elements

Returns:
the current instance of AnnotationPropertyType>

id

AnnotationType<T> id(String id)
Sets the id attribute

Parameters:
id - the value for the attribute id
Returns:
the current instance of AnnotationType

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

AnnotationType<T> removeId()
Removes the id attribute

Returns:
the current instance of AnnotationType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.