org.eclipse.jpt.core.context.orm
Interface OrmXmlDefinition

All Superinterfaces:
MappingFileDefinition, ResourceDefinition

public interface OrmXmlDefinition
extends MappingFileDefinition

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.3
Version:
2.3

Method Summary
 OrmXmlContextNodeFactory getContextNodeFactory()
          Return the factory for building xml context nodes
 OrmAttributeMappingDefinition getOrmAttributeMappingDefinition(java.lang.String mappingKey)
          Return an OrmAttributeMappingDefinition for the given attribute mapping key.
 OrmTypeMappingDefinition getOrmTypeMappingDefinition(java.lang.String mappingKey)
          Return an OrmTypeMappingDefinition for the given type mapping key.
 org.eclipse.emf.ecore.EFactory getResourceNodeFactory()
          Return the factory for building xml resource nodes
 
Methods inherited from interface org.eclipse.jpt.core.ResourceDefinition
getResourceType
 

Method Detail

getResourceNodeFactory

org.eclipse.emf.ecore.EFactory getResourceNodeFactory()
Return the factory for building xml resource nodes


getContextNodeFactory

OrmXmlContextNodeFactory getContextNodeFactory()
Return the factory for building xml context nodes


getOrmTypeMappingDefinition

OrmTypeMappingDefinition getOrmTypeMappingDefinition(java.lang.String mappingKey)
Return an OrmTypeMappingDefinition for the given type mapping key. Throws an IllegalArgumentException if the mapping key is not supported.

Parameters:
mappingKey - The type mapping key
Returns:
The mapping provider for the given mapping key

getOrmAttributeMappingDefinition

OrmAttributeMappingDefinition getOrmAttributeMappingDefinition(java.lang.String mappingKey)
Return an OrmAttributeMappingDefinition for the given attribute mapping key. This must not return null. (@see NullOrmAttributeMappingDefinition) Throws an IllegalArgumentException if the mapping key is not supported.

Parameters:
mappingKey - The attribute mapping key
Returns:
The mapping definition for the given mapping key