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 MappingLoaderAbstractMappingLoaderFactory.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 voidMappingUnmarshaller.loadMappingInternal(Mapping mapping, DTDResolver resolver, String url) Internal recursive loading method.voidMappingUnmarshaller.loadMappingOnly(Mapping mapping) -
Uses of MappingException in org.castor.xml
Methods in org.castor.xml that throw MappingExceptionModifier and TypeMethodDescriptionvoidAbstractInternalContext.addMapping(Mapping mapping) voidInternalContext.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 GeneralizedFieldHandlerFieldHandlerFactory.createFieldHandler(Class type) Creates a GeneralizedFieldHandler for the given class type.Mapping.getMappingSources()Get list of mapping sources to resolve.voidMapping.loadMapping(String url) Loads the mapping from the specified URL with type defaults to 'CastorXmlMapping'.voidMapping.loadMapping(String url, String type) Loads the mapping from the specified URL.voidMapping.loadMapping(URL url) Loads the mapping from the specified URL with type defaults to 'CastorXmlMapping'.voidMapping.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 voidAbstractMappingLoader2.addDescriptor(ClassDescriptor descriptor) Adds a class descriptor.protected final voidAbstractMappingLoader.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 ClassDescriptorAbstractMappingLoader.createClassDescriptor(ClassMapping clsMap) protected final voidAbstractMappingLoader.createClassDescriptors(MappingRoot mapping) protected FieldDescriptorImplAbstractMappingLoader.createFieldDesc(Class<?> javaClass, FieldMapping fieldMap) Creates a single field descriptor.protected final FieldDescriptorImpl[]AbstractMappingLoader.createFieldDescriptors(ClassMapping clsMap, Class<?> javaClass) Create field descriptors.protected final FieldHandlerAbstractMappingLoader.createFieldHandler(Class<?> javaClass, Class<?> fldType, FieldMapping fldMap, AbstractMappingLoader.TypeInfoReference typeInfoRef) Creates the FieldHandler for the given FieldMapping.protected voidAbstractMappingLoader.createFieldHandlers(MappingRoot mapping) Load field handler definitions, check for duplicate definitions and instantiate the appropriate FieldHandler implementations.static final MethodAbstractMappingLoader.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 ClassDescriptorAbstractMappingLoader.getDepended(ClassMapping clsMap, Class<?> javaClass) Gets the ClassDescriptor the givenclassMappingdepends on.protected final ClassDescriptorAbstractMappingLoader.getExtended(ClassMapping clsMap, Class<?> javaClass) Gets the ClassDescriptor the givenclassMappingextends.static FieldDescriptor[]ClassDescriptorHelper.getFullFields(ClassDescriptor classDescriptor) Get all theFieldDescriptors for non-identity fields, including all the fields in base classes.static CollectionHandlerCollectionHandlers.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 TypeInfoAbstractMappingLoader.getTypeInfo(Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) static booleanCollectionHandlers.isGetSetCollection(Class<?> javaClass) Returns true if the collection requires get/set methods.abstract voidAbstractMappingLoader.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.voidFieldHandlerImpl.setAddMethod(Method method) Mutator method used byIntrospector.voidFieldHandlerImpl.setCreateMethod(Method method) Mutator method used byAbstractMappingLoaderandIntrospector.voidFieldHandlerImpl.setEnumMethod(Method method) Sets the enumeration method.voidFieldHandlerImpl.setHasDeleteMethod(Method hasMethod, Method deleteMethod) Mutator method used byAbstractMappingLoaderandIntrospector.voidFieldHandlerImpl.setIterMethod(Method method) Sets the iteration method.voidFieldHandlerImpl.setReadMethod(Method method) Mutator method used byIntrospector.voidFieldHandlerImpl.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 TypeMethodDescriptionvoidAdds the given Class to the mapping file.voidAdds the given Class to the mapping file.voidAdds the Class, specified by the given name, to the mapping file.voidAdds the Class, specified by the given name, to the mapping file.voidSerializes the mapping to the given writer. -
Uses of MappingException in org.exolab.castor.xml
Methods in org.exolab.castor.xml that throw MappingExceptionModifier and TypeMethodDescriptionvoidXMLContext.addMapping(Mapping mapping) Instructs Castor to load class descriptors from the mapping given.protected ClassDescriptorXMLMappingLoader.createClassDescriptor(ClassMapping classMapping) To create the class descriptor for the given class mapping.protected FieldDescriptorImplXMLMappingLoader.createFieldDesc(Class javaClass, FieldMapping fieldMap) protected TypeInfoXMLMappingLoader.getTypeInfo(Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) voidXMLMappingLoader.loadMapping(MappingRoot mapping, Object param) Loads the mapping from the specified mapping object if not loaded previously.voidMarshaller.setMapping(Mapping mapping) Sets the given mapping to be used by the marshalling Framework.voidUnmarshaller.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.