org.jboss.shrinkwrap.descriptor.impl.ejbjar31
Class CmrFieldTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.ejbjar31.CmrFieldTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, CmrFieldType<T>

public class CmrFieldTypeImpl<T>
extends java.lang.Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, CmrFieldType<T>

This class implements the cmr-fieldType xsd type

Original Documentation:



The cmr-fieldType describes the bean provider's view of
a relationship. It consists of an optional description, and
the name and the class type of a field in the source of a
role of a relationship. The cmr-field-name element
corresponds to the name used for the get and set accessor
methods for the relationship. The cmr-field-type element is
used only for collection-valued cmr-fields. It specifies the
type of the collection that is used.


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Constructor Summary
CmrFieldTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
CmrFieldTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 java.lang.String getCmrFieldName()
          Returns the cmr-field-name element
 CmrFieldTypeType getCmrFieldType()
          Returns the cmr-field-type element
 java.lang.String getCmrFieldTypeAsString()
          Returns the cmr-field-type element
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 CmrFieldType<T> removeAllDescription()
          Removes the description element
 CmrFieldType<T> removeCmrFieldName()
          Removes the cmr-field-name element
 CmrFieldType<T> setCmrFieldName(java.lang.String cmrFieldName)
          If not already created, a new cmr-field-name element with the given value will be created.
 CmrFieldType<T> setCmrFieldType(CmrFieldTypeType cmrFieldType)
          If not already created, a new cmr-field-type element with the given value will be created.
 CmrFieldType<T> setCmrFieldType(java.lang.String cmrFieldType)
          If not already created, a new cmr-field-type element with the given value will be created.
 CmrFieldType<T> setDescription(java.lang.String description)
          Creates a new description element
 CmrFieldType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 T up()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmrFieldTypeImpl

public CmrFieldTypeImpl(T t,
                        java.lang.String nodeName,
                        org.jboss.shrinkwrap.descriptor.spi.Node node)

CmrFieldTypeImpl

public CmrFieldTypeImpl(T t,
                        java.lang.String nodeName,
                        org.jboss.shrinkwrap.descriptor.spi.Node node,
                        org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail

up

public T up()
Specified by:
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>

setDescription

public CmrFieldType<T> setDescription(java.lang.String description)
Creates a new description element

Specified by:
setDescription in interface CmrFieldType<T>
Returns:
the current instance of CmrFieldType

setDescriptionList

public CmrFieldType<T> setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Specified by:
setDescriptionList in interface CmrFieldType<T>
Parameters:
list - of description objects
Returns:
the current instance of CmrFieldType

removeAllDescription

public CmrFieldType<T> removeAllDescription()
Removes the description element

Specified by:
removeAllDescription in interface CmrFieldType<T>
Returns:
the current instance of CmrFieldType

getDescriptionList

public java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Specified by:
getDescriptionList in interface CmrFieldType<T>
Returns:
list of description

setCmrFieldName

public CmrFieldType<T> setCmrFieldName(java.lang.String cmrFieldName)
If not already created, a new cmr-field-name element with the given value will be created. Otherwise, the existing cmr-field-name element will be updated with the given value.

Specified by:
setCmrFieldName in interface CmrFieldType<T>
Returns:
the current instance of CmrFieldType

removeCmrFieldName

public CmrFieldType<T> removeCmrFieldName()
Removes the cmr-field-name element

Specified by:
removeCmrFieldName in interface CmrFieldType<T>
Returns:
the current instance of CmrFieldType

getCmrFieldName

public java.lang.String getCmrFieldName()
Returns the cmr-field-name element

Specified by:
getCmrFieldName in interface CmrFieldType<T>
Returns:
the node defined for the element cmr-field-name

setCmrFieldType

public CmrFieldType<T> setCmrFieldType(CmrFieldTypeType cmrFieldType)
If not already created, a new cmr-field-type element with the given value will be created. Otherwise, the existing cmr-field-type element will be updated with the given value.

Specified by:
setCmrFieldType in interface CmrFieldType<T>
Returns:
the current instance of CmrFieldType

setCmrFieldType

public CmrFieldType<T> setCmrFieldType(java.lang.String cmrFieldType)
If not already created, a new cmr-field-type element with the given value will be created. Otherwise, the existing cmr-field-type element will be updated with the given value.

Specified by:
setCmrFieldType in interface CmrFieldType<T>
Returns:
the current instance of CmrFieldType

getCmrFieldType

public CmrFieldTypeType getCmrFieldType()
Returns the cmr-field-type element

Specified by:
getCmrFieldType in interface CmrFieldType<T>
Returns:
the node defined for the element cmr-field-type

getCmrFieldTypeAsString

public java.lang.String getCmrFieldTypeAsString()
Returns the cmr-field-type element

Specified by:
getCmrFieldTypeAsString in interface CmrFieldType<T>
Returns:
the node defined for the element cmr-field-type