org.exolab.castor.xml.schema.reader

Class SchemaUnmarshaller.RemappedPrefixes

Enclosing Class:
SchemaUnmarshaller

(package private) static class SchemaUnmarshaller.RemappedPrefixes
extends java.lang.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

static HashMap
QNAME_TABLE
static String
RESOURCE_LOCATION
static String
RESOURCE_NAME
(package private) int
depth

Method Summary

void
addMapping(String oldPrefix, String newPrefix)
SchemaUnmarshaller.RemappedPrefixes
getParent()
String
getPrefixMapping(String oldPrefix)
boolean
isRemappedPrefix(String prefix)
SchemaUnmarshaller.RemappedPrefixes
newRemappedPrefixes()
String
remapQName(String value)

Field Details

QNAME_TABLE

public static final HashMap QNAME_TABLE

RESOURCE_LOCATION

public static final String RESOURCE_LOCATION

RESOURCE_NAME

public static final String RESOURCE_NAME

depth

(package private)  int depth

Method Details

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-2008. All rights reserved http://www.intalio.com