* @throws IOException if error opening the .schema file
*
*/
public void read() throws IOException, ParseException
{
SchemaParser parser = null;
parser = SchemaParser.parserFromURL( url );
if ( parser == null )
throw new FileNotFoundException( "Schema model object: no path or url specified !" ); //$NON-NLS-1$
parser.parse();
ObjectClassLiteral[] objectClasses = parser.getObjectClasses();
AttributeTypeLiteral[] attributeTypes = parser.getAttributeTypes();
for ( AttributeTypeLiteral literal : attributeTypes )
{
AttributeType AT = new AttributeType( literal, this );
AT.addListener( this );