Interface ExtensionType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ExtensionTypeImpl
public interface ExtensionType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for theextensionTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensionType<T>className(String className)Sets theclass-nameattributeStringgetClassName()Returns theclass-nameattributeConfigPropertyType<ExtensionType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement with the given value will be created.ExtensionType<T>removeClassName()Removes theclass-nameattributeExtensionType<T>removeConfigProperty()Removes theconfig-propertyelement
-
-
-
Method Detail
-
getOrCreateConfigProperty
ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
If not already created, a newconfig-propertyelement with the given value will be created. Otherwise, the existingconfig-propertyelement will be returned.- Returns:
- a new or existing instance of
ConfigPropertyType>
-
removeConfigProperty
ExtensionType<T> removeConfigProperty()
Removes theconfig-propertyelement- Returns:
- the current instance of
ExtensionType
-
className
ExtensionType<T> className(String className)
Sets theclass-nameattribute- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
ExtensionType
-
getClassName
String getClassName()
Returns theclass-nameattribute- Returns:
- the value defined for the attribute
class-name
-
removeClassName
ExtensionType<T> removeClassName()
Removes theclass-nameattribute- Returns:
- the current instance of
ExtensionType
-
-