public Resource getResource( String id ) throws XMLDBException { for ( int i = 0; i < resources.size(); i++ ) if ( ( (String) resources.get( i ) ).equals( id ) ) { XMLResourceImpl r = new XMLResourceImpl( this, (String) resources.get( i ), null, indentXML, encoding ); r.setSAXDocEvents( this.saxDocumentEvents ); return r; } return null; }
public Resource getResource(String id) throws XMLDBException { if (childCollections == null) readCollection(); for (int i = 0; i < resources.size(); i++) if (((String) resources.get(i)).equals(id)) { XMLResourceImpl r = new XMLResourceImpl( this, -1, -1, (String) resources.get(i), null, indentXML, encoding); r.setSAXDocEvents(this.saxDocumentEvents); return r; } return null; }
    public Resource getResource( String id ) throws XMLDBException {        for ( int i = 0; i < resources.size(); i++ )            if ( ( (String) resources.get( i ) ).equals( id ) ) {                XMLResourceImpl r = new XMLResourceImpl( this,                    (String) resources.get( i ), null, indentXML, encoding );                r.setSAXDocEvents( this.saxDocumentEvents );                return r;            }        return null;    }