de.interactive_instruments.ShapeChange.Target.XmlSchema
Class SchematronConstraintNode.MessageComment

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode
      extended by de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode.MessageComment
Enclosing class:
SchematronConstraintNode

public static class SchematronConstraintNode.MessageComment
extends SchematronConstraintNode

This represents an error message comment.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode
SchematronConstraintNode.AllInstances, SchematronConstraintNode.Arithmetic, SchematronConstraintNode.Attribute, SchematronConstraintNode.BindingContext, SchematronConstraintNode.Cast, SchematronConstraintNode.ChangeCase, SchematronConstraintNode.Comparison, SchematronConstraintNode.Concatenate, SchematronConstraintNode.Empty, SchematronConstraintNode.Error, SchematronConstraintNode.Exists, SchematronConstraintNode.IfThenElse, SchematronConstraintNode.KindOf, SchematronConstraintNode.Let, SchematronConstraintNode.Literal, SchematronConstraintNode.Logic, SchematronConstraintNode.Matches, SchematronConstraintNode.MessageComment, SchematronConstraintNode.Select, SchematronConstraintNode.Size, SchematronConstraintNode.Substring, SchematronConstraintNode.Unique, SchematronConstraintNode.Variable, SchematronConstraintNode.XpathFragment, SchematronConstraintNode.XpathType
 
Field Summary
protected  String name
           
 
Fields inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode
children, negated, parent, schemaObject
 
Constructor Summary
SchematronConstraintNode.MessageComment(SchematronSchema schemaObject, String name)
          Ctor
 
Method Summary
 String[] compileAsMessageArgumentList()
          This method returns a vector or Schematron SQL value expressions in interpretation of a MessageComment object.
 String getErrorNumber()
          Extract the error number from the operator name.
 SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.BindingContext ctx)
          This abstract method compiles a node to an XPath expression fragment.
 
Methods inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

SchematronConstraintNode.MessageComment

public SchematronConstraintNode.MessageComment(SchematronSchema schemaObject,
                                               String name)
Ctor

Parameters:
schemaObject - The schema object
Method Detail

getErrorNumber

public String getErrorNumber()
Extract the error number from the operator name.

Returns:
The error number as a String

compileAsMessageArgumentList

public String[] compileAsMessageArgumentList()

This method returns a vector or Schematron SQL value expressions in interpretation of a MessageComment object. The latter is created from the message text comment syntax contained in the constraints.

Returns:
Array of message arguments in FME value syntax

translate

public SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.BindingContext ctx)
Description copied from class: SchematronConstraintNode

This abstract method compiles a node to an XPath expression fragment.

Specified by:
translate in class SchematronConstraintNode
Parameters:
ctx - BindingContext this node shall be compiled in
Returns:
Object containing the Xpath fragment


Copyright © 2015. All rights reserved.