private void processWildCard(SchemaParticle sp, XmlCursor xmlc, boolean mixed) { xmlc.insertComment("You may enter ANY elements at this point"); xmlc.insertElement("AnyElement"); }
private void processChoice(SchemaParticle sp, XmlCursor xmlc, boolean mixed) { SchemaParticle[] spc = sp.getParticleChildren(); xmlc.insertComment("You have a CHOICE of the next " + String.valueOf(spc.length) + " items at this level"); for (int i=0; i < spc.length; i++) { processParticle(spc[i], xmlc, mixed); } }
xmlc.insertComment("Zero or more repetitions:"); else xmlc.insertComment(minOccurs + " or more repetitions:"); xmlc.insertComment(minOccurs + " to " + String.valueOf(sp.getMaxOccurs()) + " repetitions:"); xmlc.insertComment("Optional:");
private void processWildCard(SchemaParticle sp, XmlCursor xmlc, boolean mixed) { xmlc.insertComment("You may enter ANY elements at this point"); xmlc.insertElement("AnyElement"); }
private void processWildCard(SchemaParticle sp, XmlCursor xmlc, boolean mixed) { xmlc.insertComment("You may enter ANY elements at this point"); xmlc.insertElement("AnyElement"); }
private void processChoice(SchemaParticle sp, XmlCursor xmlc, boolean mixed) { SchemaParticle[] spc = sp.getParticleChildren(); xmlc.insertComment("You have a CHOICE of the next " + String.valueOf(spc.length) + " items at this level"); for (int i=0; i < spc.length; i++) { processParticle(spc[i], xmlc, mixed); } }
private void processChoice(SchemaParticle sp, XmlCursor xmlc, boolean mixed) { SchemaParticle[] spc = sp.getParticleChildren(); xmlc.insertComment("You have a CHOICE of the next " + String.valueOf(spc.length) + " items at this level"); for (int i=0; i < spc.length; i++) { processParticle(spc[i], xmlc, mixed); } }
private void cleanContextPriorityClassLoader(XmlCursor cursor) { String localName = getLocalName(cursor); if ("context-priority-classloader".equals(localName)) { String value = cursor.getTextValue(); if ("false".equals(value)) { cursor.removeXml(); } else if ("true".equals("true")) { cursor.removeXml(); cursor.insertComment("YOU MUST INSERT THE ELEMENT <inverse-classloading/> INTO THE ENVIRONMENT ELEMENT FOR THIS MODULE"); } } }
xmlc.insertComment("Zero or more repetitions:"); else xmlc.insertComment(minOccurs + " or more repetitions:"); xmlc.insertComment(minOccurs + " to " + String.valueOf(sp.getMaxOccurs()) + " repetitions:"); xmlc.insertComment("Optional:");
xmlc.insertComment("Zero or more repetitions:"); else xmlc.insertComment(minOccurs + " or more repetitions:"); xmlc.insertComment(minOccurs + " to " + String.valueOf(sp.getMaxOccurs()) + " repetitions:"); xmlc.insertComment("Optional:");
cursor.insertComment( SimpleNode.prepareComment( tmpToken.image ) ) ; tmpToken = tmpToken.next;
cursor.insertComment( adqlstox.parser.prepareComment( tmpToken.image ) ) ; tmpToken = tmpToken.next;
log.debug( xo.schemaType().getName().getLocalPart() + ": " + xo.toString() ) ; if( xo == go ) { cursor.insertComment( SimpleNode.prepareComment( comment ) ) ; break ;
private String getTrailingComment() { Token commentLinkedToken = null ;
private String getTrailingComment() { Token commentLinkedToken = null ;
if( comments[0] != null ) { if( comments[0].length() > 0 ) { cursor.insertComment( SimpleNode.prepareComment( comments[0] ) ) ; if( comments[1] != null ) { if( comments[1].length() > 0 ) { cursor.insertComment( SimpleNode.prepareComment( comments[1] ) ) ;
if( comments[0] != null ) { if( comments[0].length() > 0 ) { cursor.insertComment( prepareComment( comments[0] ) ) ; if( comments[1] != null ) { if( comments[1].length() > 0 ) { cursor.insertComment( prepareComment( comments[1] ) ) ;
ObjectName targetName = extractObjectName(cursor); String name = targetName.getKeyProperty("name"); cursor.insertComment("CHECK THAT THE TARGET GBEAN IS IN THE ANCESTOR SET OF THIS MODULE AND THAT THE NAME UNIQUELY IDENTIFIES IT"); cursor.insertElementWithText(NAME_QNAME2, name);
xo = cursor.getObject() ; if( xo == child ) { cursor.insertComment( SimpleNode.prepareComment( comments[0] ) ) ; cursor.toEndToken() ; break ; cursor.toNextToken() ; if( cursor.isStart() || cursor.isEnddoc() ) { cursor.insertComment( SimpleNode.prepareComment( comments[1] ) ) ;