org.netbeans.modules.bpel.model.api.support
Class PathValidationContext

java.lang.Object
  extended by org.netbeans.modules.bpel.model.api.support.PathValidationContext
All Implemented Interfaces:
org.netbeans.modules.xml.xpath.ext.spi.validation.XPathValidationContext

public class PathValidationContext
extends java.lang.Object
implements org.netbeans.modules.xml.xpath.ext.spi.validation.XPathValidationContext

This is an auxiliary class which hold all context objects are required to validate a BPEL XPath expression. The primary usage target is property alias objects and theirs query subelement.

Author:
nk160297

Constructor Summary
PathValidationContext(org.netbeans.modules.xml.xpath.ext.XPathModel xPathModel, Validator validator, ValidationVisitor vVisitor, BpelEntity activity, ContentElement contentElement)
           
 
Method Summary
 void addResultItem(java.lang.String exprText, Validator.ResultType resultType, java.lang.String str, java.lang.Object... values)
          Adds validation result item in current context.
 void addResultItem(Validator.ResultType resultType, java.lang.String str, java.lang.Object... values)
          Adds validation result item in current context.
 void addResultItem(org.netbeans.modules.xml.xpath.ext.XPathExpression expr, Validator.ResultType resultType, org.netbeans.modules.xml.xpath.ext.spi.validation.XPathProblem problem, java.lang.Object... values)
           
 BpelEntity getBpelContextActivity()
          Returns the BPEL Activity to which the validation is applied.
 org.netbeans.modules.xml.schema.model.SchemaComponent getSchemaContextComponent()
           
 org.netbeans.modules.xml.schema.model.SchemaModel getSchemaContextModel()
           
 Validator getValidator()
           
 ValidationVisitor getVVisitor()
           
 ContentElement getXPathContentElement()
          Returns the immediate owner of the validated XPath expression.
 org.netbeans.modules.xml.xpath.ext.XPathModel getXPathModel()
           
 boolean isSchemaImported(java.lang.String soughtNamspace)
           
 void setSchemaContextComponent(org.netbeans.modules.xml.schema.model.SchemaComponent context)
          Context is a Schema component which represents current context for the XPath expression.
 void setSchemaContextModel(org.netbeans.modules.xml.schema.model.SchemaModel context)
          Context model specifies the root schema model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathValidationContext

public PathValidationContext(org.netbeans.modules.xml.xpath.ext.XPathModel xPathModel,
                             Validator validator,
                             ValidationVisitor vVisitor,
                             BpelEntity activity,
                             ContentElement contentElement)
Method Detail

getXPathModel

public org.netbeans.modules.xml.xpath.ext.XPathModel getXPathModel()

getBpelContextActivity

public BpelEntity getBpelContextActivity()
Returns the BPEL Activity to which the validation is applied.


getXPathContentElement

public ContentElement getXPathContentElement()
Returns the immediate owner of the validated XPath expression.


setSchemaContextComponent

public void setSchemaContextComponent(org.netbeans.modules.xml.schema.model.SchemaComponent context)
Context is a Schema component which represents current context for the XPath expression.

In case of relative location paths, it references to a parent component, which should be considered as a parent for the first location step element.

In case of absolute location paths, it references to a global component, which corresponds to the root location step.


getSchemaContextComponent

public org.netbeans.modules.xml.schema.model.SchemaComponent getSchemaContextComponent()

setSchemaContextModel

public void setSchemaContextModel(org.netbeans.modules.xml.schema.model.SchemaModel context)
Context model specifies the root schema model. It is intended to be used to check absolute location paths.


getSchemaContextModel

public org.netbeans.modules.xml.schema.model.SchemaModel getSchemaContextModel()

getValidator

public Validator getValidator()

getVVisitor

public ValidationVisitor getVVisitor()

addResultItem

public void addResultItem(Validator.ResultType resultType,
                          java.lang.String str,
                          java.lang.Object... values)
Adds validation result item in current context.


addResultItem

public void addResultItem(java.lang.String exprText,
                          Validator.ResultType resultType,
                          java.lang.String str,
                          java.lang.Object... values)
Adds validation result item in current context.


addResultItem

public void addResultItem(org.netbeans.modules.xml.xpath.ext.XPathExpression expr,
                          Validator.ResultType resultType,
                          org.netbeans.modules.xml.xpath.ext.spi.validation.XPathProblem problem,
                          java.lang.Object... values)
Specified by:
addResultItem in interface org.netbeans.modules.xml.xpath.ext.spi.validation.XPathValidationContext

isSchemaImported

public boolean isSchemaImported(java.lang.String soughtNamspace)