本文整理汇总了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);
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}