sk.uniba.euromath.document.schema.impl.add
Class InsertableContentChecker

java.lang.Object
  extended by sk.uniba.euromath.document.schema.impl.add.InsertableContentChecker

public final class InsertableContentChecker
extends Object

Serves for querying of positions of insertable places for nodes.

Author:
Martin Vysny

Constructor Summary
InsertableContentChecker(SchemaImpl schema)
          Constructor.
 
Method Summary
 boolean isInsertable(Element parent, com.sun.msv.grammar.ElementExp parentExp, sk.baka.ikslibs.ptr.DOMPoint ip, Node node)
          Checks if given is insertable at specified position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertableContentChecker

public InsertableContentChecker(SchemaImpl schema)
Constructor.

Parameters:
schema - the schema instance.
Method Detail

isInsertable

public boolean isInsertable(Element parent,
                            com.sun.msv.grammar.ElementExp parentExp,
                            sk.baka.ikslibs.ptr.DOMPoint ip,
                            Node node)
Checks if given is insertable at specified position. Entity reference and document fragment is automatically expanded.

Parameters:
parent - the parent element
parentExp - the expression for parent element
ip - ip where to insert
node - the node that shall be inserted.
Returns:
true if new document would be valid.


Copyright © 2003-2006 null. All Rights Reserved.