当前位置: 首页>>代码示例>>Java>>正文


Java PackageAliasingMapper类代码示例

本文整理汇总了Java中com.thoughtworks.xstream.mapper.PackageAliasingMapper的典型用法代码示例。如果您正苦于以下问题:Java PackageAliasingMapper类的具体用法?Java PackageAliasingMapper怎么用?Java PackageAliasingMapper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PackageAliasingMapper类属于com.thoughtworks.xstream.mapper包,在下文中一共展示了PackageAliasingMapper类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupMappers

import com.thoughtworks.xstream.mapper.PackageAliasingMapper; //导入依赖的package包/类
private void setupMappers() {
    packageAliasingMapper = mapper.lookupMapperOfType(PackageAliasingMapper.class);
    classAliasingMapper = mapper.lookupMapperOfType(ClassAliasingMapper.class);
    fieldAliasingMapper = mapper.lookupMapperOfType(FieldAliasingMapper.class);
    attributeMapper = mapper.lookupMapperOfType(AttributeMapper.class);
    attributeAliasingMapper = mapper.lookupMapperOfType(AttributeAliasingMapper.class);
    systemAttributeAliasingMapper = mapper.lookupMapperOfType(SystemAttributeAliasingMapper.class);
    implicitCollectionMapper = mapper.lookupMapperOfType(ImplicitCollectionMapper.class);
    defaultImplementationsMapper = mapper.lookupMapperOfType(DefaultImplementationsMapper.class);
    immutableTypesMapper = mapper.lookupMapperOfType(ImmutableTypesMapper.class);
    localConversionMapper = mapper.lookupMapperOfType(LocalConversionMapper.class);
    securityMapper = mapper.lookupMapperOfType(SecurityMapper.class);
    annotationMapper = mapper.lookupMapperOfType(AnnotationMapper.class);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:XStream.java

示例2: setupMappers

import com.thoughtworks.xstream.mapper.PackageAliasingMapper; //导入依赖的package包/类
private void setupMappers() {
    packageAliasingMapper = mapper.lookupMapperOfType(PackageAliasingMapper.class);
    classAliasingMapper = mapper.lookupMapperOfType(ClassAliasingMapper.class);
    elementIgnoringMapper = mapper.lookupMapperOfType(ElementIgnoringMapper.class);
    fieldAliasingMapper = mapper.lookupMapperOfType(FieldAliasingMapper.class);
    attributeMapper = mapper.lookupMapperOfType(AttributeMapper.class);
    attributeAliasingMapper = mapper.lookupMapperOfType(AttributeAliasingMapper.class);
    systemAttributeAliasingMapper = mapper.lookupMapperOfType(SystemAttributeAliasingMapper.class);
    implicitCollectionMapper = mapper.lookupMapperOfType(ImplicitCollectionMapper.class);
    defaultImplementationsMapper = mapper.lookupMapperOfType(DefaultImplementationsMapper.class);
    immutableTypesMapper = mapper.lookupMapperOfType(ImmutableTypesMapper.class);
    localConversionMapper = mapper.lookupMapperOfType(LocalConversionMapper.class);
    securityMapper = mapper.lookupMapperOfType(SecurityMapper.class);
    annotationMapper = mapper.lookupMapperOfType(AnnotationMapper.class);
}
 
开发者ID:x-stream,项目名称:xstream,代码行数:16,代码来源:XStream.java

示例3: setupMappers

import com.thoughtworks.xstream.mapper.PackageAliasingMapper; //导入依赖的package包/类
private void setupMappers()
{
  this.packageAliasingMapper = ((PackageAliasingMapper)this.mapper.lookupMapperOfType(PackageAliasingMapper.class));
  this.classAliasingMapper = ((ClassAliasingMapper)this.mapper.lookupMapperOfType(ClassAliasingMapper.class));
  this.fieldAliasingMapper = ((FieldAliasingMapper)this.mapper.lookupMapperOfType(FieldAliasingMapper.class));
  this.attributeMapper = ((AttributeMapper)this.mapper.lookupMapperOfType(AttributeMapper.class));
  this.attributeAliasingMapper = ((AttributeAliasingMapper)this.mapper.lookupMapperOfType(AttributeAliasingMapper.class));
  this.systemAttributeAliasingMapper = ((SystemAttributeAliasingMapper)this.mapper.lookupMapperOfType(SystemAttributeAliasingMapper.class));
  this.implicitCollectionMapper = ((ImplicitCollectionMapper)this.mapper.lookupMapperOfType(ImplicitCollectionMapper.class));
  this.defaultImplementationsMapper = ((DefaultImplementationsMapper)this.mapper.lookupMapperOfType(DefaultImplementationsMapper.class));
  this.immutableTypesMapper = ((ImmutableTypesMapper)this.mapper.lookupMapperOfType(ImmutableTypesMapper.class));
  this.localConversionMapper = ((LocalConversionMapper)this.mapper.lookupMapperOfType(LocalConversionMapper.class));
  this.securityMapper = ((SecurityMapper)this.mapper.lookupMapperOfType(SecurityMapper.class));
  this.annotationConfiguration = ((AnnotationConfiguration)this.mapper.lookupMapperOfType(AnnotationConfiguration.class));
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:16,代码来源:XStream.java

示例4: aliasPackage

import com.thoughtworks.xstream.mapper.PackageAliasingMapper; //导入依赖的package包/类
public void aliasPackage(String paramString1, String paramString2)
{
  if (this.packageAliasingMapper == null)
    throw new InitializationException("No " + PackageAliasingMapper.class.getName() + " available");
  this.packageAliasingMapper.addPackageAlias(paramString1, paramString2);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:7,代码来源:XStream.java

示例5: aliasPackage

import com.thoughtworks.xstream.mapper.PackageAliasingMapper; //导入依赖的package包/类
/**
 * Alias a package to a shorter name to be used in XML elements.
 * 
 * @param name Short name
 * @param pkgName package to be aliased
 * @throws InitializationException if no {@link DefaultImplementationsMapper} or no {@link PackageAliasingMapper} is
 *             available
 * @since 1.3.1
 */
public void aliasPackage(final String name, final String pkgName) {
    if (packageAliasingMapper == null) {
        throw new InitializationException("No " + PackageAliasingMapper.class.getName() + " available");
    }
    packageAliasingMapper.addPackageAlias(name, pkgName);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:XStream.java

示例6: aliasPackage

import com.thoughtworks.xstream.mapper.PackageAliasingMapper; //导入依赖的package包/类
/**
 * Alias a package to a shorter name to be used in XML elements.
 *
 * @param name Short name
 * @param pkgName package to be aliased
 * @throws InitializationException if no {@link DefaultImplementationsMapper} or no {@link PackageAliasingMapper} is
 *             available
 * @since 1.3.1
 */
public void aliasPackage(final String name, final String pkgName) {
    if (packageAliasingMapper == null) {
        throw new InitializationException("No " + PackageAliasingMapper.class.getName() + " available");
    }
    packageAliasingMapper.addPackageAlias(name, pkgName);
}
 
开发者ID:x-stream,项目名称:xstream,代码行数:16,代码来源:XStream.java


注:本文中的com.thoughtworks.xstream.mapper.PackageAliasingMapper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。