public class SchemaService extends java.lang.Object implements Service
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaService.SchemaName |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_CONF_EXT_SCHEMAS |
static java.lang.String |
BUNDLE_CONF_SCHEMAS |
static java.lang.String |
CONF_PREFIX |
static java.lang.String |
COORD_CONF_EXT_SCHEMAS |
static java.lang.String |
COORD_CONF_SCHEMAS |
static java.lang.String |
COORDINATOR_NAMESPACE_URI_1 |
static java.lang.String |
SLA_CONF_EXT_SCHEMAS |
static java.lang.String |
SLA_CONF_SCHEMAS |
static java.lang.String |
SLA_NAME_SPACE_URI
Deprecated.
|
static java.lang.String |
SLA_NAMESPACE_URI_2 |
static java.lang.String |
WF_CONF_EXT_SCHEMAS |
static java.lang.String |
WF_CONF_SCHEMAS |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
SchemaService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the service.
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
javax.xml.validation.Schema |
getSchema(SchemaService.SchemaName schemaName)
Return the schema for XML validation of application definitions.
|
static javax.xml.validation.Validator |
getValidator(javax.xml.validation.Schema schema)
Returns validator for schema
|
javax.xml.validation.Validator |
getValidator(SchemaService.SchemaName schemaName)
Returns validator for schema
|
void |
init(Services services)
Initialize the service.
|
public static final java.lang.String CONF_PREFIX
public static final java.lang.String WF_CONF_SCHEMAS
public static final java.lang.String WF_CONF_EXT_SCHEMAS
public static final java.lang.String COORD_CONF_SCHEMAS
public static final java.lang.String COORD_CONF_EXT_SCHEMAS
public static final java.lang.String BUNDLE_CONF_SCHEMAS
public static final java.lang.String BUNDLE_CONF_EXT_SCHEMAS
public static final java.lang.String SLA_CONF_SCHEMAS
public static final java.lang.String SLA_CONF_EXT_SCHEMAS
@Deprecated public static final java.lang.String SLA_NAME_SPACE_URI
public static final java.lang.String SLA_NAMESPACE_URI_2
public static final java.lang.String COORDINATOR_NAMESPACE_URI_1
public SchemaService()
public void init(Services services) throws ServiceException
init in interface Serviceservices - services instance.ServiceException - thrown if the service could not be initialized.public java.lang.Class<? extends Service> getInterface()
getInterface in interface ServiceSchemaService.public javax.xml.validation.Schema getSchema(SchemaService.SchemaName schemaName)
schemaName: - Name of schema definition (i.e.
WORKFLOW/COORDINATOR/BUNDLE)public javax.xml.validation.Validator getValidator(SchemaService.SchemaName schemaName) throws org.xml.sax.SAXException
schemaName - org.xml.sax.SAXExceptionpublic static javax.xml.validation.Validator getValidator(javax.xml.validation.Schema schema) throws org.xml.sax.SAXException
schema - org.xml.sax.SAXExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.