NatureExtendable
, PropertyHolder
, XMLInfo
CollectionInfoJ2
, CollectionInfoODMG30
public class CollectionInfo extends FieldInfo
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DEFAULT_REFERENCE_SUFFIX |
Default suffix for the setter/getter by reference method names.
|
static java.lang.String |
REFERENCE_SUFFIX_PROPERTY |
The property used to overwrite the reference suffix for extra collection
methods.
|
METHOD_PREFIX_ADD, METHOD_PREFIX_DELETE, METHOD_PREFIX_GET, METHOD_PREFIX_HAS, METHOD_PREFIX_IS, METHOD_PREFIX_SET, READ_METHOD, READ_WRITE_METHODS, WRITE_METHOD
CHOICE_NODE_NAME_ERROR_INDICATION
Constructor | Description |
---|---|
CollectionInfo(XSType contentType,
java.lang.String name,
java.lang.String elementName,
boolean useJava50,
FieldMemberAndAccessorFactory memberAndAccessorFactory,
FieldMemberAndAccessorFactory contentMemberAndAccessorFactory) |
Creates a new CollectionInfo.
|
Modifier and Type | Method | Description |
---|---|---|
FieldInfo |
getContent() |
Return the contents of the collection.
|
java.lang.String |
getContentName() |
Returns the variable name for the content of the collection.
|
XSType |
getContentType() |
Returns the type of content in this collection.
|
java.lang.String |
getElementName() |
Returns the name to be used when referring to the elements of this
collection.
|
java.lang.String |
getMethodSuffix() |
Returns the method suffix for creating method names.
|
java.lang.String |
getParameterPrefix() |
Returns the element type name converted to a parameter prefix.
|
java.lang.String |
getReferenceMethodSuffix() |
Returns the suffix (ending) that should be used when creating the extra
collection methods.
|
java.lang.String |
getReferenceSuffix() |
Returns the reference suffix to use for 'reference style' methods.
|
XSListType |
getXSList() |
Returns the schema type represented by this collection.
|
boolean |
isExtraMethods() |
Indicates whether extra collection methods should be created.
|
void |
setCreateExtraMethods(boolean extraMethods) |
Sets whether or not to create extra collection methods for accessing the
actual collection.
|
void |
setReferenceMethodSuffix(java.lang.String suffix) |
Sets the method suffix (ending) to use when creating the extra collection
methods.
|
addNature, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFieldInfoReference, getFixedValue, getHasMethodName, getIsMethodName, getMemberAndAccessorFactory, getMethods, getName, getProperty, getReadMethodName, getSubstitutionGroupMembers, getValidator, getVisibility, getWriteMethodName, getXMLFieldHandler, hasNature, isBound, isContainer, isFinal, isNillable, isStatic, isTransient, requiresHasAndDeleteMethods, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFieldInfoReference, setFinal, setFixedValue, setMethods, setNillable, setProperty, setStatic, setSubstitutionGroupMembers, setTransient, setValidator, setVisibility, setXMLFieldHandler
public static final java.lang.String DEFAULT_REFERENCE_SUFFIX
public static final java.lang.String REFERENCE_SUFFIX_PROPERTY
public CollectionInfo(XSType contentType, java.lang.String name, java.lang.String elementName, boolean useJava50, FieldMemberAndAccessorFactory memberAndAccessorFactory, FieldMemberAndAccessorFactory contentMemberAndAccessorFactory)
contentType
- the _content type of the collection, ie. the type of objects
that the collection will containname
- the name of the CollectionelementName
- the element name for each element in collectionuseJava50
- true if source code is supposed to be generated for Java 5memberAndAccessorFactory
- the FieldMemberAndAccessorFactory to be usedcontentMemberAndAccessorFactory
- the FieldMemberAndAccessorFactory for the contentpublic final FieldInfo getContent()
public final java.lang.String getContentName()
public final XSType getContentType()
public final java.lang.String getElementName()
public final XSListType getXSList()
public final void setCreateExtraMethods(boolean extraMethods)
extraMethods
- a boolean that when true indicates that extra collection
accessor methods should be created. False by default.setReferenceMethodSuffix(java.lang.String)
public final void setReferenceMethodSuffix(java.lang.String suffix)
suffix
- the method suffix to use when creating the extra collection
methods. If null or emtpty the default value, as specified by
DEFAULT_REFERENCE_SUFFIX will used.setCreateExtraMethods(boolean)
public final java.lang.String getMethodSuffix()
getMethodSuffix
in class FieldInfo
FieldInfo.getMethodSuffix()
public final java.lang.String getReferenceMethodSuffix()
public boolean isExtraMethods()
public java.lang.String getParameterPrefix()
public java.lang.String getReferenceSuffix()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com