Uses of Class
org.exolab.castor.mapping.MappingException
Packages that use MappingException
Package
Description
The Class Mapping API
Implementations for mapping interfaces and the default mapping loader.
Command line tools
The XML Marshaller API
-
Uses of MappingException in org.castor.mapping
Methods in org.castor.mapping that throw MappingExceptionModifier and TypeMethodDescriptionfinal MappingLoader
AbstractMappingLoaderFactory.getMappingLoader()
MappingLoaderFactory.getMappingLoader()
Acquires the appropriate org.exolab.castor.mapping.MappingLoader with the given properties.MappingLoaderRegistry.getMappingLoader
(String sourceType, BindingType bindingType) Returns a mapping loader for the suitable source and binding type.MappingUnmarshaller.getMappingLoader
(Mapping mapping, BindingType bindingType) Returns a mapping resolver for the suitable engine.MappingUnmarshaller.getMappingLoader
(Mapping mapping, BindingType bindingType, Object param) Returns a mapping resolver for the suitable engine.protected void
MappingUnmarshaller.loadMappingInternal
(Mapping mapping, DTDResolver resolver, String url) Internal recursive loading method.void
MappingUnmarshaller.loadMappingOnly
(Mapping mapping) -
Uses of MappingException in org.castor.xml
Methods in org.castor.xml that throw MappingExceptionModifier and TypeMethodDescriptionvoid
AbstractInternalContext.addMapping
(Mapping mapping) void
InternalContext.addMapping
(Mapping mapping) Instructs Castor to load class descriptors from the mapping given. -
Uses of MappingException in org.exolab.castor.mapping
Methods in org.exolab.castor.mapping that throw MappingExceptionModifier and TypeMethodDescriptionabstract GeneralizedFieldHandler
FieldHandlerFactory.createFieldHandler
(Class type) Creates a GeneralizedFieldHandler for the given class type.Mapping.getMappingSources()
Get list of mapping sources to resolve.void
Mapping.loadMapping
(String url) Loads the mapping from the specified URL with type defaults to 'CastorXmlMapping'.void
Mapping.loadMapping
(String url, String type) Loads the mapping from the specified URL.void
Mapping.loadMapping
(URL url) Loads the mapping from the specified URL with type defaults to 'CastorXmlMapping'.void
Mapping.loadMapping
(URL url, String type) Loads the mapping from the specified URL. -
Uses of MappingException in org.exolab.castor.mapping.loader
Methods in org.exolab.castor.mapping.loader that throw MappingExceptionModifier and TypeMethodDescriptionprotected final void
AbstractMappingLoader2.addDescriptor
(ClassDescriptor descriptor) Adds a class descriptor.protected final void
AbstractMappingLoader.checkFieldNameDuplicates
(FieldDescriptor[] fields, Class<?> cls) Checks all given fields for name equality and throws a MappingException if at least two fields have the same name.protected abstract ClassDescriptor
AbstractMappingLoader.createClassDescriptor
(ClassMapping clsMap) protected final void
AbstractMappingLoader.createClassDescriptors
(MappingRoot mapping) protected FieldDescriptorImpl
AbstractMappingLoader.createFieldDesc
(Class<?> javaClass, FieldMapping fieldMap) Creates a single field descriptor.protected final FieldDescriptorImpl[]
AbstractMappingLoader.createFieldDescriptors
(ClassMapping clsMap, Class<?> javaClass) Create field descriptors.protected final FieldHandler
AbstractMappingLoader.createFieldHandler
(Class<?> javaClass, Class<?> fldType, FieldMapping fldMap, AbstractMappingLoader.TypeInfoReference typeInfoRef) Creates the FieldHandler for the given FieldMapping.protected void
AbstractMappingLoader.createFieldHandlers
(MappingRoot mapping) Load field handler definitions, check for duplicate definitions and instantiate the appropriate FieldHandler implementations.static final Method
AbstractMappingLoader.findAccessor
(Class<?> javaClass, String methodName, Class<?> fieldType, boolean getMethod) Returns the named accessor.static Class
<?> CollectionHandlers.getCollectionType
(String name) Returns the collection's Java class from the collection name.protected final ClassDescriptor
AbstractMappingLoader.getDepended
(ClassMapping clsMap, Class<?> javaClass) Gets the ClassDescriptor the givenclassMapping
depends on.protected final ClassDescriptor
AbstractMappingLoader.getExtended
(ClassMapping clsMap, Class<?> javaClass) Gets the ClassDescriptor the givenclassMapping
extends.static FieldDescriptor[]
ClassDescriptorHelper.getFullFields
(ClassDescriptor classDescriptor) Get all theFieldDescriptor
s for non-identity fields, including all the fields in base classes.static CollectionHandler
CollectionHandlers.getHandler
(Class<?> javaClass) Returns the collection's handler based on the Java class.static FieldDescriptor[]
ClassDescriptorHelper.getIdFields
(ClassDescriptor classDescriptor) Get the all the id fields of a class If the class, C, is a dependent class, then the depended class', D, id fields will be appended at the back and returned.protected TypeInfo
AbstractMappingLoader.getTypeInfo
(Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) static boolean
CollectionHandlers.isGetSetCollection
(Class<?> javaClass) Returns true if the collection requires get/set methods.abstract void
AbstractMappingLoader.loadMapping
(MappingRoot mapping, Object param) Loads the mapping from the specified mapping object if not loaded previously.protected final Class
<?> AbstractMappingLoader.resolveType
(String typeName) Returns the Java class for the named type.void
FieldHandlerImpl.setAddMethod
(Method method) Mutator method used byIntrospector
.void
FieldHandlerImpl.setCreateMethod
(Method method) Mutator method used byAbstractMappingLoader
andIntrospector
.void
FieldHandlerImpl.setEnumMethod
(Method method) Sets the enumeration method.void
FieldHandlerImpl.setHasDeleteMethod
(Method hasMethod, Method deleteMethod) Mutator method used byAbstractMappingLoader
andIntrospector
.void
FieldHandlerImpl.setIterMethod
(Method method) Sets the iteration method.void
FieldHandlerImpl.setReadMethod
(Method method) Mutator method used byIntrospector
.void
FieldHandlerImpl.setWriteMethod
(Method method) Mutator method used byIntrospector
.Constructors in org.exolab.castor.mapping.loader that throw MappingExceptionModifierConstructorDescriptionFieldHandlerImpl
(Field field, TypeInfo typeInfo) Construct a new field handler for the specified field.FieldHandlerImpl
(String fieldName, Method[] getSequence, Method[] setSequence, Method getMethod, Method setMethod, TypeInfo typeInfo) Construct a new field handler for the specified field that is accessed through the accessor methods (get/set). -
Uses of MappingException in org.exolab.castor.tools
Methods in org.exolab.castor.tools that throw MappingExceptionModifier and TypeMethodDescriptionvoid
Adds the given Class to the mapping file.void
Adds the given Class to the mapping file.void
Adds the Class, specified by the given name, to the mapping file.void
Adds the Class, specified by the given name, to the mapping file.void
Serializes the mapping to the given writer. -
Uses of MappingException in org.exolab.castor.xml
Methods in org.exolab.castor.xml that throw MappingExceptionModifier and TypeMethodDescriptionvoid
XMLContext.addMapping
(Mapping mapping) Instructs Castor to load class descriptors from the mapping given.protected ClassDescriptor
XMLMappingLoader.createClassDescriptor
(ClassMapping classMapping) To create the class descriptor for the given class mapping.protected FieldDescriptorImpl
XMLMappingLoader.createFieldDesc
(Class javaClass, FieldMapping fieldMap) protected TypeInfo
XMLMappingLoader.getTypeInfo
(Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) void
XMLMappingLoader.loadMapping
(MappingRoot mapping, Object param) Loads the mapping from the specified mapping object if not loaded previously.void
Marshaller.setMapping
(Mapping mapping) Sets the given mapping to be used by the marshalling Framework.void
Unmarshaller.setMapping
(Mapping mapping) Sets the Mapping to use during unmarshalling.Constructors in org.exolab.castor.xml that throw MappingExceptionModifierConstructorDescriptionUnmarshaller
(InternalContext internalContext, Mapping mapping) Creates a new Unmarshaller with the given Mapping.Unmarshaller
(Mapping mapping) Creates a new Unmarshaller with the given Mapping. -
Uses of MappingException in org.exolab.castor.xml.handlers
Methods in org.exolab.castor.xml.handlers that throw MappingExceptionModifier and TypeMethodDescriptionDefaultFieldHandlerFactory.createFieldHandler
(Class type) Creates a GeneralizedFieldHandler for the given class type.Constructors in org.exolab.castor.xml.handlers that throw MappingException -
Uses of MappingException in org.exolab.castor.xml.util
Constructors in org.exolab.castor.xml.util that throw MappingExceptionModifierConstructorDescriptionXMLClassDescriptorAdapter
(ClassDescriptor classDesc, String xmlName) Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.XMLClassDescriptorAdapter
(ClassDescriptor classDesc, String xmlName, NodeType primitiveNodeType) Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.XMLContainerElementFieldDescriptor
(XMLFieldDescriptorImpl fieldDesc, NodeType primitiveNodeType) XMLFieldDescriptorImpl
(FieldDescriptor fieldDesc, String xmlName, NodeType nodeType, NodeType primitiveNodeType) Construct a new field descriptor for the specified field.