The file can optionally include in its first row the encoding scheme to use. For exmaple, the line "8859_1,," specifies 8859_1 encoding is to be used. For such cases, this class should be instantiated with the encoding parameter being null.
Most files also contain in its first line (if no encoding is specified) or 2nd line (if encoding is specified) header information (such as the names of the columns). This header will not be read. However, some files does not contain the header. For these files, the class should be instantiated with the hasHeader parameter being false, otherwise, the first key-value pair will be skipped.
Comments are indicated by a leading '#' character. Note that the keys (that is the first column of each row) must not begin with '#'. Currently even wrapping quotes around '#' will be treated as comments. Any comments if any, must appear after the encoding line (if any) and the header (if any).
Note that this class is not synchronized. It is expected that the mapping be first generated when the mapping file is read. Only after that should the key-value pairs (or the entire map) be accessed.
@aribaapi documented{@code Mapping} implements {@code Transformation} and perform transformation by simple invocation of{@link ApplyIndexMapping#applyIndexMappingAutomatically(cc.redberry.core.tensor.Tensor,Mapping)} ))} with{@code this} as a second argument.
The underlying data structure is a simple pair of sorted arrays {@code fromNames} and {@code toData}, such that i-th mapping entry is {@code fromNames[i] -> toData[i]}. The array {@code fromNames} contains from indices names. The array {@code toData}contains names of to indices where the first bit indicates whether the state of from index should be inverted.
@author Dmitry Bolotin @author Stanislav Poslavsky @since 1.1.5To be precise, this is a mapping between two Java classes and an XML element declaration. There's one Java class/interface that represents the element, and there's another Java class/interface that represents the type of the element. The former is called "element representation" and the latter is called "type representation".
The {@link Mapping} interface provides operation that lets the callerconvert an instance of the element representation to that of the type representation or vice versa. @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
{@link Mapping}对象是有序的,对给定的一个地址,排序在前的 {@link Mapping} 匹配成功后,整个匹配过程将中止。
{@link Mapping}对象的排序比较只和定义该映射的地址有关,和所绑定的 {@link MappingNode} 无关。不同的{@link Mapping}实现都支持之间的互相比较。 @author 王志亮 [qieqie.wang@gmail.com]
An Mapping is a {@link List} of {@link MappingField}s that define the translation of common ontological queries into queries against a local site's DBMS
.Configuration element describing the mapping between a view identifier URL pattern to a corresponding processor class.
Mapping
class conveys the mapping configuration used by the {@link org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl}.
Mapping
class conveys the mapping configuration used by the {@link org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl}.
Mapping
class defines the mapping of a service's name and optional service information to a user name.
This interface represents the most general possible mapping. Depending on the {@link MappingType} of a particular mapping, some of the operations maynot be applicable. If you call the method, you will receive a runtime error. For instance:
Multiple mapping files can be loaded with the same Mapping object. When loading master mapping files that include other mapping files it might be convenient to use {@link #setBaseURL} or {@link #setEntityResolver}.
If the desired class loader is different than the one used by Castor (e.g. if Castor is installed as a Java extension), the Mapping object can be constructed with the proper class loader.
The following example loads two mapping files:
Mapping mapping; mapping = new Mapping( getClass().getClassLoader() ); mapping.loadMapping( "mapping.xml" ); mapping.loadMapping( url );@author Assaf Arkin @author Ralf Joachim @version $Revision: 7951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|