A Dynamic Schema Interface

In addition to providing classes to parse from and write to topic maps, the NPCL API also provides an implementation of the ISchema interface that is directly connected to the database. All type, constraint and property retrievals are implemented as database queries and all modifications made to types or constraints are committed to the database when they are made. The class that provides this implementation is the class NetworkedPlanet.Npcl.TopicMapSchema. The class is created by passing in the ITopicMap instance that it will work against as the single constructor parameter. This class implements the ISchema interface and can be used in the same way as an ISchema instance returned by the TopicMapSchemaReader or XmlSchemaReader classes.

Note

This implementation is designed for developers who want to create their own GUI tools for manipulating schemas stored in a TMCore database. You should NOT use this implementation for most applications - the TopicMapSchemaReader is optimised to read a schema from a database into memory in large batches and is usually more efficient than the TopicMapSchema implementation for applications that need to lookup schema information and/or traverse the schema.