public class Descriptor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTOR_BINDING_CONFIG_LOCATION_POSTFIX |
static String |
DESCRIPTOR_NAMESPACE_POSTFIX |
static String |
DESCRIPTOR_ORDER_POSTFIX |
static String |
DESCRIPTOR_SCHEMA_LOCATION_POSTFIX |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
Smooks |
getSmooks() |
static Properties |
loadDescriptor(InputStream descriptorStream) |
static List<Properties> |
loadDescriptors(String descriptorPath,
ClassLoader classLoader) |
public static final String DESCRIPTOR_NAMESPACE_POSTFIX
public static final String DESCRIPTOR_SCHEMA_LOCATION_POSTFIX
public static final String DESCRIPTOR_BINDING_CONFIG_LOCATION_POSTFIX
public static final String DESCRIPTOR_ORDER_POSTFIX
public Descriptor(List<Properties> descriptors) throws SAXException, IOException
SAXException
IOException
public Descriptor(String descriptorPath) throws SAXException, IOException
SAXException
IOException
public Descriptor(String descriptorPath, EntityResolver schemaResolver, EntityResolver bindingResolver, ClassLoader classloader) throws SAXException, IOException
SAXException
IOException
public Descriptor(List<Properties> descriptors, EntityResolver schemaResolver, EntityResolver bindingResolver, ClassLoader classloader) throws SAXException, IOException
SAXException
IOException
public Smooks getSmooks()
public Schema getSchema()
public Map<Class<?>,Map<String,BeanWriter>> getBeanWriters()
public static List<Properties> loadDescriptors(String descriptorPath, ClassLoader classLoader)
public static Properties loadDescriptor(InputStream descriptorStream) throws IOException
IOException
public static String getNamespaceId(String namespaceURI, List<Properties> descriptors)
public static String getSchemaLocation(String namespaceId, List<Properties> descriptors)
public static String getBindingConfigLocation(String namespaceId, List<Properties> descriptors)
Copyright © 2020. All rights reserved.