rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
expandPE = false; requireWhitespace (); if (tryRead ('%')) { peFlag = true; requireWhitespace (); } expandPE = true; String name = readNmtoken (true); if (name.indexOf(':') >= 0) error ("Illegal character(':') in entity name ", name, null); if (peFlag) { name = "%" + name; } requireWhitespace (); char c = readCh ...
requireWhitespace(); char c = readCh(); unread (c); if (c == '"' || c == '\'') { String value = readLiteral(flags); setInternalEntity(name, value); } else { ExternalIdentifiers ids = readExternalIds(false, false); boolean white = tryWhitespace(); if (!peFlag && tryRead("NDATA")) { if (!white) { error("whitespace r...
private void parseEntityDecl () throws Exception { boolean peFlag = false; int flags = 0; // Check for a parameter entity. expandPE = false; requireWhitespace (); if (tryRead ('%')) { peFlag = true; requireWhitespace (); } expandPE = true; // Read the entity name, and prepend // '%' if necessary. Stri...
{ String name; name = readNmtoken (true); require (';'); switch (getEntityType (name)) { case ENTITY_UNDECLARED: String message; message = "reference to undeclared general entity " + name; if (skippedPE && !docIsStandalone) { handler.verror (message); if (externalAllowed) handler.skippedEntity (name); } else err...
{ String name; name = readNmtoken(true); require(';'); switch (getEntityType(name)) { case ENTITY_UNDECLARED: String message; message = "reference to undeclared general entity " + name; if (skippedPE && !docIsStandalone) { handler.verror(message); if (externalAllowed) { handler.skippedEntity(name); } } else { er...
private void parseEntityRef (boolean externalAllowed) throws SAXException, IOException { String name; name = readNmtoken (true); require (';'); switch (getEntityType (name)) { case ENTITY_UNDECLARED: // NOTE: XML REC describes amazingly convoluted handling for // this case. Nothing as meaningful as ...
{ char saved [] = null; boolean savedPE = expandPE;
{ char[] saved = null; boolean savedPE = expandPE;
private void parseMarkupdecl () throws Exception { char saved [] = null; boolean savedPE = expandPE; // prevent "<%foo;" and ensures saved entity is right require ('<'); unread ('<'); expandPE = false; if (tryRead ("<!ELEMENT")) { saved = readBuffer; expandPE = savedPE; parseElementDecl (); } else...
require ('<'); unread ('<'); expandPE = false;
require('<'); unread('<'); expandPE = false; if (tryRead("<!ELEMENT")) { saved = readBuffer; expandPE = savedPE; parseElementDecl(); } else if (tryRead("<!ATTLIST")) { saved = readBuffer; expandPE = savedPE; parseAttlistDecl(); } else if (tryRead("<!ENTITY")) { saved = readBuffer; expandPE = savedPE; parseEntityDecl()...
private void parseMarkupdecl () throws Exception { char saved [] = null; boolean savedPE = expandPE; // prevent "<%foo;" and ensures saved entity is right require ('<'); unread ('<'); expandPE = false; if (tryRead ("<!ELEMENT")) { saved = readBuffer; expandPE = savedPE; parseElementDecl (); } else...
if (tryRead ("<!ELEMENT")) { saved = readBuffer; expandPE = savedPE; parseElementDecl (); } else if (tryRead ("<!ATTLIST")) { saved = readBuffer; expandPE = savedPE; parseAttlistDecl (); } else if (tryRead ("<!ENTITY")) { saved = readBuffer; expandPE = savedPE; parseEntityDecl (); } else if (tryRead ("<!NOTATION")) { s...
if (readBuffer != saved) { handler.verror("Illegal Declaration/PE nesting"); } }
private void parseMarkupdecl () throws Exception { char saved [] = null; boolean savedPE = expandPE; // prevent "<%foo;" and ensures saved entity is right require ('<'); unread ('<'); expandPE = false; if (tryRead ("<!ELEMENT")) { saved = readBuffer; expandPE = savedPE; parseElementDecl (); } else...
{ skipWhitespace (); if (tryRead (')')) { if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); dataBufferAppend (")*"); tryRead ('*'); return; } skipWhitespace (); while (!tryRead (")")) { require ('|'); dataBufferAppend ('|'); skipWhitespace (); dataBufferAppend (readNmtoken (true)); skipWhitespa...
{ skipWhitespace(); if (tryRead(')')) { if (readBuffer != saved) { handler.verror("Illegal Group/PE nesting"); } dataBufferAppend(")*"); tryRead('*'); return; } skipWhitespace(); while (!tryRead(")")) { require('|'); dataBufferAppend('|'); skipWhitespace(); dataBufferAppend(readNmtoken(true)); skipWhitespace(); } ...
private void parseMixed (char saved []) throws Exception { // Check for PCDATA alone. skipWhitespace (); if (tryRead (')')) { // VC: Proper Group/PE Nesting if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); dataBufferAppend (")*"); tryRead ('*'); return; } // Parse mix...
{ String nname, ids[];
{ String nname; ExternalIdentifiers ids;
private void parseNotationDecl () throws Exception { String nname, ids[]; requireWhitespace (); nname = readNmtoken (true); //NE08 if (nname.indexOf(':') >= 0) error ("Illegal character(':') in notation name ", nname, null); requireWhitespace (); // Read the external identifiers. ids = readEx...
requireWhitespace (); nname = readNmtoken (true); if (nname.indexOf(':') >= 0) error ("Illegal character(':') in notation name ", nname, null); requireWhitespace ();
ids = readExternalIds(true, false);
private void parseNotationDecl () throws Exception { String nname, ids[]; requireWhitespace (); nname = readNmtoken (true); //NE08 if (nname.indexOf(':') >= 0) error ("Illegal character(':') in notation name ", nname, null); requireWhitespace (); // Read the external identifiers. ids = readEx...
ids = readExternalIds (true, false); setNotation (nname, ids); skipWhitespace (); require ('>'); }
setNotation(nname, ids); skipWhitespace(); require('>'); }
private void parseNotationDecl () throws Exception { String nname, ids[]; requireWhitespace (); nname = readNmtoken (true); //NE08 if (nname.indexOf(':') >= 0) error ("Illegal character(':') in notation name ", nname, null); requireWhitespace (); // Read the external identifiers. ids = readEx...
{ String name; name = "%" + readNmtoken (true); require (';'); switch (getEntityType (name)) { case ENTITY_UNDECLARED: handler.verror ("reference to undeclared parameter entity " + name); break; case ENTITY_INTERNAL: if (inLiteral) pushString (name, getEntityValue (name)); else pushString (name, ' ' + getEntityVal...
{ String name; name = "%" + readNmtoken(true); require(';'); switch (getEntityType(name)) { case ENTITY_UNDECLARED: handler.verror("reference to undeclared parameter entity " + name); break; case ENTITY_INTERNAL: if (inLiteral) { pushString(name, getEntityValue(name)); } else { pushString(name, ' ' + getEntityValu...
private void parsePEReference () throws SAXException, IOException { String name; name = "%" + readNmtoken (true); require (';'); switch (getEntityType (name)) { case ENTITY_UNDECLARED: // VC: Entity Declared handler.verror ("reference to undeclared parameter entity " + name); // we should disable ...
{ String name; boolean saved = expandPE; expandPE = false; name = readNmtoken (true); if (name.indexOf(':') >= 0) error ("Illegal character(':') in processing instruction name ", name, null); if ("xml".equalsIgnoreCase (name)) error ("Illegal processing instruction target", name, null); if (!tryRead (endDelimPI)) { r...
{ String name; boolean saved = expandPE; expandPE = false; name = readNmtoken(true); if (name.indexOf(':') >= 0) { error("Illegal character(':') in processing instruction name ", name, null); } if ("xml".equalsIgnoreCase(name)) { error("Illegal processing instruction target", name, null); } if (!tryRead(endDelimPI)) ...
private void parsePI () throws SAXException, IOException { String name; boolean saved = expandPE; expandPE = false; name = readNmtoken (true); //NE08 if (name.indexOf(':') >= 0) error ("Illegal character(':') in processing instruction name ", name, null); if ("xml".equalsIgnoreCase (name)) error...
if (tryRead ("version")) { String version; parseEq (); checkLegalVersion (version = readLiteral (flags)); if (version.equals ("1.1")){ if (xmlVersion == XML_10){ error ("external subset has later version number.", "1.0", version); } handler.warn ("expected XML version 1.0, not: " + version); xmlVersion = XML_11; }else...
if (tryRead ("version")) { String version; parseEq(); checkLegalVersion(version = readLiteral(flags)); if (version.equals("1.1")) { if (xmlVersion == XML_10) { error("external subset has later version number.", "1.0", version); } handler.warn("expected XML version 1.0, not: " + version); xmlVersion = XML_11; } else if...
private String parseTextDecl (boolean ignoreEncoding) throws SAXException, IOException { String encodingName = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; // Read an optional version. if (tryRead ("version")) { String version; parseEq (); checkLegalVersion (version = re...
switch (this.encoding)
switch (this.encoding) { case ENCODING_EXTERNAL: case ENCODING_UTF_8: inputEncoding = "UTF-8"; break; case ENCODING_ISO_8859_1: inputEncoding = "ISO-8859-1"; break; case ENCODING_UCS_2_12: inputEncoding = "UTF-16BE"; break; case ENCODING_UCS_2_21: inputEncoding = "UTF-16LE"; break; } require("version"); parseEq(); ch...
private String parseXMLDecl (boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
case ENCODING_EXTERNAL: case ENCODING_UTF_8: inputEncoding = "UTF-8"; break; case ENCODING_ISO_8859_1: inputEncoding = "ISO-8859-1"; break; case ENCODING_UCS_2_12: inputEncoding = "UTF-16BE"; break; case ENCODING_UCS_2_21: inputEncoding = "UTF-16LE"; break;
handler.warn("expected XML version 1.0, not: " + version); xmlVersion = XML_11;
private String parseXMLDecl (boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
require ("version"); parseEq (); checkLegalVersion (version = readLiteral (flags)); if (!version.equals ("1.0")){ if(version.equals ("1.1")){ handler.warn ("expected XML version 1.0, not: " + version); xmlVersion = XML_11; }else { error("illegal XML version", version, "1.0 or 1.1"); } } else xmlVersion = XML_10; boole...
skipWhitespace(); require("?>");
private String parseXMLDecl (boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
if (tryRead ("encoding")) { if (!white) error ("whitespace required before 'encoding='"); parseEq (); encodingName = readLiteral (flags); if (!ignoreEncoding) setupDecoding (encodingName); } if (encodingName != null) white = tryWhitespace (); if (tryRead ("standalone")) { if (!white) error ("whitespace required befor...
if (inputEncoding == null) { inputEncoding = encodingName; } handler.xmlDecl(version, encodingName, docIsStandalone, inputEncoding); return encodingName; }
private String parseXMLDecl (boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
{ String ename = (String) entityStack.pop ();
{ String ename = (String) entityStack.removeLast();
private void popInput () throws SAXException, IOException { String ename = (String) entityStack.pop (); if (ename != null && doReport) dataBufferFlush (); switch (sourceType) { case INPUT_STREAM: handler.endExternalEntity (ename); is.close (); break; case INPUT_READER: handler.endExternalE...
if (ename != null && doReport) dataBufferFlush (); switch (sourceType) { case INPUT_STREAM: handler.endExternalEntity (ename); is.close (); break; case INPUT_READER: handler.endExternalEntity (ename); reader.close (); break; case INPUT_INTERNAL: if (ename != null && doReport) handler.endInternalEntity (ename); break; }
if (ename != null && doReport) { dataBufferFlush(); } switch (sourceType) { case INPUT_STREAM: handler.endExternalEntity(ename); is.close(); break; case INPUT_READER: handler.endExternalEntity(ename); reader.close(); break; case INPUT_INTERNAL: if (ename != null && doReport) { handler.endInternalEntity(ename); } break;...
private void popInput () throws SAXException, IOException { String ename = (String) entityStack.pop (); if (ename != null && doReport) dataBufferFlush (); switch (sourceType) { case INPUT_STREAM: handler.endExternalEntity (ename); is.close (); break; case INPUT_READER: handler.endExternalE...
sourceType = ((Integer) input [0]).intValue (); externalEntity = (URLConnection) input [1]; readBuffer = (char[]) input [2]; readBufferPos = ((Integer) input [3]).intValue (); readBufferLength = ((Integer) input [4]).intValue (); line = ((Integer) input [5]).intValue (); encoding = ((Integer) input [6]).intValue (); re...
sourceType = input.sourceType; externalEntity = input.externalEntity; readBuffer = input.readBuffer; readBufferPos = input.readBufferPos; readBufferLength = input.readBufferLength; line = input.line; encoding = input.encoding; readBufferOverflow = input.readBufferOverflow; is = input.is; currentByteCount = input.curren...
private void popInput () throws SAXException, IOException { String ename = (String) entityStack.pop (); if (ename != null && doReport) dataBufferFlush (); switch (sourceType) { case INPUT_STREAM: handler.endExternalEntity (ename); is.close (); break; case INPUT_READER: handler.endExternalE...
{ int ch; readBufferPos = readBufferLength = 0; is.mark (readBuffer.length); while (true) { ch = is.read (); readBuffer [readBufferLength++] = (char) ch; switch (ch) { case (int) '>': return; case -1: error ("file ends before end of XML or encoding declaration.", null, "?>"); } if (readBuffer.length == readBufferLengt...
{ int ch; readBufferPos = readBufferLength = 0; is.mark(readBuffer.length); while (true) { ch = is.read(); readBuffer[readBufferLength++] = (char) ch; switch (ch) { case (int) '>': return; case -1: error("file ends before end of XML or encoding declaration.", null, "?>"); } if (readBuffer.length == readBufferLength) {...
private void prefetchASCIIEncodingDecl () throws SAXException, IOException { int ch; readBufferPos = readBufferLength = 0; is.mark (readBuffer.length); while (true) { ch = is.read (); readBuffer [readBufferLength++] = (char) ch; switch (ch) { case (int) '>': return; case -1: error ("...
{ if (ename != null) { Enumeration entities = entityStack.elements (); while (entities.hasMoreElements ()) { String e = (String) entities.nextElement (); if (e != null && e == ename) { error ("recursive reference to entity", ename, null); } } } entityStack.push (ename);
{ if (ename != null) { Iterator entities = entityStack.iterator(); while (entities.hasNext()) { String e = (String) entities.next(); if (e != null && e == ename) { error("recursive reference to entity", ename, null); } } } entityStack.addLast(ename); if (sourceType == INPUT_NONE) { return; } Input input = new Inp...
private void pushInput (String ename) throws SAXException { // Check for entity recursion. if (ename != null) { Enumeration entities = entityStack.elements (); while (entities.hasMoreElements ()) { String e = (String) entities.nextElement (); if (e != null && e == ename) { error ("recursive ref...
if (sourceType == INPUT_NONE) { return; } Object input[] = new Object [12]; input [0] = new Integer (sourceType); input [1] = externalEntity; input [2] = readBuffer; input [3] = new Integer (readBufferPos); input [4] = new Integer (readBufferLength); input [5] = new Integer (line); input [6] = new Integer (encoding...
input.sourceType = sourceType; input.externalEntity = externalEntity; input.readBuffer = readBuffer; input.readBufferPos = readBufferPos; input.readBufferLength = readBufferLength; input.line = line; input.encoding = encoding; input.readBufferOverflow = readBufferOverflow; input.is = is; input.currentByteCount = curren...
private void pushInput (String ename) throws SAXException { // Check for entity recursion. if (ename != null) { Enumeration entities = entityStack.elements (); while (entities.hasMoreElements ()) { String e = (String) entities.nextElement (); if (e != null && e == ename) { error ("recursive ref...
{ char ch[] = s.toCharArray (); pushCharArray (ename, ch, 0, ch.length); }
{ char[] ch = s.toCharArray(); pushCharArray(ename, ch, 0, ch.length); }
private void pushString (String ename, String s) throws SAXException { char ch[] = s.toCharArray (); pushCharArray (ename, ch, 0, ch.length); }
private void pushURL ( boolean isPE, String ename, String ids [], Reader reader, InputStream stream, String encoding, boolean doResolve ) throws SAXException, IOException { boolean ignoreEncoding; String systemId; InputSource source; if (!isPE) dataBufferFlush (); scratch.setPublicId (ids [0]); scratch.setSys...
private void pushURL(boolean isPE, String ename, ExternalIdentifiers ids, Reader reader, InputStream stream, String encoding, boolean doResolve) throws SAXException, IOException { boolean ignoreEncoding; String systemId; InputSource source; if (!isPE) { dataBufferFlush(); } scratch.setPublicId(ids.publicId); scratch....
private void pushURL ( boolean isPE, String ename, String ids [], // public, system, baseURI Reader reader, InputStream stream, String encoding, boolean doResolve ) throws SAXException, IOException { boolean ignoreEncoding; String systemId; InputSource source; if (!isPE) dataBufferFlush ()...
if (tryRead ('(')) { parseEnumeration (false); return "ENUMERATION"; } else { String typeString = readNmtoken (true); if (handler.getFeature (SAXDriver.FEATURE + "string-interning")) { if ("NOTATION" == typeString) { parseNotationType (); return typeString; } else if ("CDATA" == typeString || "ID" == typeString || "IDR...
if (tryRead('(')) { parseEnumeration(false); return "ENUMERATION";
private String readAttType () throws Exception { if (tryRead ('(')) { parseEnumeration (false); return "ENUMERATION"; } else { String typeString = readNmtoken (true); if (handler.getFeature (SAXDriver.FEATURE + "string-interning")) { if ("NOTATION" == typeString) { parseNota...
error ("illegal attribute type", typeString, null); return null; }
else { String typeString = readNmtoken(true); if (handler.stringInterning) { if ("NOTATION" == typeString) { parseNotationType(); return typeString; } else if ("CDATA" == typeString || "ID" == typeString || "IDREF" == typeString || "IDREFS" == typeString || "ENTITY" == typeString || "ENTITIES" == typeString || "NMTOKEN...
private String readAttType () throws Exception { if (tryRead ('(')) { parseEnumeration (false); return "ENUMERATION"; } else { String typeString = readNmtoken (true); if (handler.getFeature (SAXDriver.FEATURE + "string-interning")) { if ("NOTATION" == typeString) { parseNota...
{ while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case INPUT_STREAM: readDataChunk (); while (readBufferLength < 1) { popInput (); if (readBufferLength < 1) { readDataChunk (); } } break;
{ while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case INPUT_STREAM: readDataChunk(); while (readBufferLength < 1) { popInput(); if (readBufferLength < 1) { readDataChunk(); } } break; default: popInput(); break; } } char c = readBuffer[readBufferPos++]; if (c == '\n') { lin...
private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case IN...
default:
else if (c == '%' && expandPE) { if (peIsError) { error("PE reference within decl in internal subset."); } parsePEReference(); return readCh(); } column++; }
private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case IN...
popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer....
return c; }
private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case IN...
{ int count;
{ int count; if (readBufferOverflow > -1) { readBuffer[0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferPos = 0; sawCR = false; }
private void readDataChunk () throws SAXException, IOException { int count; // See if we have any overflow (filterCR sets for CR at end) if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferP...
if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferPos = 0; sawCR = false; }
if (sourceType == INPUT_READER) { count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX - readBufferPos); if (count < 0) { readBufferLength = readBufferPos; } else { readBufferLength = readBufferPos + count; } if (readBufferLength > 0) { filterCR(count >= 0); } sawCR = false; return; } count = is.read(rawRea...
private void readDataChunk () throws SAXException, IOException { int count; // See if we have any overflow (filterCR sets for CR at end) if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferP...
if (sourceType == INPUT_READER) { count = reader.read (readBuffer, readBufferPos, READ_BUFFER_MAX - readBufferPos); if (count < 0) readBufferLength = readBufferPos; else readBufferLength = readBufferPos + count; if (readBufferLength > 0) filterCR (count >= 0); sawCR = false; return; }
if (count > 0) { switch (encoding) { case ENCODING_ASCII: copyIso8859_1ReadBuffer(count, (char) 0x0080); break; case ENCODING_UTF_8: copyUtf8ReadBuffer(count); break; case ENCODING_ISO_8859_1: copyIso8859_1ReadBuffer(count, (char) 0); break;
private void readDataChunk () throws SAXException, IOException { int count; // See if we have any overflow (filterCR sets for CR at end) if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferP...
count = is.read (rawReadBuffer, 0, READ_BUFFER_MAX);
case ENCODING_UCS_2_12: copyUcs2ReadBuffer(count, 8, 0); break; case ENCODING_UCS_2_21: copyUcs2ReadBuffer(count, 0, 8); break; case ENCODING_UCS_4_1234: copyUcs4ReadBuffer(count, 24, 16, 8, 0); break; case ENCODING_UCS_4_4321: copyUcs4ReadBuffer(count, 0, 8, 16, 24); break; case ENCODING_UCS_4_2143: copyUcs4ReadBuff...
private void readDataChunk () throws SAXException, IOException { int count; // See if we have any overflow (filterCR sets for CR at end) if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferP...
if (count > 0) { switch (encoding) { case ENCODING_ASCII: copyIso8859_1ReadBuffer (count, (char) 0x0080); break; case ENCODING_UTF_8: copyUtf8ReadBuffer (count); break; case ENCODING_ISO_8859_1: copyIso8859_1ReadBuffer (count, (char) 0); break; case ENCODING_UCS_2_12: copyUcs2ReadBuffer (count, 8, 0); break; case EN...
readBufferPos = 0; if (sawCR) { filterCR(count >= 0); sawCR = false; if (readBufferLength == 0 && count >= 0) { readDataChunk(); } } if (count > 0) { currentByteCount += count; } }
private void readDataChunk () throws SAXException, IOException { int count; // See if we have any overflow (filterCR sets for CR at end) if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferP...
{ char c; String ids[] = new String [3]; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; if (tryRead ("PUBLIC")) { requireWhitespace (); ids [0] = readLiteral (LIT_NORMALIZE | LIT_PUBID | flags); if (inNotation) { skipWhitespace (); c = readCh (); unread (c); if (c == '"' || c == '\'') { ids [1] = re...
{ char c; ExternalIdentifiers ids = new ExternalIdentifiers(); int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; if (tryRead("PUBLIC")) { requireWhitespace(); ids.publicId = readLiteral(LIT_NORMALIZE | LIT_PUBID | flags); if (inNotation) { skipWhitespace(); c = readCh(); unread(c); if (c == '"' || c ==...
private String[] readExternalIds (boolean inNotation, boolean isSubset) throws Exception { char c; String ids[] = new String [3]; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; if (tryRead ("PUBLIC")) { requireWhitespace (); ids [0] = readLiteral (LIT_NORMALIZE | LIT_PUBID | flags);...
{ char delim, c; int startLine = line; boolean saved = expandPE; boolean savedReport = doReport;
{ char delim, c; int startLine = line; boolean saved = expandPE; boolean savedReport = doReport; delim = readCh(); if (delim != '"' && delim != '\'') { error("expected '\"' or \"'\"", delim, null); return null; } inLiteral = true; if ((flags & LIT_DISABLE_PE) != 0) { expandPE = false; } doReport = false; char[] o...
private String readLiteral (int flags) throws SAXException, IOException { char delim, c; int startLine = line; boolean saved = expandPE; boolean savedReport = doReport; // Find the first delimiter. delim = readCh (); if (delim != '"' && delim != '\'') { error ("expected '\"' or \"'\"", delim, null); r...
delim = readCh (); if (delim != '"' && delim != '\'') { error ("expected '\"' or \"'\"", delim, null); return null; } inLiteral = true; if ((flags & LIT_DISABLE_PE) != 0) expandPE = false; doReport = false;
try { c = readCh(); boolean ampRead = false; loop: while (! (c == delim && readBuffer == ourBuf)) { switch (c) { case '\n': case '\r': if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0) { c = ' '; } break; case '\t': if ((flags & LIT_ATTRIBUTE) != 0) { c = ' '; } break; case '&': c = readCh(); if (c == '#') { if ((fla...
private String readLiteral (int flags) throws SAXException, IOException { char delim, c; int startLine = line; boolean saved = expandPE; boolean savedReport = doReport; // Find the first delimiter. delim = readCh (); if (delim != '"' && delim != '\'') { error ("expected '\"' or \"'\"", delim, null); r...
char ourBuf [] = readBuffer; try { c = readCh (); boolean ampRead = false; loop: while (! (c == delim && readBuffer == ourBuf)) { switch (c) { case '\n': case '\r': if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0) c = ' '; break; case '\t': if ((flags & LIT_ATTRIBUTE) != 0) c = ' '; break; case '&': c = readCh (); ...
default: break; } dataBufferAppend(c); c = readCh(); } } catch (EOFException e) { error("end of input while looking for delimiter (started on line " + startLine + ')', null, new Character(delim).toString()); } inLiteral = false; expandPE = saved; doReport = savedReport; if ((flags & LIT_NORMALIZE) > 0) { dataBufferNo...
private String readLiteral (int flags) throws SAXException, IOException { char delim, c; int startLine = line; boolean saved = expandPE; boolean savedReport = doReport; // Find the first delimiter. delim = readCh (); if (delim != '"' && delim != '\'') { error ("expected '\"' or \"'\"", delim, null); r...
{ char c;
{ char c; if (USE_CHEATS) { loop: for (int i = readBufferPos; i < readBufferLength; i++) { c = readBuffer[i]; switch (c) { case '%': if (expandPE) { break loop; } case '<': case '>': case '&': case ',': case '|': case '*': case '+': case '?': case ')': case '=': case '\'': case '"': case '[': case ' ': case '\t': c...
private String readNmtoken (boolean isName) throws SAXException, IOException { char c; if (USE_CHEATS) {loop: for (int i = readBufferPos; i < readBufferLength; i++) { c = readBuffer [i]; switch (c) { case '%': if (expandPE) break loop; // else fall through... // What may legitimately...
if (USE_CHEATS) {
private String readNmtoken (boolean isName) throws SAXException, IOException { char c; if (USE_CHEATS) {loop: for (int i = readBufferPos; i < readBufferLength; i++) { c = readBuffer [i]; switch (c) { case '%': if (expandPE) break loop; // else fall through... // What may legitimately...
for (int i = readBufferPos; i < readBufferLength; i++) { c = readBuffer [i]; switch (c) { case '%': if (expandPE) break loop; case '<': case '>': case '&': case ',': case '|': case '*': case '+': case '?': case ')': case '=': case '\'': case '"': case '[': case ' ': case '\t': case '\r': case '\n': case ';': case '/...
while (true) { c = readCh(); switch (c) { case '%': case '<': case '>': case '&': case ',': case '|': case '*': case '+': case '?': case ')': case '=': case '\'': case '"': case '[': case ' ': case '\t': case '\n': case '\r': case ';': case '/': unread(c); if (nameBufferPos == 0) { error ("name expected"); } if (isNam...
private String readNmtoken (boolean isName) throws SAXException, IOException { char c; if (USE_CHEATS) {loop: for (int i = readBufferPos; i < readBufferLength; i++) { c = readBuffer [i]; switch (c) { case '%': if (expandPE) break loop; // else fall through... // What may legitimately...
{ int length = delim.length (); char ch []; if (length < dataBuffer.length) { ch = dataBuffer; delim.getChars (0, length, ch, 0); } else ch = delim.toCharArray (); if (USE_CHEATS && length <= (readBufferLength - readBufferPos)) { int offset = readBufferPos; for (int i = 0; i < length; i++, offset++) if (ch [i] != re...
{ int length = delim.length(); char[] ch; if (length < dataBuffer.length) { ch = dataBuffer; delim.getChars(0, length, ch, 0); } else { ch = delim.toCharArray(); } if (USE_CHEATS && length <= (readBufferLength - readBufferPos)) { int offset = readBufferPos; for (int i = 0; i < length; i++, offset++) { if (ch[i] != r...
private void require (String delim) throws SAXException, IOException { int length = delim.length (); char ch []; if (length < dataBuffer.length) { ch = dataBuffer; delim.getChars (0, length, ch, 0); } else ch = delim.toCharArray (); if (USE_CHEATS && length <= (readBufferLength - readBufferPos)...
{ Hashtable attlist; if (skippedPE) return; attlist = getElementAttributes (elName); if (attlist == null) attlist = new Hashtable (); if (attlist.get (name) != null) { return; } else { Object attribute [] = new Object [5]; attribute [0] = type; attribute [1] = value; attribute [2] = new Integer (valueType); attri...
{ HashMap attlist; if (skippedPE) { return; } attlist = getElementAttributes(elName); if (attlist == null) { attlist = new HashMap(); } if (attlist.get(name) != null) { return; } else { AttributeDecl attribute = new AttributeDecl(); attribute.type = type; attribute.value = value; attribute.valueType = valueType; ...
private void setAttribute (String elName, String name, String type, String enumeration, String value, int valueType) throws Exception { Hashtable attlist; if (skippedPE) return; // Create a new hashtable if necessary. attlist = getElementAttributes (elName); if (attlist == null) attlist = new Hash...
private void setElement ( String name, int contentType, String contentModel, Hashtable attributes ) throws SAXException { if (skippedPE) return;
private void setElement(String name, int contentType, String contentModel, HashMap attributes) throws SAXException { if (skippedPE) { return; }
private void setElement ( String name, int contentType, String contentModel, Hashtable attributes ) throws SAXException { if (skippedPE) return; Object element [] = (Object []) elementInfo.get (name); // first <!ELEMENT ...> or <!ATTLIST ...> for this type? if (element == null) { element = new Obj...
Object element [] = (Object []) elementInfo.get (name); if (element == null) { element = new Object [3]; element [0] = new Integer (contentType); element [1] = contentModel; element [2] = attributes; elementInfo.put (name, element); return; } if (contentType != CONTENT_UNDECLARED) { if (((Integer) element [0]).int...
ElementDecl element = (ElementDecl) elementInfo.get(name); if (element == null) { element = new ElementDecl(); element.contentType = contentType; element.contentModel = contentModel; element.attributes = attributes; elementInfo.put(name, element); return; } if (contentType != CONTENT_UNDECLARED) { if (element.cont...
private void setElement ( String name, int contentType, String contentModel, Hashtable attributes ) throws SAXException { if (skippedPE) return; Object element [] = (Object []) elementInfo.get (name); // first <!ELEMENT ...> or <!ATTLIST ...> for this type? if (element == null) { element = new Obj...
private void setExternalEntity (String eName, int eClass, String ids [], String nName) { if (entityInfo.get (eName) == null) { Object entity[] = new Object [5]; entity [0] = new Integer (eClass); entity [1] = ids; entity [4] = nName; entityInfo.put (eName, entity); } }
private void setExternalEntity(String eName, int eClass, ExternalIdentifiers ids, String nName) { if (entityInfo.get(eName) == null) { EntityInfo entity = new EntityInfo(); entity.type = eClass; entity.ids = ids; entity.notationName = nName; entityInfo.put(eName, entity); } }
private void setExternalEntity (String eName, int eClass, String ids [], String nName) { if (entityInfo.get (eName) == null) { Object entity[] = new Object [5]; entity [0] = new Integer (eClass); entity [1] = ids;// FIXME: shrink!! [2] no longer used, [4] irrelevant given [0] entity [4] = ...
{ if (skippedPE) return;
{ if (skippedPE) { return; }
private void setInternalEntity (String eName, String value) throws SAXException { if (skippedPE) return; if (entityInfo.get (eName) == null) { Object entity[] = new Object [5]; entity [0] = new Integer (ENTITY_INTERNAL);// FIXME: shrink!! [2] useless entity [3] = value; entityInfo.put (eN...
if (entityInfo.get (eName) == null) { Object entity[] = new Object [5]; entity [0] = new Integer (ENTITY_INTERNAL); entity [3] = value; entityInfo.put (eName, entity); } if (handler.getFeature (SAXDriver.FEATURE + "string-interning")) { if ("lt" == eName || "gt" == eName || "quot" == eName || "apos" == eName || "amp" ...
if (entityInfo.get(eName) == null) { EntityInfo entity = new EntityInfo(); entity.type = ENTITY_INTERNAL; entity.value = value; entityInfo.put(eName, entity); } if (handler.stringInterning) { if ("lt" == eName || "gt" == eName || "quot" == eName || "apos" == eName || "amp" == eName) { return; } } else { if ("lt".equals...
private void setInternalEntity (String eName, String value) throws SAXException { if (skippedPE) return; if (entityInfo.get (eName) == null) { Object entity[] = new Object [5]; entity [0] = new Integer (ENTITY_INTERNAL);// FIXME: shrink!! [2] useless entity [3] = value; entityInfo.put (eN...
handler.getDeclHandler () .internalEntityDecl (eName, value); }
private void setInternalEntity (String eName, String value) throws SAXException { if (skippedPE) return; if (entityInfo.get (eName) == null) { Object entity[] = new Object [5]; entity [0] = new Integer (ENTITY_INTERNAL);// FIXME: shrink!! [2] useless entity [3] = value; entityInfo.put (eN...
{ if (skippedPE) return; handler.notationDecl (nname, ids); if (notationInfo.get (nname) == null) notationInfo.put (nname, nname); else handler.verror ("Duplicate notation name decl: " + nname); }
{ if (skippedPE) { return; } handler.notationDecl(nname, ids.publicId, ids.systemId, ids.baseUri); if (notationInfo.get(nname) == null) { notationInfo.put(nname, nname); } else { handler.verror("Duplicate notation name decl: " + nname); } }
private void setNotation (String nname, String ids []) throws SAXException { if (skippedPE) return; handler.notationDecl (nname, ids); if (notationInfo.get (nname) == null) notationInfo.put (nname, nname); else // VC: Unique Notation Name handler.verror ("Duplicate notation name decl: " + nnam...
{ encodingName = encodingName.toUpperCase (); if (encoding == ENCODING_UTF_8 || encoding == ENCODING_EXTERNAL) { if (encodingName.equals ("ISO-8859-1") || encodingName.equals ("8859_1") || encodingName.equals ("ISO8859_1") ) { encoding = ENCODING_ISO_8859_1; return; } else if (encodingName.equals ("US-ASCII") ...
{ encodingName = encodingName.toUpperCase(); if (encoding == ENCODING_UTF_8 || encoding == ENCODING_EXTERNAL) { if (encodingName.equals("ISO-8859-1") || encodingName.equals("8859_1") || encodingName.equals("ISO8859_1")) { encoding = ENCODING_ISO_8859_1; return; } else if (encodingName.equals("US-ASCII") || enc...
private void setupDecoding (String encodingName) throws SAXException, IOException { encodingName = encodingName.toUpperCase (); // ENCODING_EXTERNAL indicates an encoding that wasn't // autodetected ... we can use builtin decoders, or // ones from the JVM (InputStreamReader). // Otherwise we can only tweak wh...
for (int i = readBufferPos; i < readBufferLength; i++) { switch (readBuffer [i]) { case ' ': case '\t': case '\r': columnAugment++; break; case '\n': lineAugment++; columnAugment = 0; break; case '%': if (expandPE) break loop; default: readBufferPos = i; if (lineAugment > 0) { line += lineAugment; column = columnAugme...
for (int i = readBufferPos; i < readBufferLength; i++) { switch (readBuffer[i]) { case ' ': case '\t': case '\r': columnAugment++; break; case '\n': lineAugment++; columnAugment = 0; break; case '%': if (expandPE) { break loop; } default: readBufferPos = i; if (lineAugment > 0) { line += lineAugment; column = columnAu...
private void skipWhitespace () throws SAXException, IOException { // Start with a little cheat. Most of // the time, the white space will fall // within the current read buffer; if // not, then fall through. if (USE_CHEATS) { int lineAugment = 0; int columnAugment = 0;loop: for (int i = readBuffe...
private static boolean tryEncoding ( byte sig[], byte b1, byte b2, byte b3, byte b4) { return (sig [0] == b1 && sig [1] == b2 && sig [2] == b3 && sig [3] == b4); }
private static boolean tryEncoding(byte[] sig, byte b1, byte b2, byte b3, byte b4) { return (sig[0] == b1 && sig[1] == b2 && sig[2] == b3 && sig[3] == b4); }
private static boolean tryEncoding ( byte sig[], byte b1, byte b2, byte b3, byte b4) { return (sig [0] == b1 && sig [1] == b2 && sig [2] == b3 && sig [3] == b4); }
{ char c;
{ char c; c = readCh();
private boolean tryRead (char delim) throws SAXException, IOException { char c; // Read the character c = readCh (); // Test for a match, and push the character // back if the match fails. if (c == delim) { return true; } else { unread (c); return false; } }
c = readCh (); if (c == delim) { return true; } else { unread (c); return false; } }
if (c == delim) { return true; } else { unread(c); return false; } }
private boolean tryRead (char delim) throws SAXException, IOException { char c; // Read the character c = readCh (); // Test for a match, and push the character // back if the match fails. if (c == delim) { return true; } else { unread (c); return false; } }
while (true) { c = readCh (); int n; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': n = c - '0'; break; case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': n = (c - 'a') + 10; break; case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': n =...
while (true) { c = readCh(); if (c == ';') { break loop1; } else { int n = Character.digit(c, 16); if (n == -1) { error("illegal character in character reference", c, null); break loop1; } value *= 16; value += n; } } } else {
private void tryReadCharRef () throws SAXException, IOException { int value = 0; char c; if (tryRead ('x')) {loop1: while (true) { c = readCh (); int n; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': n = c - '0'; break; case 'a'...
while (true) { c = readCh (); switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': value *= 10; value += c - '0'; break; case ';': break loop2; default: error ("illegal character in character reference", c, null); break loop2; } } } if ((value < 0x0020 && ! ...
while (true) { c = readCh(); if (c == ';') { break loop2; } else { int n = Character.digit(c, 10); if (n == -1) { error("illegal character in character reference", c, null); break loop2; } value *= 10; value += n; } } } if ((value < 0x0020 && ! (value == '\n' || value == '\t' || value == '\r')) || (value >= 0xD800 &&...
private void tryReadCharRef () throws SAXException, IOException { int value = 0; char c; if (tryRead ('x')) {loop1: while (true) { c = readCh (); int n; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': n = c - '0'; break; case 'a'...
{ if ((FEATURE + "validation").equals (featureId)) return false;
{ if ((FEATURE + "validation").equals(featureId)) { return false; }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
if ((FEATURE + "external-general-entities").equals (featureId)) return extGE; if ((FEATURE + "external-parameter-entities") .equals (featureId)) return extPE;
if ((FEATURE + "external-general-entities").equals(featureId)) { return extGE; } if ((FEATURE + "external-parameter-entities").equals(featureId)) { return extPE; } if ((FEATURE + "namespace-prefixes").equals(featureId)) { return xmlNames; }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
if ((FEATURE + "namespace-prefixes").equals (featureId)) return xmlNames;
if ((FEATURE + "namespaces").equals(featureId)) { return namespaces; }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
if ((FEATURE + "namespaces").equals (featureId)) return namespaces;
if ((FEATURE + "lexical-handler/parameter-entities").equals(featureId)) { return true; }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
if ((FEATURE + "lexical-handler/parameter-entities").equals (featureId)) return true;
if ((FEATURE + "string-interning").equals(featureId)) { return stringInterning; } if ((FEATURE + "use-attributes2").equals(featureId)) { return true; } if ((FEATURE + "is-standalone").equals(featureId)) { if (parser == null) { throw new SAXNotSupportedException(featureId); } return parser.isStandalone(); }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
if ((FEATURE + "string-interning").equals (featureId)) return stringInterning;
if ((FEATURE + "resolve-dtd-uris").equals(featureId)) { return resolveAll; }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
if ((FEATURE + "use-attributes2").equals (featureId)) return true; if ((FEATURE + "is-standalone").equals (featureId)) { if (parser == null) throw new SAXNotSupportedException (featureId); return parser.isStandalone (); } if ((FEATURE + "resolve-dtd-uris").equals (featureId)) return resolveAll; if ((FEATURE + "us...
if ((FEATURE + "use-entity-resolver2").equals(featureId)) { return useResolver2; } throw new SAXNotRecognizedException(featureId); }
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG...
sect.setAttribute(this.idAttr, newId);
sect.setAttributeNS(sect.getNamespaceURI(), this.idAttr, newId);
private Document addIds(Document doc, String elementXPath, String idXPath) throws SAXException { getLogger().debug("## Using element XPath "+elementXPath); NodeList sects = processor.selectNodeList(doc, elementXPath); getLogger().debug("## .. got "+sects.getLength()+" sections"); for (in...
if (retainDefaultsEnabled() && propertyValue == null) { setDictionaryForKey(dictionary == null ? NSDictionary.EmptyDictionary : dictionary, propertyName);
if (retainDefaultsEnabled() && propertyValue == null && dictionary != null) { setDictionaryForKey(dictionary, propertyName);
public static NSDictionary dictionaryForKeyWithDefault(final String s, final NSDictionary defaultValue) { final String propertyName = getApplicationSpecificPropertyName(s); Object value = _cache.get(propertyName); if (value == UndefinedMarker) { return defaultValue; } i...
int point = bigStr.length() - scale;
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; int point = bigStr.length() - scale; boolean negative = (bigStr.charAt(0) == '-'); StringBuffer sb = new StringBuffer(bigStr.length() + 1 + (point <= 0 ? -point+1 : 0)); if (negative) ...
StringBuffer sb = new StringBuffer(bigStr.length() + 1 + (point <= 0 ? -point+1 : 0)); if (negative) sb.append('-'); while (point <= 0)
int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0)); if (point <= 0)
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; int point = bigStr.length() - scale; boolean negative = (bigStr.charAt(0) == '-'); StringBuffer sb = new StringBuffer(bigStr.length() + 1 + (point <= 0 ? -point+1 : 0)); if (negative) ...
sb.append('0'); point++;
if (negative) sb.append('-'); sb.append('0').append('.'); while (point < 0) { sb.append('0'); point++; } sb.append(bigStr.substring(negative ? 1 : 0));
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; int point = bigStr.length() - scale; boolean negative = (bigStr.charAt(0) == '-'); StringBuffer sb = new StringBuffer(bigStr.length() + 1 + (point <= 0 ? -point+1 : 0)); if (negative) ...
sb.append(bigStr.substring(negative ? 1 : 0)); sb.insert(point, '.');
else { sb.append(bigStr); sb.insert(point + (negative ? 1 : 0), '.'); }
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; int point = bigStr.length() - scale; boolean negative = (bigStr.charAt(0) == '-'); StringBuffer sb = new StringBuffer(bigStr.length() + 1 + (point <= 0 ? -point+1 : 0)); if (negative) ...
ret.add(node.getRealNode().getResolvedId());
ret.add(node.getId());
public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (...
NDC.pop();
public void appendToResponse(WOResponse r, WOContext c) { NDC.push("Page: " + getClass().getName()+ (d2wContext()!= null ? (" - Configuration: "+d2wContext().valueForKey("pageConfiguration")) : "")); try { super.appendToResponse(r,c); } finally { /*NDC.pop(); JC_INFO - NSA...
NDC.pop();
public WOActionResults invokeAction(WORequest r, WOContext c) { WOActionResults result=null; NDC.push("Page: " + getClass().getName()+ (d2wContext()!= null ? (" - Configuration: "+d2wContext().valueForKey("pageConfiguration")) : "")); try { result= super.invokeAction(r, c); } ...
NDC.pop();
public void takeValuesFromRequest(WORequest r, WOContext c) { // Need to make sure that we have a clean plate, every time clearValidationFailed(); NDC.push("Page: " + getClass().getName()+ (d2wContext()!= null ? (" - Configuration: "+d2wContext().valueForKey("pageConfiguration")) : "")); ...
copyExperimentInNode(popupNode);
startConsole(popupNode);
public void actionPerformed(ActionEvent e) { copyExperimentInNode(popupNode); }
deleteExperiment(popupNode);
copyExperimentInNode(popupNode);
public void actionPerformed(ActionEvent e) { deleteExperiment(popupNode); }
renameExperiment(popupNode);
deleteExperiment(popupNode);
public void actionPerformed(ActionEvent e) { renameExperiment(popupNode); }
startBuilder(popupNode, e.getActionCommand().equals("Configure"));
renameExperiment(popupNode);
public void actionPerformed(ActionEvent e) { startBuilder(popupNode, e.getActionCommand().equals("Configure")); }
startExperimentBuilder(popupNode, true);
startBuilder(popupNode, e.getActionCommand().equals("Configure"));
public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, true); }
startConsole(popupNode);
startExperimentBuilder(popupNode, true);
public void actionPerformed(ActionEvent e) { startConsole(popupNode); }
copySocietyInNode(popupNode);
startConsole(popupNode);
public void actionPerformed(ActionEvent e) { copySocietyInNode(popupNode); }
deleteSociety(popupNode);
copySocietyInNode(popupNode);
public void actionPerformed(ActionEvent e) { deleteSociety(popupNode); }
renameSociety(popupNode);
deleteSociety(popupNode);
public void actionPerformed(ActionEvent e) { renameSociety(popupNode); }
startBuilder(popupNode, e.getActionCommand().equals("Configure")); }
renameSociety(popupNode); }
public void actionPerformed(ActionEvent e) { startBuilder(popupNode, e.getActionCommand().equals("Configure")); }
startExperimentBuilder(popupNode, true); }
startBuilder(popupNode, e.getActionCommand().equals("Configure")); }
public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, true); }
copyImpactInNode(popupNode);
startExperimentBuilder(popupNode, true);
public void actionPerformed(ActionEvent e) { copyImpactInNode(popupNode); }
deleteImpact(popupNode);
copyImpactInNode(popupNode);
public void actionPerformed(ActionEvent e) { deleteImpact(popupNode); }
renameImpact(popupNode);
deleteImpact(popupNode);
public void actionPerformed(ActionEvent e) { renameImpact(popupNode); }
startExperimentBuilder(popupNode, true);
renameImpact(popupNode);
public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, true); }
copyComponentInNode(popupNode);
startExperimentBuilder(popupNode, true);
public void actionPerformed(ActionEvent e) { copyComponentInNode(popupNode); }
deleteComponent(popupNode);
copyComponentInNode(popupNode);
public void actionPerformed(ActionEvent e) { deleteComponent(popupNode); }
renameComponent(popupNode);
deleteComponent(popupNode);
public void actionPerformed(ActionEvent e) { renameComponent(popupNode); }
startBuilder(popupNode, e.getActionCommand().equals("Configure"));
renameComponent(popupNode);
public void actionPerformed(ActionEvent e) { startBuilder(popupNode, e.getActionCommand().equals("Configure")); }
copyMetricInNode(popupNode);
startExperimentBuilder(popupNode, true);
public void actionPerformed(ActionEvent e) { copyMetricInNode(popupNode); }
deleteMetric(popupNode);
copyMetricInNode(popupNode);
public void actionPerformed(ActionEvent e) { deleteMetric(popupNode); }
renameMetric(popupNode);
deleteMetric(popupNode);
public void actionPerformed(ActionEvent e) { renameMetric(popupNode); }
while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newSociety(popupNode);
renameMetric(popupNode);
public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newSociety(popupNode); }
newImpact(popupNode);
newSociety(popupNode);
public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newImpact(popupNode); }
newMetric(popupNode);
newImpact(popupNode);
public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newMetric(popupNode); }
newFolder(popupNode);
newMetric(popupNode);
public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newFolder(popupNode); }