/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * @param origin the start point of the search */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this==origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Iterator it=characterMapElements.iterator(); it.hasNext();) { ((XSLCharacterMap)it.next()).checkCircularity(origin); } } } }
/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * @param origin the start point of the search */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this==origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Iterator it=characterMapElements.iterator(); it.hasNext();) { ((XSLCharacterMap)it.next()).checkCircularity(origin); } } } }
/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * * @param origin the start point of the search * @throws net.sf.saxon.trans.XPathException * if an error is detected */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this == origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Object characterMapElement : characterMapElements) { ((XSLCharacterMap) characterMapElement).checkCircularity(origin); } } } }
/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * * @param origin the start point of the search * @throws net.sf.saxon.trans.XPathException * if an error is detected */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this == origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Object characterMapElement : characterMapElements) { ((XSLCharacterMap) characterMapElement).checkCircularity(origin); } } } }
((XSLCharacterMap)it.next()).checkCircularity(this);
((XSLCharacterMap)it.next()).checkCircularity(this);
((XSLCharacterMap) characterMapElement).checkCircularity(this);
((XSLCharacterMap) characterMapElement).checkCircularity(this);