org.apache.sling.jcr.ocm.impl
Class ClassDescriptorReader

java.lang.Object
  extended by org.apache.sling.jcr.ocm.impl.ClassDescriptorReader

public class ClassDescriptorReader
extends Object

The ClassDescriptorReader TODO Use: 1. Instantiatate 2. Multiply call parse(InputStream) 3. Call getMappingDescriptor() (more than once always returns the same result) 4. Call reset() and go back to step 2


Constructor Summary
ClassDescriptorReader()
           
 
Method Summary
 org.apache.jackrabbit.ocm.mapper.model.MappingDescriptor getMappingDescriptor()
           
 void parse(InputStream ins)
           
 void parse(List<URL> urlList)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDescriptorReader

public ClassDescriptorReader()
Method Detail

reset

public void reset()

getMappingDescriptor

public org.apache.jackrabbit.ocm.mapper.model.MappingDescriptor getMappingDescriptor()
                                                                              throws org.xmlpull.v1.XmlPullParserException
Returns:
The mapping descriptor.
Throws:
IllegalStateException - If no descriptors are available
org.xmlpull.v1.XmlPullParserException - If an error occurrs validating the descriptors

parse

public void parse(List<URL> urlList)
           throws IOException,
                  org.xmlpull.v1.XmlPullParserException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException

parse

public void parse(InputStream ins)
           throws IOException,
                  org.xmlpull.v1.XmlPullParserException
Parameters:
ins -
Throws:
IOException
org.xmlpull.v1.XmlPullParserException
IllegalStateException - If the getMappingDescriptor() method has been called but not the reset() method before calling this method.


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.