public class Descriptor extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Descriptor.Namespace |
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
classloader |
static String |
DESCRIPTOR_BINDING_CONFIG_LOCATION_POSTFIX |
static String |
DESCRIPTOR_NAMESPACE_POSTFIX |
static String |
DESCRIPTOR_ORDER_POSTFIX |
static String |
DESCRIPTOR_SCHEMA_LOCATION_POSTFIX |
protected Schema |
schema |
protected org.smooks.Smooks |
smooks |
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) |
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
protected org.smooks.Smooks smooks
protected Schema schema
protected ClassLoader classloader
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 org.smooks.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
protected void initialize(List<Properties> descriptors, EntityResolver schemaResolver, EntityResolver bindingResolver) throws SAXException, IOException
SAXException
IOException
protected Schema newSchemaInstance(List<Properties> descriptors, EntityResolver schemaResolver) throws SAXException, IOException
SAXException
IOException
protected List<Source> getSchemas(List<Properties> descriptors, EntityResolver schemaResolver) throws SAXException, IOException
SAXException
IOException
protected org.smooks.Smooks newSmooksInstance(List<Properties> descriptors, EntityResolver bindingResolver) throws SAXException, IOException
SAXException
IOException
protected static Set<Descriptor.Namespace> resolveNamespaces(List<Properties> descriptors)
protected static List<Descriptor.Namespace> extractNamespaceDecls(Properties descriptor, List<Descriptor.Namespace> namespaces)
public static String getNamespaceId(String namespaceURI, List<Properties> descriptors)
protected static String getNamespaceId(String namespaceURI, Properties descriptor)
public static String getSchemaLocation(String namespaceId, List<Properties> descriptors)
public static String getBindingConfigLocation(String namespaceId, List<Properties> descriptors)
protected static String getDescriptorValue(String name, List<Properties> descriptors)
Copyright © 2024. All rights reserved.