Class TypeDslAnnotation
java.lang.Object
org.mule.runtime.extension.api.declaration.type.annotation.TypeDslAnnotation
- All Implemented Interfaces:
org.mule.metadata.api.annotation.TypeAnnotation
public class TypeDslAnnotation
extends Object
implements org.mule.metadata.api.annotation.TypeAnnotation
TypeAnnotation storing information defined by TypsDsl annotations- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTypeDslAnnotation(boolean allowInlineDefinition, boolean allowTopLevelDefinition, String substitutionGroup, String baseType) Creates a new instance -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mule.metadata.api.annotation.TypeAnnotation
isPublic
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TypeDslAnnotation
public TypeDslAnnotation(boolean allowInlineDefinition, boolean allowTopLevelDefinition, String substitutionGroup, String baseType) Creates a new instance- Parameters:
allowInlineDefinition- whether the associated element should support inline definition as child elementallowTopLevelDefinition- whether the associated element should support being defined as a top level elementsubstitutionGroup- the substitutionGroup that the xml element should have as attributebaseType- the dslBaseType that the type should declare as base attribute
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.mule.metadata.api.annotation.TypeAnnotation- Returns:
typeDsl
-
allowsInlineDefinition
public boolean allowsInlineDefinition()- Returns:
- whether the associated element should support inline definition as child element
-
allowsTopLevelDefinition
public boolean allowsTopLevelDefinition()- Returns:
- whether the associated element should support being defined as a top level element
-
getSubstitutionGroup
- Returns:
- any subtitutionGroup the element might extend from or
Optional.empty()if not defined
-
getDslBaseType
- Returns:
- any dslBaseType defined for the type to extend from or
Optional.empty()it not defined
-
hashCode
public int hashCode() -
equals
-