org.jboss.shrinkwrap.descriptor.api.jboss51
Interface MethodAttributesType<T>

All Superinterfaces:
Child<T>

public interface MethodAttributesType<T>
extends Child<T>

This interface defines the contract for the method-attributesType xsd type

Since:
Generation date :2013-01-26T19:27:00.777+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 MethodType<MethodAttributesType<T>> createMethod()
          Creates a new method element
 List<MethodType<MethodAttributesType<T>>> getAllMethod()
          Returns all method elements
 String getId()
          Returns the id attribute
 MethodType<MethodAttributesType<T>> getOrCreateMethod()
          If not already created, a new method element will be created and returned.
 MethodAttributesType<T> id(String id)
          Sets the id attribute
 MethodAttributesType<T> removeAllMethod()
          Removes all method elements
 MethodAttributesType<T> removeId()
          Removes the id attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

getOrCreateMethod

MethodType<MethodAttributesType<T>> getOrCreateMethod()
If not already created, a new method element will be created and returned. Otherwise, the first existing method element will be returned.

Returns:
the instance defined for the element method

createMethod

MethodType<MethodAttributesType<T>> createMethod()
Creates a new method element

Returns:
the new created instance of MethodType>

getAllMethod

List<MethodType<MethodAttributesType<T>>> getAllMethod()
Returns all method elements

Returns:
list of method

removeAllMethod

MethodAttributesType<T> removeAllMethod()
Removes all method elements

Returns:
the current instance of MethodType>

id

MethodAttributesType<T> id(String id)
Sets the id attribute

Parameters:
id - the value for the attribute id
Returns:
the current instance of MethodAttributesType

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

MethodAttributesType<T> removeId()
Removes the id attribute

Returns:
the current instance of MethodAttributesType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.