|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar30.CmrFieldTypeImpl<T>
public class CmrFieldTypeImpl<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.
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 |
---|
public CmrFieldTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public CmrFieldTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public CmrFieldType<T> setDescription(java.lang.String description)
description
element
setDescription
in interface CmrFieldType<T>
CmrFieldType
public CmrFieldType<T> setDescriptionList(java.lang.String... values)
description
elements,
a new description
element
setDescriptionList
in interface CmrFieldType<T>
list
- of description
objects
CmrFieldType
public CmrFieldType<T> removeAllDescription()
description
element
removeAllDescription
in interface CmrFieldType<T>
CmrFieldType
public java.util.List<java.lang.String> getDescriptionList()
description
elements
getDescriptionList
in interface CmrFieldType<T>
description
public CmrFieldType<T> setCmrFieldName(java.lang.String cmrFieldName)
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.
setCmrFieldName
in interface CmrFieldType<T>
CmrFieldType
public CmrFieldType<T> removeCmrFieldName()
cmr-field-name
element
removeCmrFieldName
in interface CmrFieldType<T>
CmrFieldType
public java.lang.String getCmrFieldName()
cmr-field-name
element
getCmrFieldName
in interface CmrFieldType<T>
cmr-field-name
public CmrFieldType<T> setCmrFieldType(CmrFieldTypeType cmrFieldType)
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.
setCmrFieldType
in interface CmrFieldType<T>
CmrFieldType
public CmrFieldType<T> setCmrFieldType(java.lang.String cmrFieldType)
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.
setCmrFieldType
in interface CmrFieldType<T>
CmrFieldType
public CmrFieldTypeType getCmrFieldType()
cmr-field-type
element
getCmrFieldType
in interface CmrFieldType<T>
cmr-field-type
public java.lang.String getCmrFieldTypeAsString()
cmr-field-type
element
getCmrFieldTypeAsString
in interface CmrFieldType<T>
cmr-field-type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |