org.exolab.castor.builder.info
Class CollectionInfo
public class CollectionInfo
A helper used for generating source that deals with Collections.
$Revision: 7148 $ $Date: 2006-02-23 01:08:24 -0700 (Thu, 23 Feb 2006) $
getComment , getDeclaringClassInfo , getDefaultValue , getDeleteMethodName , getFieldInfoReference , getFixedValue , getHasMethodName , getMemberAndAccessorFactory , getMethodSuffix , getMethods , getName , getReadMethodName , getSubstitutionGroupMembers , getValidator , getVisibility , getWriteMethodName , getXMLFieldHandler , isBound , isContainer , isFinal , isHasAndDeleteMethods , isNillable , isStatic , isTransient , setBound , setComment , setContainer , setDeclaringClassInfo , setDefaultValue , setFieldInfoReference , setFinal , setFixedValue , setMethods , setNillable , setStatic , setSubstitutionGroupMembers , setTransient , setValidator , setVisibility , setXMLFieldHandler |
getNamespacePrefix , getNamespaceURI , getNodeName , getNodeType , getNodeTypeName , getSchemaType , isElementDefinition , isMultivalued , isRequired , setElementDefinition , setMultivalued , setNamespacePrefix , setNamespaceURI , setNodeName , setNodeType , setRequired , setSchemaType |
DEFAULT_REFERENCE_SUFFIX
public static final String DEFAULT_REFERENCE_SUFFIX
Default suffix for the setter/getter by reference method names.
REFERENCE_SUFFIX_PROPERTY
public static final String REFERENCE_SUFFIX_PROPERTY
The property used to overwrite the reference suffix for extra collection
methods.
CollectionInfo
public CollectionInfo(XSType contentType,
String name,
String elementName,
boolean useJava50,
FieldMemberAndAccessorFactory memberAndAccessorFactory,
FieldMemberAndAccessorFactory contentMemberAndAccessorFactory)
Creates a new CollectionInfo.
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 content
getContent
public final FieldInfo getContent()
Return the contents of the collection.
- the contents of the collection.
getContentName
public final String getContentName()
Returns the variable name for the content of the collection.
- the variable name for the content of the collection.
getContentType
public final XSType getContentType()
Returns the type of content in this collection.
- the type of content in this collection.
getElementName
public final String getElementName()
Returns the name to be used when referring to the elements of this
collection.
- the name to be used when referring to the elements of this
collection.
getParameterPrefix
public String getParameterPrefix()
Returns the element type name converted to a parameter prefix.
- the element type name converted to a parameter prefix.
getReferenceMethodSuffix
public final String getReferenceMethodSuffix()
Returns the suffix (ending) that should be used when creating the extra
collection methods.
- the suffix for the reference methods
getReferenceSuffix
public String getReferenceSuffix()
Returns the reference suffix to use for 'reference style' methods.
- the reference suffix to use
getXSList
public final XSListType getXSList()
Returns the schema type represented by this collection.
- the schema type represented by this collection.
isExtraMethods
public boolean isExtraMethods()
Indicates whether extra collection methods should be created.
- True if extra collection methods will be created.
setCreateExtraMethods
public final void setCreateExtraMethods(boolean extraMethods)
Sets whether or not to create extra collection methods for accessing the
actual collection.
extraMethods
- a boolean that when true indicates that extra collection
accessor methods should be created. False by default.
setReferenceMethodSuffix
public final void setReferenceMethodSuffix(String suffix)
Sets the method suffix (ending) to use when creating the extra collection
methods.
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.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com