sk.uniba.euromath.document.schema
Class SchematicUtils

java.lang.Object
  extended by sk.uniba.euromath.document.schema.SchematicUtils

public final class SchematicUtils
extends Object

Schematic initializer and helper.

Author:
Martin Vysny

Field Summary
static IQNameFilter METAATRIBUTE_FILTER
          Filter that filters out all XML-reserved qnames as well as gene:id attribute.
static String SCHEMA_FACTORY_EXTENSION_POINT_ID
          ID of extension point for schema factory instances.
 
Method Summary
static IInputValidator createTextValidator(DocumentSchema schema, DOMInterval cut)
          Creates text validator.
static SchemaPool getPool()
          Retrieves schema pool instance.
static void initializeSchematic()
          Initializes the schematic library by registering all known schema factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_FACTORY_EXTENSION_POINT_ID

public static final String SCHEMA_FACTORY_EXTENSION_POINT_ID
ID of extension point for schema factory instances.

See Also:
Constant Field Values

METAATRIBUTE_FILTER

public static final IQNameFilter METAATRIBUTE_FILTER
Filter that filters out all XML-reserved qnames as well as gene:id attribute.

Method Detail

getPool

public static SchemaPool getPool()
Retrieves schema pool instance.

Returns:
pool instance, never null.

initializeSchematic

public static void initializeSchematic()
Initializes the schematic library by registering all known schema factories.


createTextValidator

public static IInputValidator createTextValidator(DocumentSchema schema,
                                                  DOMInterval cut)
Creates text validator. The validator will detect the text rule and acts as if text between two pointers was cut out and replaced by string given to the validator.

Parameters:
schema - the document schema instance.
cut - the interval denoting text being deleted or replaced. Must not be null. Caller must ensure that there are no elements covered by this interval. between the two pointers.
Returns:
validator that validates string getTextTo(cutFrom) + given_string + getTextFrom(cutTo). Never null.


Copyright © 2003-2006 null. All Rights Reserved.