Class AdministeredObjectTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.AdministeredObjectTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,AdministeredObjectType<T>
public class AdministeredObjectTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, AdministeredObjectType<T>
This class implements theadministered-objectTypexsd type
-
-
Constructor Summary
Constructors Constructor Description AdministeredObjectTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)AdministeredObjectTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdministeredObjectType<T>className(String className)Sets theclass-nameelementPropertyType<AdministeredObjectType<T>>createProperty()Creates a newpropertyelementAdministeredObjectType<T>description(String description)Sets thedescriptionelementList<PropertyType<AdministeredObjectType<T>>>getAllProperty()Returns allpropertyelementsStringgetClassName()Returns theclass-nameelementStringgetDescription()Returns thedescriptionelementStringgetId()Returns theidattributeStringgetInterfaceName()Returns theinterface-nameelementStringgetName()Returns thenameelementPropertyType<AdministeredObjectType<T>>getOrCreateProperty()If not already created, a newpropertyelement will be created and returned.StringgetResourceAdapter()Returns theresource-adapterelementAdministeredObjectType<T>id(String id)Sets theidattributeAdministeredObjectType<T>interfaceName(String interfaceName)Sets theinterface-nameelementAdministeredObjectType<T>name(String name)Sets thenameelementAdministeredObjectType<T>removeAllProperty()Removes allpropertyelementsAdministeredObjectType<T>removeClassName()Removes theclass-nameelementAdministeredObjectType<T>removeDescription()Removes thedescriptionelementAdministeredObjectType<T>removeId()Removes theidattributeAdministeredObjectType<T>removeInterfaceName()Removes theinterface-nameelementAdministeredObjectType<T>removeName()Removes thenameelementAdministeredObjectType<T>removeResourceAdapter()Removes theresource-adapterelementAdministeredObjectType<T>resourceAdapter(String resourceAdapter)Sets theresource-adapterelementTup()
-
-
-
Method Detail
-
description
public AdministeredObjectType<T> description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceAdministeredObjectType<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
AdministeredObjectType
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceAdministeredObjectType<T>- Returns:
- the node defined for the element
description
-
removeDescription
public AdministeredObjectType<T> removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceAdministeredObjectType<T>- Returns:
- the current instance of
AdministeredObjectType
-
name
public AdministeredObjectType<T> name(String name)
Sets thenameelement- Specified by:
namein interfaceAdministeredObjectType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
AdministeredObjectType
-
getName
public String getName()
Returns thenameelement- Specified by:
getNamein interfaceAdministeredObjectType<T>- Returns:
- the node defined for the element
name
-
removeName
public AdministeredObjectType<T> removeName()
Removes thenameelement- Specified by:
removeNamein interfaceAdministeredObjectType<T>- Returns:
- the current instance of
AdministeredObjectType
-
interfaceName
public AdministeredObjectType<T> interfaceName(String interfaceName)
Sets theinterface-nameelement- Specified by:
interfaceNamein interfaceAdministeredObjectType<T>- Parameters:
interfaceName- the value for the elementinterface-name- Returns:
- the current instance of
AdministeredObjectType
-
getInterfaceName
public String getInterfaceName()
Returns theinterface-nameelement- Specified by:
getInterfaceNamein interfaceAdministeredObjectType<T>- Returns:
- the node defined for the element
interface-name
-
removeInterfaceName
public AdministeredObjectType<T> removeInterfaceName()
Removes theinterface-nameelement- Specified by:
removeInterfaceNamein interfaceAdministeredObjectType<T>- Returns:
- the current instance of
AdministeredObjectType
-
className
public AdministeredObjectType<T> className(String className)
Sets theclass-nameelement- Specified by:
classNamein interfaceAdministeredObjectType<T>- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
AdministeredObjectType
-
getClassName
public String getClassName()
Returns theclass-nameelement- Specified by:
getClassNamein interfaceAdministeredObjectType<T>- Returns:
- the node defined for the element
class-name
-
removeClassName
public AdministeredObjectType<T> removeClassName()
Removes theclass-nameelement- Specified by:
removeClassNamein interfaceAdministeredObjectType<T>- Returns:
- the current instance of
AdministeredObjectType
-
resourceAdapter
public AdministeredObjectType<T> resourceAdapter(String resourceAdapter)
Sets theresource-adapterelement- Specified by:
resourceAdapterin interfaceAdministeredObjectType<T>- Parameters:
resourceAdapter- the value for the elementresource-adapter- Returns:
- the current instance of
AdministeredObjectType
-
getResourceAdapter
public String getResourceAdapter()
Returns theresource-adapterelement- Specified by:
getResourceAdapterin interfaceAdministeredObjectType<T>- Returns:
- the node defined for the element
resource-adapter
-
removeResourceAdapter
public AdministeredObjectType<T> removeResourceAdapter()
Removes theresource-adapterelement- Specified by:
removeResourceAdapterin interfaceAdministeredObjectType<T>- Returns:
- the current instance of
AdministeredObjectType
-
getOrCreateProperty
public PropertyType<AdministeredObjectType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Specified by:
getOrCreatePropertyin interfaceAdministeredObjectType<T>- Returns:
- the instance defined for the element
property
-
createProperty
public PropertyType<AdministeredObjectType<T>> createProperty()
Creates a newpropertyelement- Specified by:
createPropertyin interfaceAdministeredObjectType<T>- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
public List<PropertyType<AdministeredObjectType<T>>> getAllProperty()
Returns allpropertyelements- Specified by:
getAllPropertyin interfaceAdministeredObjectType<T>- Returns:
- list of
property
-
removeAllProperty
public AdministeredObjectType<T> removeAllProperty()
Removes allpropertyelements- Specified by:
removeAllPropertyin interfaceAdministeredObjectType<T>- Returns:
- the current instance of
PropertyType>
-
id
public AdministeredObjectType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceAdministeredObjectType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
AdministeredObjectType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceAdministeredObjectType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public AdministeredObjectType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceAdministeredObjectType<T>- Returns:
- the current instance of
AdministeredObjectType
-
-