|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oxygenxml.validate.nvdl.SchemaReceiverImpl
class SchemaReceiverImpl
Schema receiver implementation for NVDL schemas.
Field Summary | |
---|---|
private boolean |
attributesSchema
Flag indicating if we need to check only attributes, that means the root element is just a placeholder for the attributes. |
private SchemaReader |
autoSchemaReader
The schema reader capable of parsing the input schema file. |
private static String |
NVDL_SCHEMA
Relax NG schema for nvdl schemas. |
private Schema |
nvdlSchema
Schema object created by this schema receiver. |
private PropertyMap |
properties
Properties. |
private static String |
RNC_MEDIA_TYPE
The type used for specifying RNC schemas. |
private static PropertyId[] |
subSchemaProperties
Required properties. |
Constructor Summary | |
---|---|
SchemaReceiverImpl(PropertyMap properties)
Creates a schema receiver for NVDL schemas. |
Method Summary | |
---|---|
(package private) Schema |
createChildSchema(InputSource inputSource,
String schemaType,
PropertyMap options,
boolean isAttributesSchema)
Creates a child schema. |
(package private) Schema |
getNvdlSchema()
|
(package private) Option |
getOption(String uri)
Get an option for the given URI. |
(package private) PropertyMap |
getProperties()
Get the properties. |
private static URL |
getResource(String resourceName)
Get a resource using this class class loader. |
SchemaFuture |
installHandlers(XMLReader xr)
|
private static boolean |
isRnc(String schemaType)
Checks is a schema type is RNC. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String NVDL_SCHEMA
private static final String RNC_MEDIA_TYPE
private final PropertyMap properties
private final boolean attributesSchema
private final SchemaReader autoSchemaReader
private Schema nvdlSchema
private static final PropertyId[] subSchemaProperties
Constructor Detail |
---|
public SchemaReceiverImpl(PropertyMap properties)
properties
- Properties.Method Detail |
---|
public SchemaFuture installHandlers(XMLReader xr)
installHandlers
in interface SchemaReceiver
Schema getNvdlSchema() throws IOException, IncorrectSchemaException, SAXException
IOException
IncorrectSchemaException
SAXException
private static URL getResource(String resourceName)
resourceName
- the resource.
PropertyMap getProperties()
Schema createChildSchema(InputSource inputSource, String schemaType, PropertyMap options, boolean isAttributesSchema) throws IOException, IncorrectSchemaException, SAXException
inputSource
- The input source for the schema.schemaType
- The schema type.options
- Options specified for this schema in the NVDL script.isAttributesSchema
- Flag indicating if the schema should be modified
to check attributes only.
IOException
- In case of IO problems.
IncorrectSchemaException
- In case of invalid schema.
SAXException
- In case if XML problems while creating the schema.Option getOption(String uri)
uri
- The URI for an option.
private static boolean isRnc(String schemaType)
schemaType
- The schema type specification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |