com.oxygenxml.validate.nvdl
Class Trigger

java.lang.Object
  extended by com.oxygenxml.validate.nvdl.Trigger

public class Trigger
extends Object

Strores trigger information and checks trigger activation.

Author:
george

Field Summary
(package private)  List elementNames
          List with local names.
(package private)  String errors
          Stores the invalid local names if any, otherwise null.
(package private)  String namespace
          The namespace name for the local element names.
 
Constructor Summary
Trigger(String namespace, String nameList)
          Creates a trigger to store the elements that break sections for a given namespace.
 
Method Summary
(package private)  boolean trigger(String ns, String name, String parent)
          Checks trigger activation given an element name and its parent, both from the same namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

String namespace
The namespace name for the local element names.


elementNames

List elementNames
List with local names.


errors

String errors
Stores the invalid local names if any, otherwise null.

Constructor Detail

Trigger

Trigger(String namespace,
        String nameList)
Creates a trigger to store the elements that break sections for a given namespace.

Parameters:
namespace - The namespace
nameList - A space separated list of local names.
Method Detail

trigger

boolean trigger(String ns,
                String name,
                String parent)
Checks trigger activation given an element name and its parent, both from the same namespace.

Parameters:
ns - The namespace for the elements.
name - The current element local name.
parent - The parent element local name.
Returns:
true if we should brake the section.