org.milyn.javabean.dynamic
Class Descriptor

java.lang.Object
  extended by org.milyn.javabean.dynamic.Descriptor

public class Descriptor
extends Object

Model Descriptor.

Author:
tom.fennelly@gmail.com

Field Summary
static String DESCRIPTOR_BINDING_CONFIG_LOCATION_POSTFIX
           
static String DESCRIPTOR_NAMESPACE_POSTFIX
           
static String DESCRIPTOR_ORDER_POSTFIX
           
static String DESCRIPTOR_SCHEMA_LOCATION_POSTFIX
           
 
Constructor Summary
Descriptor(List<Properties> descriptors)
           
Descriptor(List<Properties> descriptors, EntityResolver schemaResolver, EntityResolver bindingResolver, ClassLoader classloader)
           
Descriptor(String descriptorPath)
           
Descriptor(String descriptorPath, EntityResolver schemaResolver, EntityResolver bindingResolver, ClassLoader classloader)
           
 
Method Summary
 Map<Class<?>,Map<String,BeanWriter>> getBeanWriters()
           
static String getBindingConfigLocation(String namespaceId, List<Properties> descriptors)
           
static String getNamespaceId(String namespaceURI, List<Properties> descriptors)
           
 Schema getSchema()
           
static String getSchemaLocation(String namespaceId, List<Properties> descriptors)
           
 org.milyn.Smooks getSmooks()
           
static Properties loadDescriptor(InputStream descriptorStream)
           
static List<Properties> loadDescriptors(String descriptorPath, ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR_NAMESPACE_POSTFIX

public static final String DESCRIPTOR_NAMESPACE_POSTFIX
See Also:
Constant Field Values

DESCRIPTOR_SCHEMA_LOCATION_POSTFIX

public static final String DESCRIPTOR_SCHEMA_LOCATION_POSTFIX
See Also:
Constant Field Values

DESCRIPTOR_BINDING_CONFIG_LOCATION_POSTFIX

public static final String DESCRIPTOR_BINDING_CONFIG_LOCATION_POSTFIX
See Also:
Constant Field Values

DESCRIPTOR_ORDER_POSTFIX

public static final String DESCRIPTOR_ORDER_POSTFIX
See Also:
Constant Field Values
Constructor Detail

Descriptor

public Descriptor(List<Properties> descriptors)
           throws SAXException,
                  IOException
Throws:
SAXException
IOException

Descriptor

public Descriptor(String descriptorPath)
           throws SAXException,
                  IOException
Throws:
SAXException
IOException

Descriptor

public Descriptor(String descriptorPath,
                  EntityResolver schemaResolver,
                  EntityResolver bindingResolver,
                  ClassLoader classloader)
           throws SAXException,
                  IOException
Throws:
SAXException
IOException

Descriptor

public Descriptor(List<Properties> descriptors,
                  EntityResolver schemaResolver,
                  EntityResolver bindingResolver,
                  ClassLoader classloader)
           throws SAXException,
                  IOException
Throws:
SAXException
IOException
Method Detail

getSmooks

public org.milyn.Smooks getSmooks()

getSchema

public Schema getSchema()

getBeanWriters

public Map<Class<?>,Map<String,BeanWriter>> getBeanWriters()

loadDescriptors

public static List<Properties> loadDescriptors(String descriptorPath,
                                               ClassLoader classLoader)

loadDescriptor

public static Properties loadDescriptor(InputStream descriptorStream)
                                 throws IOException
Throws:
IOException

getNamespaceId

public static String getNamespaceId(String namespaceURI,
                                    List<Properties> descriptors)

getSchemaLocation

public static String getSchemaLocation(String namespaceId,
                                       List<Properties> descriptors)

getBindingConfigLocation

public static String getBindingConfigLocation(String namespaceId,
                                              List<Properties> descriptors)


Copyright © 2018. All rights reserved.