Class CollectionInfoJ2SortedSet
java.lang.Object
org.exolab.castor.builder.info.FieldInfo
org.exolab.castor.builder.info.CollectionInfo
org.exolab.castor.builder.info.CollectionInfoJ2
org.exolab.castor.builder.info.CollectionInfoJ2SortedSet
- All Implemented Interfaces:
NatureExtendable, PropertyHolder, XMLInfo
A helper used for generating source that deals with Java 2 Collections of
type 'java.util.SortedSet'.
- Version:
- $Revision: 6302 $ $Date: 2006-02-23 01:08:24 -0700 (Thu, 23 Feb 2006) $
- Author:
- invalid input: '<'a href="mailto:werner DOT guttmann AT gmx DOT net"">Werner Guttmann
-
Field Summary
Fields inherited from class CollectionInfo
DEFAULT_REFERENCE_SUFFIX, REFERENCE_SUFFIX_PROPERTYFields inherited from class FieldInfo
METHOD_PREFIX_ADD, METHOD_PREFIX_DELETE, METHOD_PREFIX_GET, METHOD_PREFIX_HAS, METHOD_PREFIX_IS, METHOD_PREFIX_SET, READ_METHOD, READ_WRITE_METHODS, WRITE_METHODModifier and TypeFieldDescriptionprotected static final StringMethod prefixes for "Add" methods.protected static final StringMethod prefixes for "Delete" methods.protected static final StringMethod prefixes for "Get" methods.protected static final StringMethod prefixes for "Has" methods.protected static final StringMethod prefixes for "Is" methods.protected static final StringMethod prefixes for "Set" methods.static final intThe Read / Getter method flag.static final intThe Read and Write methods flags.static final intThe Write / Setter method flag.Fields inherited from interface XMLInfo
CHOICE_NODE_NAME_ERROR_INDICATIONModifier and TypeFieldDescriptionstatic final StringIdentifies the node name for a choice group. -
Constructor Summary
ConstructorsConstructorDescriptionCollectionInfoJ2SortedSet(XSType contentType, String name, String elementName, boolean useJava50, FieldMemberAndAccessorFactory memberAndAccessorFactory, FieldMemberAndAccessorFactory contentMemberAndAccessorFactory) Creates an instance of this class that represents information about a Java collection type of type 'java.util.SortedSet'. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateAddByIndexMethod(JClass jClass) protected voidcreateGetByIndexMethod(JClass jClass) protected voidcreateRemoveByIndexMethod(JClass jClass) protected voidcreateSetByIndexMethod(JClass jClass) Methods inherited from class CollectionInfo
getContent, getContentName, getContentType, getElementName, getMethodSuffix, getParameterPrefix, getReferenceMethodSuffix, getReferenceSuffix, getXSList, isExtraMethods, setCreateExtraMethods, setReferenceMethodSuffixModifier and TypeMethodDescriptionfinal FieldInfoReturn the contents of the collection.final StringReturns the variable name for the content of the collection.final XSTypeReturns the type of content in this collection.final StringReturns the name to be used when referring to the elements of this collection.final StringReturns the method suffix for creating method names.Returns the element type name converted to a parameter prefix.final StringReturns the suffix (ending) that should be used when creating the extra collection methods.Returns the reference suffix to use for 'reference style' methods.final XSListTypeReturns the schema type represented by this collection.booleanIndicates whether extra collection methods should be created.final voidsetCreateExtraMethods(boolean extraMethods) Sets whether or not to create extra collection methods for accessing the actual collection.final voidsetReferenceMethodSuffix(String suffix) Sets the method suffix (ending) to use when creating the extra collection methods.Methods inherited from class FieldInfo
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, setXMLFieldHandlerModifier and TypeMethodDescriptionfinal voidAdds a specified nature.final StringReturns the comment associated with this Member.final ClassInfoReturns the ClassInfo to which this Member was declared, for inheritance reasons.final StringReturns the default value for this FieldInfo.final StringReturns the name of the delete method for this FieldInfo.Returns the reference to theFieldInfoinstance within the same class.final StringReturns the fixed production for this FieldInfo, or null if no fixed value has been specified.final StringReturns the name of the has method for this FieldInfo.final StringGet the 'is' method for this FieldInfo.Returns the FieldMemberAndAccessorFactory instance to use to create a JField out of this FieldInfo.final intReturns the methods flag that indicates which.final StringgetName()Returns the name of this FieldInfo.final ObjectgetProperty(String name) Get a property by its name.final StringReturns the name of the read method for this FieldInfo.Returns the possible substitution groups for this class.final StringReturns the fully qualified name of the Validator to use.Returns this field's 'visibility'.final StringReturns the name of the write method for this FieldInfo.final StringReturns the fully qualified name of the XMLFieldHandler to use.final booleanChecks if a specified nature has been added.final booleanisBound()Returns true if this FieldInfo represents a bound property.final booleanReturns true if this FieldInfo describes a container class.booleanisFinal()Indicates whether this field is final.final booleanReturns true if this field represents a nillable field.booleanisStatic()Indicates whether this field is static.final booleanReturns true if this FieldInfo is a transient member.final booleanReturns true if the "has" and "delete" methods are needed for the field associated with this FieldInfo.final voidsetBound(boolean bound) Sets whether or not this FieldInfo represents a bound property.final voidsetComment(String comment) Sets the comment for this Member.final voidsetContainer(boolean isContainer) Sets whether or not this FieldInfo describes a container field.final voidsetDeclaringClassInfo(ClassInfo declaringClassInfo) Sets theClassInfoof the class that declares this field.final voidsetDefaultValue(String defaultValue) Sets the default value for this FieldInfo.final voidsetFieldInfoReference(FieldInfo fieldInfo) Sets the name of the field within the same class that is a reference to this field.final voidsetFinal(boolean isFinal) Sets the "final" status of this FieldInfo.final voidsetFixedValue(String fixedValue) Sets the fixed value in which instances of this field type must lexically match.final voidsetMethods(int methods) Sets which methods to create: READ_METHOD, WRITE_METHOD, READ_WRITE_METHODS.final voidsetNillable(boolean nillable) Sets whether or not this field can be nillable.final voidsetProperty(String name, Object value) Set a property specified by the name to the passed value.final voidsetStatic(boolean isStatic) Sets the "static" status of this FieldInfo.voidsetSubstitutionGroupMembers(List<String> substitutionGroupMembers) Sets the possible substitution groups for this class.final voidsetTransient(boolean isTransient) Sets the transient status of this FieldInfo.final voidsetValidator(String validator) Sets the name of the Validator to use.final voidsetVisibility(String visibility) Sets the visibility of this FieldInfo.final voidsetXMLFieldHandler(String handler) Sets the name of the XMLfieldHandler to use.
-
Constructor Details
-
CollectionInfoJ2SortedSet
public CollectionInfoJ2SortedSet(XSType contentType, String name, String elementName, boolean useJava50, FieldMemberAndAccessorFactory memberAndAccessorFactory, FieldMemberAndAccessorFactory contentMemberAndAccessorFactory) Creates an instance of this class that represents information about a Java collection type of type 'java.util.SortedSet'.- Parameters:
contentType- The content type of the collection, ie. the type of objects that the collection will contain.name- The name of the Collection.elementName- The element name for each element in collection.useJava50- true if code is supposed to be generated for Java 5memberAndAccessorFactory- the FieldMemberAndAccessorFactory to be usedcontentMemberAndAccessorFactory- the factory for the content
-
-
Method Details
-
createAddByIndexMethod
-
createGetByIndexMethod
-
createSetByIndexMethod
-
createRemoveByIndexMethod
-