Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tonbeller.jpivot.core
Class ModelFactory

    java.lang.Object
      com.tonbeller.jpivot.core.ModelFactory

    public class ModelFactory

extends java.lang.Object

creates a model instance from an xml description. Example

     <?xml version="1.0" encoding="utf-8"?>
     <model id="m1" class="com.tonbeller.jpivot.core.ModelSupport">
       <extension id="f1" class="com.tonbeller.jpivot.core.ExtensionSupport"/>
       <extension id="f2" class="com.tonbeller.jpivot.core.ExtensionSupport"/>
     </model>

Author:
  av

Nested Class Summary
`static class` | `ModelFactory.ModelHolder` not for external use.

Method Summary
`static Model` | `instance(java.net.URL url)` creates a model from an xml configuration file

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### instance

    public static Model instance(java.net.URL url)
                          throws org.xml.sax.SAXException,
                                 java.io.IOException

  creates a model from an xml configuration file

  Parameters:
    `url` - url of model configuration file
  Returns:
    Model
  Throws:
    `org.xml.sax.SAXException`
    `java.io.IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD