Skip to content
Snippets Groups Projects

Resolve "Detect the absence of # in rdf:ressource values"

1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
@@ -204,7 +204,14 @@ public abstract class CimXMLHandler extends SAXXMLHandler {
String resource = attribs.getValue( CimConstants.qualifiedRdfResource );
if( resource != null ) {
int p = resource.indexOf( "#" );
if( p != -1 ) {
if( p == -1 ) {
AbstractRiseClipseConsole.getConsole().error(
"The rdf:resource value of "
+ eReference.getContainerClass().getSimpleName()
+ "." + eReference.getName()
+ " is missing '#'" );
}
else {
// Ignore the URI before the # because we don't handle it
// TODO: handle it!
resource = resource.substring( p );
Loading