You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2011/02/18 16:35:38 UTC
svn commit: r1072025 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathXPath2Impl.java
Author: mukulg
Date: Fri Feb 18 15:35:38 2011
New Revision: 1072025
URL: http://svn.apache.org/viewvc?rev=1072025&view=rev
Log:
committing few minor improvements to comments and javadocs
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathXPath2Impl.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathXPath2Impl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathXPath2Impl.java?rev=1072025&r1=1072024&r2=1072025&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathXPath2Impl.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathXPath2Impl.java Fri Feb 18 15:35:38 2011
@@ -190,7 +190,7 @@ public class XMLAssertPsychopathXPath2Im
ElementPSVI elemPSVI = (ElementPSVI) augs.getItem(Constants.ELEMENT_PSVI);
((PSVIElementNSImpl) fCurrentAssertDomNode).setPSVI(elemPSVI);
- // handling default values of elements (adding them as 'text' node in the assertion tree)
+ // handling default values of elements (adding them as 'text' node in the assertion XDM tree)
XSElementDecl elemDecl = (XSElementDecl) elemPSVI.getElementDeclaration();
if (elemDecl != null && elemDecl.fDefault != null && fCurrentAssertDomNode.getChildNodes().getLength() == 0) {
String normalizedDefaultValue = elemDecl.fDefault.normalizedValue;
@@ -199,8 +199,7 @@ public class XMLAssertPsychopathXPath2Im
if (!fAssertRootStack.empty() && (fCurrentAssertDomNode == fAssertRootStack.peek())) {
// get XSModel instance
- fSchema = ((PSVIElementNSImpl) fCurrentAssertDomNode).getSchemaInformation();
-
+ fSchema = ((PSVIElementNSImpl) fCurrentAssertDomNode).getSchemaInformation();
// pop the stack to go one level up
fAssertRootStack.pop();
// get assertions and go one level up on the stack
@@ -257,7 +256,7 @@ public class XMLAssertPsychopathXPath2Im
StringBuffer textValueContents = new StringBuffer();
final int childListLength = childList.getLength();
int textChildCount = 0;
- // we are only interested in text & element nodes. Store count of them in this variable.
+ // we are only interested in text & element nodes. store count of them in this variable.
int effectiveChildNodeCount = 0;
for (int childNodeIndex = 0; childNodeIndex < childListLength; childNodeIndex++) {
Node node = childList.item(childNodeIndex);
@@ -409,7 +408,7 @@ public class XMLAssertPsychopathXPath2Im
/*
- * Evaluate assertion on a simpleType xs:list value. Assertion is evaluated on each list item.
+ * Evaluate assertion on a simpleType xs:list value.
*/
private void evaluateAssertionOnSTListValue(QName element, String listStrValue, XSAssertImpl assertImpl, boolean xpathContextExists,
XSSimpleTypeDefinition itemType, boolean isTypeDerivedFromList) throws Exception {
@@ -638,7 +637,7 @@ public class XMLAssertPsychopathXPath2Im
setValueOf$valueForCTWithSimpleContent(value, (XSComplexTypeDefinition) typeDef);
}
else if (typeDef instanceof XSComplexTypeDefinition && ((XSComplexTypeDefinition) typeDef).getSimpleType() == null) {
- // assign an empty XPath2 sequence to xpath context variable $value
+ // set xpath context variable $value to an empty sequence
fXpath2DynamicContext.set_variable(new org.eclipse.wst.xml.xpath2.processor.internal.types.QName("value"), getXPath2ResultSequence(new ArrayList()));
}
else {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org