public abstract class AbstractComponent extends Object implements Component
ComponentComponent.Annotations| Modifier and Type | Field and Description |
|---|---|
static QName |
ANNOTATION_NAME |
static QName |
LOCATION_KEY |
static QName |
ROOT_CONTAINER_NAME_KEY |
ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATA| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAnnotation(QName qName)
Gets the value of specified annotation.
|
Map<QName,Object> |
getAnnotations()
Gets all annotations.
|
String |
getDslSource() |
ComponentIdentifier |
getIdentifier() |
ComponentLocation |
getLocation() |
String |
getRepresentation() |
Location |
getRootContainerLocation()
The actual root container component location.
|
protected Location |
initRootContainerName() |
void |
setAnnotations(Map<QName,Object> newAnnotations)
Sets annotations to the object.
|
public static final QName LOCATION_KEY
public static final QName ROOT_CONTAINER_NAME_KEY
public static final QName ANNOTATION_NAME
public Object getAnnotation(QName qName)
ComponentgetAnnotation in interface Componentpublic Map<QName,Object> getAnnotations()
ComponentgetAnnotations in interface Componentpublic void setAnnotations(Map<QName,Object> newAnnotations)
ComponentsetAnnotations in interface Componentprotected Location initRootContainerName()
public ComponentLocation getLocation()
getLocation in interface Componentnull if this object was generated
programmatically and not from a configuration element.public Location getRootContainerLocation()
ComponentComponentLocation#getRootContainerLocation().getRootContainerLocation in interface Componentpublic ComponentIdentifier getIdentifier()
getIdentifier in interface Componentpublic String getRepresentation()
getRepresentation in interface Componentpublic String getDslSource()
getDslSource in interface ComponentCopyright © 2021 MuleSoft, Inc.. All rights reserved.