Module org.mule.runtime.dsl.api
Interface XmlMetadataAnnotations
- All Known Implementing Classes:
DefaultXmlMetadataAnnotations
@NoImplement
public interface XmlMetadataAnnotations
Stores the metadata annotations from the XML parser so they are available when building the actual objects of the application.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidappendElementBody(String elementBody) Adds the body of the xml tag.voidappendElementEnd(String qName) Builds the closing tag of the xml element.voidappendElementStart(String qName, Map<String, String> atts) Builds the opening tag of the xml element.boolean
-
Field Details
-
METADATA_ANNOTATIONS_KEY
- See Also:
-
-
Method Details
-
appendElementStart
Builds the opening tag of the xml element.- Parameters:
qName- the qualified name of the elementatts- the attributes of the element, with the qualified name as key
-
appendElementBody
Adds the body of the xml tag.- Parameters:
elementBody- the body content to be added
-
appendElementEnd
Builds the closing tag of the xml element.- Parameters:
qName- the qualified name of the element
-
getElementString
String getElementString()- Returns:
- the reconstruction of the declaration of the element in its source xml file. Note that the order of the elements may be different, and any implicit attributes with default values will be included.
-
isSelfClosing
boolean isSelfClosing()- Returns:
- Whether the element was written as in
<element />. In such case, the opening and closing tag boundaries will be the same.
-
getOpeningTagBoundaries
XmlMetadataAnnotations.TagBoundaries getOpeningTagBoundaries()- Returns:
- the boundaries of the opening tag on the source xml file.
-
getClosingTagBoundaries
XmlMetadataAnnotations.TagBoundaries getClosingTagBoundaries()- Returns:
- the boundaries of the closing tag on the source xml file.
-