java.lang.Object
org.mule.runtime.ast.api.AstParserAttribute<T>
- Type Parameters:
T- The type of the attribute value. Please try to stick to basic Java types like Integer, Double, BigDecimal, String, Boolean, etc. to avoid class loading issues when serializing/deserializing these.
Parsing attribute that might be DSL-specific.
For example, in case of XML-based DSLs, an attribute could be the position of the opening tag in the source file.
- Since:
- 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(ComponentMetadataAst componentMetadataAst) Convenience for extracting the value from the attributes map of the givenComponentMetadataAstwith type conversion.getKey()getRaw(ComponentMetadataAst componentMetadataAst) Gets the raw value from the attributes map of the givenComponentMetadataAstwithout trying to perform type conversion.
-
Constructor Details
-
AstParserAttribute
-
-
Method Details
-
getKey
- Returns:
- the key for this attribute in the attributes map of
ComponentMetadataAst.
-
get
Convenience for extracting the value from the attributes map of the givenComponentMetadataAstwith type conversion.- Parameters:
componentMetadataAst- AComponentMetadataAstto get the attribute value from.- Returns:
- the attribute value with the right type.
-
getRaw
Gets the raw value from the attributes map of the givenComponentMetadataAstwithout trying to perform type conversion.get(ComponentMetadataAst)should be preferred for type safety.- Parameters:
componentMetadataAst- AComponentMetadataAstto get the attribute value from.- Returns:
- the attribute value without any type conversion.
-