public class DefaultXmlMetadataAnnotations extends Object implements XmlMetadataAnnotations
Modifier and Type | Field and Description |
---|---|
static String |
METADATA_ANNOTATIONS_KEY |
Constructor and Description |
---|
DefaultXmlMetadataAnnotations() |
Modifier and Type | Method and Description |
---|---|
void |
appendElementBody(String elementBody)
Adds the body of the xml tag.
|
void |
appendElementEnd(String qName)
Builds the closing tag of the xml element.
|
void |
appendElementStart(String qName,
Map<String,String> atts)
Builds the opening tag of the xml element.
|
String |
getElementString() |
int |
getLineNumber() |
void |
setLineNumber(int lineNumber) |
public static final String METADATA_ANNOTATIONS_KEY
public void appendElementStart(String qName, Map<String,String> atts)
appendElementStart
in interface XmlMetadataAnnotations
qName
- the qualified name of the elementatts
- the attributes of the element, with the qualified name as keypublic void appendElementBody(String elementBody)
appendElementBody
in interface XmlMetadataAnnotations
elementBody
- the body content to be addedpublic void appendElementEnd(String qName)
appendElementEnd
in interface XmlMetadataAnnotations
qName
- the qualified name of the elementpublic String getElementString()
getElementString
in interface XmlMetadataAnnotations
public void setLineNumber(int lineNumber)
lineNumber
- the line where the declaration of the element starts in its source xml file.public int getLineNumber()
getLineNumber
in interface XmlMetadataAnnotations
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.