Class IdentityInfo
java.lang.Object
org.exolab.castor.builder.info.FieldInfo
org.exolab.castor.builder.info.IdentityInfo
- All Implemented Interfaces:
NatureExtendable, PropertyHolder, XMLInfo
- Version:
- $Revision: 7915 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
- Author:
- Keith Visco
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionIdentityInfo(String name, FieldMemberAndAccessorFactory memberAndAccessorFactory) Creates a new IdentityInfo. -
Method Summary
Methods inherited from class FieldInfo
addNature, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFieldInfoReference, getFixedValue, getHasMethodName, getIsMethodName, getMemberAndAccessorFactory, getMethods, getMethodSuffix, 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.Returns the method suffix for creating method names.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
-
IdentityInfo
Creates a new IdentityInfo.- Parameters:
name- the name of this identitymemberAndAccessorFactory- the FieldMemberAndAccessorFactory to be used
-