public interface ElementType<T> extends Child<T>, MapElementCommonType<T,ElementType<T>,AnnotationType<ElementType<T>>>
elementType
xsd typeModifier and Type | Method and Description |
---|---|
AnnotationType<ElementType<T>> |
createAnnotation()
Creates a new
annotation element |
List<AnnotationType<ElementType<T>>> |
getAllAnnotation()
Returns all
annotation elements |
List<String> |
getAllValue()
Returns all
value elements |
String |
getName()
Returns the
name attribute |
AnnotationType<ElementType<T>> |
getOrCreateAnnotation()
If not already created, a new
annotation element will be created and returned. |
String |
getText()
Returns the body text of the element
elementType |
ElementType<T> |
name(String name)
Sets the
name attribute |
ElementType<T> |
removeAllAnnotation()
Removes all
annotation elements |
ElementType<T> |
removeAllValue()
Removes the
value element |
ElementType<T> |
removeName()
Removes the
name attribute |
ElementType<T> |
text(String value)
Sets the body text for the element
elementType |
ElementType<T> |
value(String... values)
Creates for all String objects representing
value elements,
a new value element |
ElementType<T> text(String value)
elementType
elementType
- the value for the body text elementType
ElementType
String getText()
elementType
elementType
ElementType<T> value(String... values)
value
elements,
a new value
elementvalues
- list of value
objectsElementType
ElementType<T> removeAllValue()
value
elementElementType
AnnotationType<ElementType<T>> getOrCreateAnnotation()
annotation
element will be created and returned.
Otherwise, the first existing annotation
element will be returned.annotation
AnnotationType<ElementType<T>> createAnnotation()
annotation
elementAnnotationType>
List<AnnotationType<ElementType<T>>> getAllAnnotation()
annotation
elementsannotation
ElementType<T> removeAllAnnotation()
annotation
elementsAnnotationType>
ElementType<T> name(String name)
name
attributename
- the value for the attribute name
ElementType
String getName()
name
attributename
ElementType<T> removeName()
name
attributeElementType
Copyright © 2016 JBoss by Red Hat. All rights reserved.