code: @Override
      public RelativeDayGranularity toGranularity(String name) {
  		if (RelativeDayGranularity.DAY.getName().equals(name)) {
  			return RelativeDayGranularity.DAY;
  		} else {
  			return null;
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see org.protempa.proposition.value.GranularityFactory#toGranularity(java.lang.String)