protected RDFName getStateResource ( String state ) throws ResourceIndexException { if ( state == null ) { throw new ResourceIndexException ( "State cannot be null" ) ; } else if ( state . equals ( "A" ) ) { return MODEL . ACTIVE ; } else if ( state . equals ( "D" ) ) { return MODEL . DELETED ; } else if ( state . equals ( "I" ) ) { return MODEL . INACTIVE ; } else { throw new ResourceIndexException ( "Unrecognized state: " + state ) ; } }
Helper methods for creating RDF components