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-nameattributeConfigPropertyType<ExtensionType<T>>createConfigProperty()Creates a newconfig-propertyelementList<ConfigPropertyType<ExtensionType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetClassName()Returns theclass-nameattributeConfigPropertyType<ExtensionType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.ExtensionType<T>removeAllConfigProperty()Removes allconfig-propertyelementsExtensionType<T>removeClassName()Removes theclass-nameattribute
-
-
-
Method Detail
-
getOrCreateConfigProperty
ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
ConfigPropertyType<ExtensionType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
List<ConfigPropertyType<ExtensionType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Returns:
- list of
config-property
-
removeAllConfigProperty
ExtensionType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Returns:
- the current instance of
ConfigPropertyType>
-
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
-
-