Removing debugging statements. NIHVIVO-1140

This commit is contained in:
bdc34 2010-10-06 21:51:57 +00:00
parent bba244d852
commit 5002c3d761

View file

@ -2,11 +2,8 @@
package edu.cornell.mannlib.vitro.webapp.beans;
import java.util.Date;
import java.util.Comparator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.Date;
/**
* a class representing a particular instance of an object property
@ -25,19 +22,6 @@ public class ObjectPropertyStatementImpl implements VitroTimeWindowedResource, O
private boolean subjectOriented = true; //is the range the item of interest?
private String description = null; //generated desc based on subjectOriented during sql query.
/*
fields in db:
id
domainId
rangeId
relationId
modTime
propertyId
sunrise
sunset
qualifier
*/
public ObjectPropertyStatementImpl() { }
public ObjectPropertyStatementImpl(String subjectUri, String propertyUri, String objectUri) {
@ -46,10 +30,10 @@ qualifier
objectURI = objectUri;
}
/* (non-Javadoc)
/* (non-Javadoc)
* @see edu.cornell.mannlib.vitro.webapp.beans.ObjectPropertyStatement#toString()
*/
public String toString(){
public String toString(){
String prop = (getProperty()!=null)?getProperty().getDomainPublic():"by propURI"+getPropertyURI();
String ran = (getObject()!= null)?getObject().getName():"objectURI:"+getObjectURI();
String dom = (getSubject()!= null)?getSubject().getName():"subjectURI:"+getSubjectURI();
@ -200,33 +184,14 @@ public String toString(){
this.propertyURI = URI;
}
/**
* Change the values of this object property statement object
* so that it is from the other side of the relation.
* This must be associative.
* This does NOT modify this.property
*
public void reflect(){
Individual tmp = getSubject();
setSubject(getObject());
setObject(tmp);
setSubjectURI(getSubject().getURI());
setObjectURI(getObject().getURI());
setSubjectOriented( !isSubjectOriented() );
}*/
/**
* Sorts entity object for display presentation.
* @author bdc34
*/
public static class DisplayComparator implements Comparator{
private static final Log log = LogFactory.getLog(DisplayComparator.class.getName());
public int compare(Object o1, Object o2) {
Individual ent1 = ((ObjectPropertyStatement) o1).getSubject();
Individual ent2 = ((ObjectPropertyStatement) o2).getSubject();
log.debug("Comparing "+ent1.getName()+" to"+ent2.getName());
return ent1.getName().compareTo(ent2.getName());
}
}