ilog.cpl.storage
Class IlpClassManagerLoader

java.lang.Object
  extended by ilog.cpl.storage.IlpClassManagerLoader

public class IlpClassManagerLoader
extends Object

This class can load an XML document into an IlpMutableClassManager. This class has its own logger.

Since:
JTGO 3.0
See Also:
IlpMutableClassManager

Constructor Summary
IlpClassManagerLoader(String uri, IlpContext c)
          Creates a class manager loader to load a model from an XML document.
IlpClassManagerLoader(String uri, IlpContext c, boolean validate)
          Creates a class manager loader to load a model from an XML document.
IlpClassManagerLoader(String uri, IlpMutableClassManager classManager, IlpTypeConverter typeConverter, IlpURLAccessService urlAccessService)
          Creates a class manager loader to load a model from an XML document.
IlpClassManagerLoader(String uri, IlpMutableClassManager classManager, IlpTypeConverter typeConverter, IlpURLAccessService urlAccessService, boolean validate)
          Creates a class manager loader to load a model from an XML document.
 
Method Summary
 URL getURL()
          Returns the URL of the XML document that contains business class information.
 XMLReader getXMLReader()
          Returns the XMLReader.
 void parse()
          Parses an XML document containing a model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpClassManagerLoader

public IlpClassManagerLoader(String uri,
                             IlpMutableClassManager classManager,
                             IlpTypeConverter typeConverter,
                             IlpURLAccessService urlAccessService)
Creates a class manager loader to load a model from an XML document.

Parameters:
uri - The URI. It does not have to be fully resolved by the application before it is passed.
classManager - The class manager.
typeConverter - The type converter used to load the XML document.
urlAccessService - The URL access service used to resolve the URI.

IlpClassManagerLoader

public IlpClassManagerLoader(String uri,
                             IlpMutableClassManager classManager,
                             IlpTypeConverter typeConverter,
                             IlpURLAccessService urlAccessService,
                             boolean validate)
Creates a class manager loader to load a model from an XML document.

Parameters:
uri - The URI. It does not have to be fully resolved by the application before it is passed.
classManager - The class manager.
typeConverter - The type converter used to load the XML document.
urlAccessService - The URL access service used to resolve the URI.
validate - Validates or not the XML document
Since:
JViews 8.0

IlpClassManagerLoader

public IlpClassManagerLoader(String uri,
                             IlpContext c)
Creates a class manager loader to load a model from an XML document.

Parameters:
uri - The URI. It does not have to be fully resolved by the application before it is passed.
c - Application context which contains information about services that are needed to load the new model.
Since:
JTGO 4.0

IlpClassManagerLoader

public IlpClassManagerLoader(String uri,
                             IlpContext c,
                             boolean validate)
Creates a class manager loader to load a model from an XML document.

Parameters:
uri - The URI. It does not have to be fully resolved by the application before it is passed.
c - Application context which contains information about services that are needed to load the new model.
validate - Validates or not the XML document.
Since:
JViews 8.0
Method Detail

getURL

public URL getURL()
Returns the URL of the XML document that contains business class information.

Since:
JTGO 3.0

getXMLReader

public XMLReader getXMLReader()
                       throws SAXException,
                              ParserConfigurationException
Returns the XMLReader.

Throws:
SAXException
ParserConfigurationException

parse

public void parse()
           throws IOException,
                  SAXException
Parses an XML document containing a model.

Throws:
SAXException - which is any SAX exception, possibly wrapping another exception.
IOException - which is an IO exception from the parser, possibly from a byte stream or character stream supplied by the application.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.