int lineNumber = -1; if (loc instanceof DOMLocator) { locmessage += "at " + ((DOMLocator)loc).getOriginatingNode().getNodeName() + ' '; } else if (loc instanceof NodeInfo) { locmessage += "at " + ((NodeInfo)loc).getDisplayName() + ' ';
private static String getInstructionName(SourceLocator loc) { if (loc instanceof AttributeLocation) { return ((AttributeLocation)loc).getElementName().getDisplayName() + "/@" + ((AttributeLocation)loc).getAttributeName(); } else if (loc instanceof DOMLocator) { return ((DOMLocator)loc).getOriginatingNode().getNodeName(); } else if (loc instanceof NodeInfo) { return ((NodeInfo)loc).getDisplayName(); } else if (loc instanceof ValidationException && ((ValidationException)loc).getNode() != null) { return (((ValidationException)loc).getNode()).getDisplayName(); } else if (loc instanceof Instruction) { return StandardErrorListener.getInstructionName((Instruction)loc); } else if (loc instanceof Actor) { return getInstructionName((Actor)loc); } else { return null; } }
int lineNumber = -1; if (loc instanceof DOMLocator) { nodeMessage = "at " + ((DOMLocator)loc).getOriginatingNode().getNodeName() + ' '; } else if (loc instanceof NodeInfo) { node = (NodeInfo)loc;
SourceLocator loc = err; if (loc instanceof DOMLocator) { nodeMessage = "at " + ((DOMLocator) loc).getOriginatingNode().getNodeName() + ' '; } else if (loc instanceof ValidationException && loc.getLineNumber() == -1 && (path = ((ValidationException) loc).getPath()) != null) { nodeMessage = "at " + path + ' ';
SourceLocator loc = err; if (loc instanceof DOMLocator) { nodeMessage = "at " + ((DOMLocator) loc).getOriginatingNode().getNodeName() + ' '; } else if (loc instanceof ValidationException && loc.getLineNumber() == -1 && (path = ((ValidationException) loc).getPath()) != null) { nodeMessage = "at " + path + ' ';
nodeMessage = "at " + ((DOMLocator) loc).getOriginatingNode().getNodeName() + ' '; } else if (loc instanceof NodeInfo) { node = (NodeInfo) loc;
nodeMessage = "at " + ((DOMLocator) loc).getOriginatingNode().getNodeName() + ' '; } else if (loc instanceof NodeInfo) { node = (NodeInfo) loc;