org.exolab.castor.xml.schema.reader

Class SchemaUnmarshaller.RemappedPrefixes

static class SchemaUnmarshaller.RemappedPrefixes extends Object

This class handles remapping of namespace prefixes for attributes of type QName. This is needed to work around a limitation in Castor's Schema Object Model, which does not support proper namespace scoping yet.
Field Summary
intdepth
static HashMapQNAME_TABLE
static StringRESOURCE_LOCATION
static StringRESOURCE_NAME
Method Summary
voidaddMapping(String oldPrefix, String newPrefix)
SchemaUnmarshaller.RemappedPrefixesgetParent()
StringgetPrefixMapping(String oldPrefix)
booleanisRemappedPrefix(String prefix)
SchemaUnmarshaller.RemappedPrefixesnewRemappedPrefixes()
StringremapQName(String value)

Field Detail

depth

int depth

QNAME_TABLE

public static final HashMap QNAME_TABLE

RESOURCE_LOCATION

public static final String RESOURCE_LOCATION

RESOURCE_NAME

public static final String RESOURCE_NAME

Method Detail

addMapping

public void addMapping(String oldPrefix, String newPrefix)

getParent

public SchemaUnmarshaller.RemappedPrefixes getParent()

getPrefixMapping

public String getPrefixMapping(String oldPrefix)

isRemappedPrefix

public boolean isRemappedPrefix(String prefix)

newRemappedPrefixes

public SchemaUnmarshaller.RemappedPrefixes newRemappedPrefixes()

remapQName

public String remapQName(String value)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com