sk.uniba.euromath.document.schema.impl.add
Class InsertableContentChecker
java.lang.Object
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
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 |
InsertableContentChecker
public InsertableContentChecker(SchemaImpl schema)
- Constructor.
- Parameters:
schema
- the schema instance.
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 elementparentExp
- the expression for parent elementip
- ip where to insertnode
- the node that shall be inserted.
- Returns:
true
if new document would be valid.
Copyright © 2003-2006 null. All Rights Reserved.