Exemplo n.º 1
0
 internal FIVocabulary(Uri uri)
 {
     // create restricted encoding and alphabet managers and propogate into child vocabularies
     _encodingAlgorithmManager  = new FIEncodingAlgorithmManager();
     _restrictedAlphabetManager = new FIRestrictedAlphabetManager();
     _reader = new FIReaderVocabulary(_encodingAlgorithmManager, _restrictedAlphabetManager);
     _writer = new FIWriterVocabulary(uri, _encodingAlgorithmManager, _restrictedAlphabetManager);
 }
Exemplo n.º 2
0
        internal FIReaderVocabulary(FIReaderVocabulary vocab)
        {
            // copy constructor
            _encodingAlgorithmManager  = vocab._encodingAlgorithmManager;
            _restrictedAlphabetManager = vocab._restrictedAlphabetManager;

            _attributeNames         = new List <QualifiedName>(vocab._attributeNames);
            _attributeValues        = new List <string>(vocab._attributeValues);
            _elementNames           = new List <QualifiedName>(vocab._elementNames);
            _contentCharacterChunks = new List <string>(vocab._contentCharacterChunks);
            _localNames             = new List <string>(vocab._localNames);
            _namespaceNames         = new List <string>(vocab._namespaceNames);
            _prefixNames            = new List <string>(vocab._prefixNames);
            _otherNCNames           = new List <string>(vocab._otherNCNames);
            _otherStrings           = new List <string>(vocab._otherStrings);
        }