Interface AdministeredObjectType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
AdministeredObjectTypeImpl
public interface AdministeredObjectType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
administered-objectType xsd type-
Method Summary
Modifier and TypeMethodDescriptionSets theclass-nameelementCreates a newpropertyelementdescription(String description) Sets thedescriptionelementReturns allpropertyelementsReturns theclass-nameelementReturns thedescriptionelementgetId()Returns theidattributeReturns theinterface-nameelementgetName()Returns thenameelementIf not already created, a newpropertyelement will be created and returned.Returns theresource-adapterelementSets theidattributeinterfaceName(String interfaceName) Sets theinterface-nameelementSets thenameelementRemoves allpropertyelementsRemoves theclass-nameelementRemoves thedescriptionelementremoveId()Removes theidattributeRemoves theinterface-nameelementRemoves thenameelementRemoves theresource-adapterelementresourceAdapter(String resourceAdapter) Sets theresource-adapterelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
description
Sets thedescriptionelement- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
AdministeredObjectType
-
getDescription
String getDescription()Returns thedescriptionelement- Returns:
- the node defined for the element
description
-
removeDescription
AdministeredObjectType<T> removeDescription()Removes thedescriptionelement- Returns:
- the current instance of
AdministeredObjectType
-
name
Sets thenameelement- Parameters:
name- the value for the elementname- Returns:
- the current instance of
AdministeredObjectType
-
getName
String getName()Returns thenameelement- Returns:
- the node defined for the element
name
-
removeName
AdministeredObjectType<T> removeName()Removes thenameelement- Returns:
- the current instance of
AdministeredObjectType
-
interfaceName
Sets theinterface-nameelement- Parameters:
interfaceName- the value for the elementinterface-name- Returns:
- the current instance of
AdministeredObjectType
-
getInterfaceName
String getInterfaceName()Returns theinterface-nameelement- Returns:
- the node defined for the element
interface-name
-
removeInterfaceName
AdministeredObjectType<T> removeInterfaceName()Removes theinterface-nameelement- Returns:
- the current instance of
AdministeredObjectType
-
className
Sets theclass-nameelement- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
AdministeredObjectType
-
getClassName
String getClassName()Returns theclass-nameelement- Returns:
- the node defined for the element
class-name
-
removeClassName
AdministeredObjectType<T> removeClassName()Removes theclass-nameelement- Returns:
- the current instance of
AdministeredObjectType
-
resourceAdapter
Sets theresource-adapterelement- Parameters:
resourceAdapter- the value for the elementresource-adapter- Returns:
- the current instance of
AdministeredObjectType
-
getResourceAdapter
String getResourceAdapter()Returns theresource-adapterelement- Returns:
- the node defined for the element
resource-adapter
-
removeResourceAdapter
AdministeredObjectType<T> removeResourceAdapter()Removes theresource-adapterelement- Returns:
- the current instance of
AdministeredObjectType
-
getOrCreateProperty
PropertyType<AdministeredObjectType<T>> getOrCreateProperty()If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Returns:
- the instance defined for the element
property
-
createProperty
PropertyType<AdministeredObjectType<T>> createProperty()Creates a newpropertyelement- Returns:
- the new created instance of
PropertyType<AdministeredObjectType>
-
getAllProperty
List<PropertyType<AdministeredObjectType<T>>> getAllProperty()Returns allpropertyelements- Returns:
- list of
property
-
removeAllProperty
AdministeredObjectType<T> removeAllProperty()Removes allpropertyelements- Returns:
- the current instance of
PropertyType<AdministeredObjectType>
-
id
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
AdministeredObjectType
-
getId
String getId()Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
AdministeredObjectType<T> removeId()Removes theidattribute- Returns:
- the current instance of
AdministeredObjectType
-