org.exolab.castor.xml.schema.reader
Class SchemaUnmarshaller.RemappedPrefixes

java.lang.Object
  extended by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.RemappedPrefixes
Enclosing class:
SchemaUnmarshaller

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
(package private)  int depth
           
static java.util.HashMap QNAME_TABLE
           
static java.lang.String RESOURCE_LOCATION
           
static java.lang.String RESOURCE_NAME
           
 
Constructor Summary
SchemaUnmarshaller.RemappedPrefixes()
           
 
Method Summary
 void addMapping(java.lang.String oldPrefix, java.lang.String newPrefix)
           
 SchemaUnmarshaller.RemappedPrefixes getParent()
           
 java.lang.String getPrefixMapping(java.lang.String oldPrefix)
           
 boolean isRemappedPrefix(java.lang.String prefix)
           
 SchemaUnmarshaller.RemappedPrefixes newRemappedPrefixes()
           
 java.lang.String remapQName(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_NAME

public static final java.lang.String RESOURCE_NAME
See Also:
Constant Field Values

RESOURCE_LOCATION

public static final java.lang.String RESOURCE_LOCATION
See Also:
Constant Field Values

QNAME_TABLE

public static final java.util.HashMap QNAME_TABLE

depth

int depth
Constructor Detail

SchemaUnmarshaller.RemappedPrefixes

SchemaUnmarshaller.RemappedPrefixes()
Method Detail

isRemappedPrefix

public boolean isRemappedPrefix(java.lang.String prefix)

getParent

public SchemaUnmarshaller.RemappedPrefixes getParent()

getPrefixMapping

public java.lang.String getPrefixMapping(java.lang.String oldPrefix)

newRemappedPrefixes

public SchemaUnmarshaller.RemappedPrefixes newRemappedPrefixes()

addMapping

public void addMapping(java.lang.String oldPrefix,
                       java.lang.String newPrefix)

remapQName

public java.lang.String remapQName(java.lang.String value)


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