Class AnnotationElement
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.AnnotationElement
-
public class AnnotationElement extends Object
Objects of this class represent an annotation element.
-
-
Constructor Summary
Constructors Constructor Description AnnotationElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AnnotationAttribute>getAttributes()List<AnnotationElement>getChildElements()StringgetName()StringgetNamespace()StringgetPrefix()StringgetText()AnnotationElementsetAttributes(List<AnnotationAttribute> attributes)Sets the attributes for thisAnnotationElement.AnnotationElementsetChildElements(List<AnnotationElement> childElements)Sets the child elements for thisAnnotationElement.AnnotationElementsetName(String name)Sets the name for thisAnnotationElement.AnnotationElementsetNamespace(String namespace)Sets the namespace for thisAnnotationElement.AnnotationElementsetPrefix(String prefix)Sets the prefix for thisAnnotationElement.AnnotationElementsetText(String text)Sets the text for thisAnnotationElementwhich will be displayed inside the tags.
-
-
-
Method Detail
-
getNamespace
public String getNamespace()
-
getPrefix
public String getPrefix()
-
getName
public String getName()
-
getText
public String getText()
-
getChildElements
public List<AnnotationElement> getChildElements()
-
getAttributes
public List<AnnotationAttribute> getAttributes()
-
setAttributes
public AnnotationElement setAttributes(List<AnnotationAttribute> attributes)
Sets the attributes for thisAnnotationElement.- Parameters:
attributes- Atributos- Returns:
AnnotationElementfor method chaining
-
setChildElements
public AnnotationElement setChildElements(List<AnnotationElement> childElements)
Sets the child elements for thisAnnotationElement. Does not set child elements and characterData for one element.- Parameters:
childElements- Elementos filhos- Returns:
AnnotationElementfor method chaining
-
setNamespace
public AnnotationElement setNamespace(String namespace)
Sets the namespace for thisAnnotationElement.- Parameters:
namespace- Namespace- Returns:
AnnotationElementfor method chaining
-
setPrefix
public AnnotationElement setPrefix(String prefix)
Sets the prefix for thisAnnotationElement.- Parameters:
prefix- Prefixo- Returns:
AnnotationElementfor method chaining
-
setName
public AnnotationElement setName(String name)
Sets the name for thisAnnotationElement.- Parameters:
name- Nome- Returns:
AnnotationElementfor method chaining
-
setText
public AnnotationElement setText(String text)
Sets the text for thisAnnotationElementwhich will be displayed inside the tags. Must NOT be set if child elements are set!- Parameters:
text- Texto- Returns:
AnnotationElementfor method chaining
-
-