From: <rv...@us...> - 2009-06-25 14:09:05
|
Revision: 122 http://treebase.svn.sourceforge.net/treebase/?rev=122&view=rev Author: rvos Date: 2009-06-25 13:38:28 +0000 (Thu, 25 Jun 2009) Log Message: ----------- Changed base URI handling Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlDocumentConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceMesquite.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNexml.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceRDFa.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java 2009-06-25 13:38:28 UTC (rev 122) @@ -23,6 +23,7 @@ import java.io.File; import java.util.Collection; +import java.util.Properties; import org.cipres.treebase.domain.study.Study; import org.cipres.treebase.event.ProgressionListener; @@ -66,6 +67,7 @@ * @return a serialization of the supplied NexusDataSet */ String serialize(NexusDataSet pNexusDataSet); + String serialize(NexusDataSet pNexusDataSet, Properties pProperties); /** * Write the NexusDataSet to a string that represents the object. @@ -76,5 +78,7 @@ * @return a serialization of the supplied Study */ String serialize(Study pStudy); + String serialize(Study pStudy, Properties pProperties); + } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlDocumentConverter.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlDocumentConverter.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlDocumentConverter.java 2009-06-25 13:38:28 UTC (rev 122) @@ -26,6 +26,11 @@ super(study, taxonLabelHome, document); } + public NexmlDocumentConverter(Study study, TaxonLabelHome taxonLabelHome, + Document document,String baseURI) { + super(study, taxonLabelHome, document,baseURI); + } + /** * * @param pDocument Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java 2009-06-25 13:38:28 UTC (rev 122) @@ -23,8 +23,10 @@ public class NexmlObjectConverter extends AbstractNexusConverter { protected static URI mDCURI; protected static URI mPrismURI; + protected URI mBaseURI; private static String mDCURIString = "http://purl.org/dc/elements/1.1/"; private static String mPrismURIString = "http://prismstandard.org/namespaces/1.2/basic/"; + private static String mBaseURIString = "http://purl.org/PHYLO/TREEBASE/PHYLOWS/"; private static String mDCIdentifier = "dc:identifier"; public static String TreeBASE2Prefix = "TreeBASE2"; private Document mDocument; @@ -34,18 +36,30 @@ * @param study * @param taxonLabelHome */ - public NexmlObjectConverter(Study study, TaxonLabelHome taxonLabelHome, Document document) { + public NexmlObjectConverter(Study study, TaxonLabelHome taxonLabelHome, Document document, String baseURI) { try { mDCURI = new URI(mDCURIString); mPrismURI = new URI(mPrismURIString); + if ( null != baseURI ) { + mBaseURI = new URI(baseURI); + } + else { + mBaseURI = new URI(mBaseURIString); + } } catch (URISyntaxException e) { e.printStackTrace(); - } + } + document.setBaseURI(mBaseURI); setTaxonLabelHome(taxonLabelHome); setStudy(study); setDocument(document); - } + } + public NexmlObjectConverter(Study study, TaxonLabelHome taxonLabelHome, Document document) { + this(study,taxonLabelHome,document,null); + } + + /** * * @param tbPersistable @@ -64,11 +78,12 @@ protected void attachTreeBaseID(Annotatable annotatable,TBPersistable tbPersistable,Class<?> persistableClass) { if ( null != tbPersistable.getId() ) { attachAnnotation(mDCIdentifier,makeNamespacedID(tbPersistable,persistableClass),mDCURI,annotatable); - String uriString = "http://localhost:8080/treebase-web/PhyloWS/" + makeNamespacedID(tbPersistable,persistableClass); + String uriString = mBaseURI.toString() + makeNamespacedID(tbPersistable,persistableClass); try { annotatable.addAnnotationValue("dc:relation",mDCURI, new URI(uriString)); - } catch ( Exception e ) { - + } catch (URISyntaxException e) { + // TODO Auto-generated catch block + e.printStackTrace(); } } } @@ -165,5 +180,13 @@ character = iterator.next(); } return result.toString(); + } + + public URI getBaseURI() { + return mBaseURI; + } + + public void setBaseURI(URI baseURI) { + mBaseURI = baseURI; } } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceMesquite.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceMesquite.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceMesquite.java 2009-06-25 13:38:28 UTC (rev 122) @@ -22,6 +22,7 @@ import java.io.File; import java.util.Collection; +import java.util.Properties; import org.apache.log4j.Logger; @@ -222,4 +223,14 @@ return null; } + public String serialize(NexusDataSet nexusDataSet, Properties properties) { + // TODO Auto-generated method stub + return null; + } + + public String serialize(Study study, Properties properties) { + // TODO Auto-generated method stub + return null; + } + } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java 2009-06-25 13:38:28 UTC (rev 122) @@ -22,6 +22,7 @@ import java.io.File; import java.util.Collection; +import java.util.Properties; import org.apache.log4j.Logger; @@ -174,4 +175,14 @@ return null; } + public String serialize(NexusDataSet nexusDataSet, Properties properties) { + // TODO Auto-generated method stub + return null; + } + + public String serialize(Study study, Properties properties) { + // TODO Auto-generated method stub + return null; + } + } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNexml.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNexml.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNexml.java 2009-06-25 13:38:28 UTC (rev 122) @@ -1,7 +1,10 @@ package org.cipres.treebase.service.nexus; import java.io.File; +import java.net.URI; +import java.net.URISyntaxException; import java.util.Collection; +import java.util.Properties; import javax.xml.parsers.ParserConfigurationException; @@ -63,6 +66,7 @@ } public String serialize(NexusDataSet nexusDataSet) { + /* Document document = null; try { document = DocumentFactory.createDocument(); @@ -71,9 +75,12 @@ } NexmlDocumentConverter ndc = new NexmlDocumentConverter(null,getTaxonLabelHome(),document); return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString(); + */ + return serialize(nexusDataSet,null); } public String serialize(Study study) { + /* Document document = null; try { document = DocumentFactory.createDocument(); @@ -82,6 +89,8 @@ } NexmlDocumentConverter ndc = new NexmlDocumentConverter(study,getTaxonLabelHome(),document); return ndc.fromTreeBaseToXml(study).getXmlString(); + */ + return serialize(study,null); } public TaxonLabelHome getTaxonLabelHome() { @@ -91,5 +100,59 @@ public void setTaxonLabelHome(TaxonLabelHome taxonLabelHome) { mTaxonLabelHome = taxonLabelHome; } + + protected NexmlDocumentConverter getNexmlDocumentConverter(Study study,Properties properties) { + String baseURI = null; + if ( null != properties ) { + baseURI = properties.getProperty("nexml.uri.base"); + } + Document document = null; + try { + document = DocumentFactory.createDocument(); + document.setBaseURI(new URI(baseURI));//NPE + } catch (URISyntaxException e) { + e.printStackTrace(); + } catch (ParserConfigurationException e) { + e.printStackTrace(); + } + NexmlDocumentConverter ndc = new NexmlDocumentConverter(study,getTaxonLabelHome(),document,baseURI); + return ndc; + } + public String serialize(NexusDataSet nexusDataSet, Properties properties) { + /* + String baseURI = null; + if ( null != properties ) { + baseURI = properties.getProperty("nexml.uri.base"); + } + Document document = null; + try { + document = DocumentFactory.createDocument(); + } catch (ParserConfigurationException e) { + e.printStackTrace(); + } + NexmlDocumentConverter ndc = new NexmlDocumentConverter(null,getTaxonLabelHome(),document,baseURI); + */ + NexmlDocumentConverter ndc = this.getNexmlDocumentConverter(null, properties); + return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString(); + } + + public String serialize(Study study, Properties properties) { + /* + String baseURI = null; + if ( null != properties ) { + baseURI = properties.getProperty("nexml.uri.base"); + } + Document document = null; + try { + document = DocumentFactory.createDocument(); + } catch (ParserConfigurationException e) { + e.printStackTrace(); + } + NexmlDocumentConverter ndc = new NexmlDocumentConverter(study,getTaxonLabelHome(),document,baseURI); + */ + NexmlDocumentConverter ndc = this.getNexmlDocumentConverter(study, properties); + return ndc.fromTreeBaseToXml(study).getXmlString(); + } + } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceRDFa.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceRDFa.java 2009-06-25 13:32:10 UTC (rev 121) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceRDFa.java 2009-06-25 13:38:28 UTC (rev 122) @@ -4,6 +4,7 @@ package org.cipres.treebase.service.nexus; import java.io.ByteArrayInputStream; +import java.util.Properties; import javax.xml.parsers.ParserConfigurationException; @@ -28,7 +29,12 @@ * */ public class NexusServiceRDFa extends NexusServiceNexml { + public String serialize(NexusDataSet nexusDataSet,Properties properties) { + NexmlDocumentConverter ndc = getNexmlDocumentConverter(null, properties); + return transform(ndc.fromTreeBaseToXml(nexusDataSet).getXmlString()); + } public String serialize(NexusDataSet nexusDataSet) { + /* Document document = null; try { document = DocumentFactory.createDocument(); @@ -38,9 +44,17 @@ NexmlDocumentConverter ndc = new NexmlDocumentConverter(null,getTaxonLabelHome(),document); String NeXML = ndc.fromTreeBaseToXml(nexusDataSet).getXmlString(); return transform(NeXML); + */ + NexmlDocumentConverter ndc = getNexmlDocumentConverter(null, null); + return transform(ndc.fromTreeBaseToXml(nexusDataSet).getXmlString()); } + public String serialize(Study study,Properties properties) { + NexmlDocumentConverter ndc = getNexmlDocumentConverter(study, properties); + return transform(ndc.fromTreeBaseToXml(study).getXmlString()); + } public String serialize(Study study) { + /* Document document = null; try { document = DocumentFactory.createDocument(); @@ -50,6 +64,9 @@ NexmlDocumentConverter ndc = new NexmlDocumentConverter(study,getTaxonLabelHome(),document); String NeXML = ndc.fromTreeBaseToXml(study).getXmlString(); return transform(NeXML); + */ + NexmlDocumentConverter ndc = getNexmlDocumentConverter(study, null); + return transform(ndc.fromTreeBaseToXml(study).getXmlString()); } private String transform(String input) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2009-11-04 16:51:01
|
Revision: 246 http://treebase.svn.sourceforge.net/treebase/?rev=246&view=rev Author: rvos Date: 2009-11-04 16:50:37 +0000 (Wed, 04 Nov 2009) Log Message: ----------- Removed outdated CIPRES/SDSC disclaimers Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/Constants.java trunk/treebase-core/src/main/java/org/cipres/treebase/ContextManager.java trunk/treebase-core/src/main/java/org/cipres/treebase/RangeExpression.java trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java trunk/treebase-core/src/main/java/org/cipres/treebase/Version.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Action.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ActionParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AddMetaDataAction.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AlternationParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AnalysisSectionParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentSequenceParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuthorParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxData.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxiliaryDataParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CheckMatrixNChars.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CommitStudy.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ConcatenationParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Filter.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/FilterParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/FilterTrivial.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Generator.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/GenericAction.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/GenericAuxDataAction.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/HeadlineParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/HistoryParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/IOParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/InputMatrixParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/LazyList.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/MatrixParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/MultipleMatchError.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/OptionalParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/OutputTreeParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/RDParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/RDParserArgumentFailureException.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/RDParserFailure.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/RDParserResult.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/RepeatedParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/SideCondition.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/SimpleSectionParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/SingleTokenParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/SpecificHeadlineParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/StudyItemParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/StudyParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Token.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/TokenReader.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/TokenSequenceParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/TreeStudyMapping.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/TreebaseStreamTokenizer.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Value.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueAnalysisSection.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueAssignment.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueAssignmentMap.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueHeadline.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueNone.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueSection.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueSequence.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueStudy.java trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ValueToken.java trunk/treebase-core/src/main/java/org/cipres/treebase/core/CoreServiceLauncher.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/AbstractDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/admin/HelpDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/admin/PersonDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/admin/UserDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/CompoundElementJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/ContinuousMatrixElementJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/ContinuousMatrixJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/DiscreteMatrixElementJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/DiscreteMatrixJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/ItemDefinitionJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/MatrixColumnJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/MatrixJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/MatrixRowJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/NexusDataSetJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/jdbc/PhyloTreeJDBC.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/CharacterDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/ItemDefinitionDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixColumnDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixDataTypeDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixElementDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixRowDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/RowSegmentDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/AlgorithmDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/AnalysisDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/AnalysisStepDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/AnalyzedDataDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/CitationDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/CitationStatusDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/StudyDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/StudyStatusDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/SubmissionDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonLabelDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/dao/tree/PhyloTreeDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractQueryCriteria.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/DomainHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/TBPersistable.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/EmailAddress.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/EmailAddressPropertyEditor.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/Help.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/HelpHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/HelpService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/Person.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/PersonHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/PersonService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/RemotePersonServiceImp.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/User.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/UserHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/UserRole.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/admin/UserService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/AncStateSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/AncestralState.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CSTree.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CSTreeNode.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharGroup.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharPartition.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharWeight.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharWeightSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CodonPositionSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ColumnRange.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CompoundMatrixElement.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ContinuousAncState.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ContinuousChar.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ContinuousMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ContinuousMatrixElement.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DiscreteAncState.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DiscreteChar.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DiscreteCharState.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DiscreteMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DiscreteMatrixElement.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DistanceMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/DistanceMatrixElement.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ExcludedCharSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/GapMode.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/GeneticCode.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/GeneticCodeRecord.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/GeneticCodeSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/IntegerCharWeight.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ItemDefinition.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ItemDefinitionHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/ItemValue.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixColumn.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixColumnHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixColumnService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixDataType.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixDataTypeHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixElement.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixElementHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixElementService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixKind.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixRow.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixRowHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixRowService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/PhyloChar.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/PolyTCount.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/PredefinedCharSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/PredefinedCharType.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/RealCharWeight.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/RowSegment.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/RowSegmentHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/RowSegmentService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/SequenceMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StandardMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StateChangeSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StateFormat.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StateModifier.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StateSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StepMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/StepMatrixElement.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/TypeSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserDefinedCharSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserType.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserTypeRecord.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/AbstractNexusConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusDataSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusParserConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusParserFinder.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/mesquite/ColumnRangeConvertHelper.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/mesquite/MesquiteContinuousMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/mesquite/MesquiteConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/mesquite/MesquiteDistanceMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/mesquite/MesquiteMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/mesquite/MesquiteStandardMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/ncl/NCLContinuousMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/ncl/NCLDistanceMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/ncl/NCLMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/ncl/NCLNexusConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/ncl/NCLStandardMatrixConverter.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/MatrixSearchResults.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/SearchResultsFrozen.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/SearchResultsType.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/SearchService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/StudySearchResults.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/TaxonSearchResults.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/TreeSearchResults.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/search/UnknownSearchResultsTypeError.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/Algorithm.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AlgorithmHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/Analysis.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalysisHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalysisService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalysisStep.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalysisStepHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalysisStepService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedData.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedDataHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedDataService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedMatrixHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedTree.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/AnalyzedTreeHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/ArticleCitation.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/BookCitation.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/Citation.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/CitationHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/CitationService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/CitationStatus.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/CitationStatusHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/DistanceAlgorithm.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/InBookCitation.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/LikelihoodAlgorithm.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/OtherAlgorithm.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/ParsimonyAlgorithm.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/Software.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/Study.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyCriteria.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyStatus.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyStatusHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/Submission.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/SubmissionHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/SubmissionService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/UploadFileResult.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/LSIDTaxonLink.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/SpecimenLabel.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/Taxon.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonAuthority.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelGroup.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelPartition.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLink.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonVariant.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TextTaxonLink.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/NodeAttribute.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTreeHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTreeNode.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTreeService.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeAttribute.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeBlock.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeGroup.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeKind.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeNode.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeNodeEdge.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreePartition.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeQuality.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/TreeType.java trunk/treebase-core/src/main/java/org/cipres/treebase/event/ProgressionListener.java trunk/treebase-core/src/main/java/org/cipres/treebase/exception/UnimplementedMethodError.java trunk/treebase-core/src/main/java/org/cipres/treebase/framework/ExecutionResult.java trunk/treebase-core/src/main/java/org/cipres/treebase/framework/TSVFileParser.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/AbstractService.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/AbstractServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/admin/HelpServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/admin/PersonServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/admin/UserServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/matrix/CharacterServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/matrix/MatrixColumnServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/matrix/MatrixElementServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/matrix/MatrixRowServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/matrix/MatrixServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/matrix/RowSegmentServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceMesquite.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceRDFa.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/search/SearchServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/AnalysisServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/AnalysisStepServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/AnalyzedDataServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/CitationServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/StudyServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/SubmissionServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/taxon/TaxonLabelServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/tree/PhyloTreeServiceImpl.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/AbstractStandalone.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/AnnotateTree.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/AuxiliaryDataImporter.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/AuxiliaryDataImporterInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/BulkUpload.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/CitationDataImporter.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/CitationDataImporterInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/CreateTaxon.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/CreateTaxonVariant.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/DeleteObject.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/DeleteObjectInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/DeleteStudy.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/DestroySubmission.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/DidNexusFile.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/GetOpts.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/LoadTaxonData.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/MergeDuplicateTaxonLabels.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/MergeDuplicateTaxonLabelsInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/ObjectDeleter.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/ObjectDeleterFactory.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/ObjectGroupMerger.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/OptionSettings.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/PseudoSubmission.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/PutbackReader.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/RawNexusImporter.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/RawNexusImporterInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/RegenerateTaxonLabelSetsInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/RepatriateAuthors.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/RepatriateData.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/Standalone.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/TaxonDeleter.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/UnixOptions.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/WhatsMissing.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/WhatsMissingInterface.java trunk/treebase-core/src/main/java/org/cipres/treebase/util/package.html Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/Constants.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/Constants.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/Constants.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,24 +1,3 @@ -/* - * CIPRES Copyright (c) 2009, The Regents of the University of California All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are permitted - * provided that the following conditions are met: * Redistributions of source code must retain the - * above copyright notice, this list of conditions and the following disclaimer. * Redistributions - * in binary form must reproduce the above copyright notice, this list of conditions and the - * following disclaimer in the documentation and/or other materials provided with the distribution. * - * Neither the name of the University of California or the San Diego Supercomputer Center nor the - * names of its contributors may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY - * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ package org.cipres.treebase; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/ContextManager.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/ContextManager.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/ContextManager.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2005 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/RangeExpression.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/RangeExpression.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/RangeExpression.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2005 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/Version.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/Version.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/Version.java 2009-11-04 16:50:37 UTC (rev 246) @@ -39,6 +39,6 @@ * */ public class Version { - public static final String VCSID = "##VCSID##"; - public static final String VCSDateString = "##VCSDATESTRING##"; + public static final String VCSID = "245"; + public static final String VCSDateString = "2009-11-04 15:03:06 +0000 (Wed, 04 Nov 2009)"; } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Action.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Action.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Action.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2009 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase.auxdata; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ActionParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ActionParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ActionParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AddMetaDataAction.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AddMetaDataAction.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AddMetaDataAction.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2009 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase.auxdata; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AlternationParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AlternationParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AlternationParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AnalysisSectionParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AnalysisSectionParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AnalysisSectionParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentSequenceParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentSequenceParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AssignmentSequenceParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuthorParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuthorParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuthorParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxData.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxData.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxData.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxiliaryDataParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxiliaryDataParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/AuxiliaryDataParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase.auxdata; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CheckMatrixNChars.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CheckMatrixNChars.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CheckMatrixNChars.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2009 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase.auxdata; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CommitStudy.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CommitStudy.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/CommitStudy.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008, 2009 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ package org.cipres.treebase.auxdata; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ConcatenationParser.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ConcatenationParser.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/ConcatenationParser.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that the above copyright notice, this paragraph and the following two - * paragraphs appear in all copies. - * - * Permission to incorporate this software into commercial products may be obtained by contacting - * us: http://www.phylo.org/contactUs.html - * - * The software program and documentation are supplied "as is". In no event shall the CIPRES project - * be liable to any party for direct, indirect, special, incidental, or consequential damages, - * including lost profits, arising out of the use of this software and its documentation, even if - * the CIPRES project has been advised of the possibility of such damage. The CIPRES project - * specifically disclaims any warranties, including, but not limited to, the implied warranties of - * merchantability and fitness for a particular purpose. The CIPRES project has no obligations to - * provide maintenance, support, updates, enhancements, or modifications. - */ Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Filter.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Filter.java 2009-11-04 15:03:06 UTC (rev 245) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/auxdata/Filter.java 2009-11-04 16:50:37 UTC (rev 246) @@ -1,22 +1,3 @@ -/* - * Copyright 2008 CIPRES project. http://www.phylo.org/ All Rights Reserved. - * - * Permission to use, copy, modify, and distribute this software and its documentation for - * educational, research and non-profit purposes, without fee, and without a written agreement is - * hereby granted, provided that ... [truncated message content] |
From: <yo...@us...> - 2010-01-19 14:30:06
|
Revision: 468 http://treebase.svn.sourceforge.net/treebase/?rev=468&view=rev Author: youjun Date: 2010-01-19 14:29:50 +0000 (Tue, 19 Jan 2010) Log Message: ----------- delete cipres framework delete ncl stuffs Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusParserFinder.java Removed Paths: ------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/ncl/ trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusParserFinder.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusParserFinder.java 2010-01-15 18:47:28 UTC (rev 467) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusParserFinder.java 2010-01-19 14:29:50 UTC (rev 468) @@ -7,7 +7,7 @@ import org.cipres.treebase.domain.matrix.MatrixDataTypeHome; import org.cipres.treebase.domain.taxon.TaxonLabelHome; import org.cipres.treebase.service.nexus.NexusServiceMesquite; -import org.cipres.treebase.service.nexus.NexusServiceNCL; +//import org.cipres.treebase.service.nexus.NexusServiceNCL; /** * NexusParserFinder.java @@ -43,14 +43,14 @@ */ private NexusService getNexusServiceImpl() { if (mNexusServiceImpl == null) { - if (PARSER_NCL.compareToIgnoreCase(getNexusParserStr()) == 0) { - NexusServiceNCL serviceNCL = new NexusServiceNCL(); + //if (PARSER_NCL.compareToIgnoreCase(getNexusParserStr()) == 0) { + //NexusServiceNCL serviceNCL = new NexusServiceNCL(); - serviceNCL.setMatrixDataTypeHome(getMatrixDataTypeHome()); - serviceNCL.setTaxonLabelHome(getTaxonLabelHome()); + //serviceNCL.setMatrixDataTypeHome(getMatrixDataTypeHome()); + //serviceNCL.setTaxonLabelHome(getTaxonLabelHome()); - mNexusServiceImpl = serviceNCL; - } else { + //mNexusServiceImpl = serviceNCL; + //} else { NexusServiceMesquite serviceMesquite = new NexusServiceMesquite(); serviceMesquite.setItemDefinitionHome(getItemDefinitionHome()); @@ -59,7 +59,7 @@ mNexusServiceImpl = serviceMesquite; - } + //} } return mNexusServiceImpl; } Deleted: trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java 2010-01-15 18:47:28 UTC (rev 467) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/nexus/NexusServiceNCL.java 2010-01-19 14:29:50 UTC (rev 468) @@ -1,169 +0,0 @@ - -package org.cipres.treebase.service.nexus; - -import java.io.File; -import java.util.Collection; -import java.util.Properties; - -import org.apache.log4j.Logger; - -import org.cipres.treebase.domain.DomainHome; -import org.cipres.treebase.domain.matrix.MatrixDataTypeHome; -import org.cipres.treebase.domain.nexus.NexusDataSet; -import org.cipres.treebase.domain.nexus.NexusService; -import org.cipres.treebase.domain.nexus.ncl.NCLNexusConverter; -import org.cipres.treebase.domain.study.Study; -import org.cipres.treebase.domain.taxon.TaxonLabelHome; -import org.cipres.treebase.event.ProgressionListener; -import org.cipres.treebase.service.AbstractServiceImpl; - -/** - * NexusServiceNCL.java - * - * Created on Apr 21, 2006 - * - * @author Jin Ruan - * - */ -public class NexusServiceNCL extends AbstractServiceImpl implements NexusService { - private static final Logger LOGGER = Logger.getLogger(NexusServiceNCL.class); - - private TaxonLabelHome mTaxonLabelHome; - private MatrixDataTypeHome mMatrixDataTypeHome; - - /** - * Constructor. - */ - public NexusServiceNCL() { - super(); - } - - /** - * Return the TaxonLabelHome field. - * - * @return TaxonLabelHome mTaxonLabelHome - */ - private TaxonLabelHome getTaxonLabelHome() { - return mTaxonLabelHome; - } - - /** - * Set the TaxonLabelHome field. - */ - public void setTaxonLabelHome(TaxonLabelHome pNewTaxonLabelHome) { - mTaxonLabelHome = pNewTaxonLabelHome; - } - - /** - * Return the MatrixDataTypeHome field. - * - * @return MatrixDataTypeHome mMatrixDataTypeHome - */ - private MatrixDataTypeHome getMatrixDataTypeHome() { - return mMatrixDataTypeHome; - } - - /** - * Set the MatrixDataTypeHome field. - */ - public void setMatrixDataTypeHome(MatrixDataTypeHome pNewMatrixDataTypeHome) { - mMatrixDataTypeHome = pNewMatrixDataTypeHome; - } - - /** - * - * @see org.cipres.treebase.service.AbstractServiceImpl#getDomainHome() - */ - @Override - protected DomainHome getDomainHome() { - return null; // do not need persistence service. - } - - /** - * Returns true only if all files exist. - * - * @param pNexusFiles - * @return - */ - private boolean checkFiles(Collection<File> pNexusFiles) { - if (pNexusFiles == null) { - return false; - } - - boolean hasError = false; - for (File file : pNexusFiles) { - if (!file.exists()) { - if (LOGGER.isInfoEnabled()) { - LOGGER.info(" input file does not exist:" + file.getAbsolutePath()); //$NON-NLS-1$ - } - hasError = true; - } - } - - return !hasError; - } - - /** - * - * @see org.cipres.treebase.domain.nexus.NexusService#parseNexus(org.cipres.treebase.domain.study.Study, java.util.Collection, org.cipres.treebase.event.ProgressionListener) - */ - public NexusDataSet parseNexus(Study pStudy, Collection<File> pNexusFiles, ProgressionListener pListener) { - - if (pStudy == null) { - if (LOGGER.isInfoEnabled()) { - LOGGER - .info("parseNexus - Study is null"); //$NON-NLS-1$ - } - return null; - } - - if (!checkFiles(pNexusFiles)) { - return null; - } - - NexusDataSet data = new NexusDataSet(); - - NCLNexusConverter converter = new NCLNexusConverter(); - converter.setMatrixDataTypeHome(getMatrixDataTypeHome()); - converter.setTaxonLabelHome(getTaxonLabelHome()); - - converter.processLoadFile(pNexusFiles, pStudy, data, pListener); - - return data; - } - - /** - * - * @see org.cipres.treebase.domain.nexus.NexusService#parseNexus(org.cipres.treebase.domain.study.Study, java.io.File) - */ - public NexusDataSet parseNexus(Study pStudy, File pNexusFile) { - //TODO: parseNexus - return null; - } - - @Override - public Class defaultResultClass() { - return null; - } - - public String serialize(NexusDataSet nexusDataSet) { - // TODO Auto-generated method stub - return null; - } - - public String serialize(Study study) { - // TODO Auto-generated method stub - return null; - } - - public String serialize(NexusDataSet nexusDataSet, Properties properties) { - // TODO Auto-generated method stub - return null; - } - - public String serialize(Study study, Properties properties) { - // TODO Auto-generated method stub - return null; - } - -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2010-02-15 15:29:48
|
Revision: 506 http://treebase.svn.sourceforge.net/treebase/?rev=506&view=rev Author: rvos Date: 2010-02-15 15:29:39 +0000 (Mon, 15 Feb 2010) Log Message: ----------- Added logging messages. Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/PhyloWSPath.java trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/PhyloWSPath.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/PhyloWSPath.java 2010-02-15 15:14:49 UTC (rev 505) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/PhyloWSPath.java 2010-02-15 15:29:39 UTC (rev 506) @@ -3,11 +3,13 @@ import java.net.MalformedURLException; import java.net.URL; +import org.apache.log4j.Logger; import org.cipres.treebase.domain.TBPersistable; public class PhyloWSPath { private NamespacedGUID mNamespacedGUID; private Package mPackage; + private static final Logger LOGGER = Logger.getLogger(PhyloWSPath.class); public StringBuilder getPath(StringBuilder sb) { String[] packagePathFragments = mPackage.getName().split("\\."); @@ -30,10 +32,12 @@ public URL getPurl () { StringBuilder sb = new StringBuilder(TreebaseUtil.getPurlDomain()); sb = getPath(sb).append(mNamespacedGUID.toString()); + LOGGER.info(sb); URL url = null; try { url = new URL(sb.toString()); } catch (MalformedURLException e) { + LOGGER.warn("MalformedURLException: "+e.getMessage()); e.printStackTrace(); } return url; Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java 2010-02-15 15:14:49 UTC (rev 505) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java 2010-02-15 15:29:39 UTC (rev 506) @@ -17,6 +17,7 @@ import java.util.Properties; import java.util.TimeZone; +import org.apache.log4j.Logger; import org.cipres.treebase.domain.study.Citation; import org.cipres.treebase.domain.study.Study; import org.cipres.treebase.framework.ExecutionResult; @@ -39,6 +40,7 @@ public static final String ANEMPTYSPACE = " "; public static final String LINESEP = System.getProperty("line.separator"); public static final int citationMaxLength = 5000; + private static final Logger LOGGER = Logger.getLogger(TreebaseUtil.class); private TreebaseUtil() { super(); @@ -438,10 +440,14 @@ String domainName = ""; try { properties.load( new FileInputStream("treebase.properties") ); + LOGGER.info("properties loaded successfully"); domainName = properties.getProperty("treebase.purl.domain"); + LOGGER.info("domain name: "+domainName); } catch (FileNotFoundException e) { + LOGGER.warn("FileNotFoundException: " + e.getMessage()); e.printStackTrace(); } catch (IOException e) { + LOGGER.warn("IOException: "+e.getMessage()); e.printStackTrace(); } return domainName; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2010-03-12 18:25:10
|
Revision: 553 http://treebase.svn.sourceforge.net/treebase/?rev=553&view=rev Author: rvos Date: 2010-03-12 18:24:41 +0000 (Fri, 12 Mar 2010) Log Message: ----------- Added findByJournal search method, which is needed so that we can create RSS feeds for journals. Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/StudyDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyHome.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyService.java trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/StudyServiceImpl.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/StudyDAO.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/StudyDAO.java 2010-03-12 11:38:21 UTC (rev 552) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/dao/study/StudyDAO.java 2010-03-12 18:24:41 UTC (rev 553) @@ -19,6 +19,7 @@ import org.cipres.treebase.domain.taxon.TaxonLabelHome; import org.cipres.treebase.domain.tree.PhyloTree; import org.hibernate.Criteria; +import org.hibernate.Query; import org.hibernate.SQLQuery; import org.hibernate.criterion.Expression; import org.hibernate.criterion.Restrictions; @@ -364,5 +365,19 @@ return studies; } + /* + * (non-Javadoc) + * @see org.cipres.treebase.domain.study.StudyHome#findByJournal(java.lang.String) + */ + public Collection<Study> findByJournal(String pJournal) { + Collection<Study> returnVal = new ArrayList<Study>(); + if (pJournal != null) { + Query q = getSession().createQuery("select study from Citation where lower(journal) like :mStr"); + q.setString("mStr", pJournal.trim().toLowerCase() + '%'); + returnVal = q.list(); + } + return returnVal; + } + } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyHome.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyHome.java 2010-03-12 11:38:21 UTC (rev 552) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyHome.java 2010-03-12 18:24:41 UTC (rev 553) @@ -45,6 +45,14 @@ * @return Set<Study> */ Collection<Study> findByAuthor(Person pAuthor); + + /** + * Find studies by journal name. + * + * @param pJournal + * @return Collection<Study> + */ + Collection<Study> findByJournal(String pJournal); /** * Find studies submitted by an user. Return an empty set if no match is found. Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyService.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyService.java 2010-03-12 11:38:21 UTC (rev 552) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/study/StudyService.java 2010-03-12 18:24:41 UTC (rev 553) @@ -50,6 +50,15 @@ * @return Collection<Study> */ Collection<Study> findByName(String pStudyName, boolean pCaseSensitive); + + + /** + * Find studies by journal name. Return an empty set if no match is found. + * @param pJournal + * @param pCaseSensitive + * @return Collection<Study> + */ + Collection<Study> findByJournal(String pJournal, boolean pCaseSensitive); /** * Advanced study query by criteria. Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/StudyServiceImpl.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/StudyServiceImpl.java 2010-03-12 11:38:21 UTC (rev 552) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/StudyServiceImpl.java 2010-03-12 18:24:41 UTC (rev 553) @@ -8,6 +8,7 @@ import java.io.IOException; import java.sql.Clob; import java.util.Collection; +import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Set; @@ -529,4 +530,9 @@ public Class defaultResultClass() { return Study.class; } + + public Collection<Study> findByJournal(String pJournal, + boolean pCaseSensitive) { + return getStudyHome().findByJournal(pJournal); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yo...@us...> - 2010-03-30 15:54:56
|
Revision: 660 http://treebase.svn.sourceforge.net/treebase/?rev=660&view=rev Author: youjun Date: 2010-03-30 15:54:49 +0000 (Tue, 30 Mar 2010) Log Message: ----------- clean taxonlabels after delete a tree Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/tree/PhyloTreeDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/dao/tree/PhyloTreeDAO.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/tree/PhyloTreeDAO.java 2010-03-29 19:34:59 UTC (rev 659) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/dao/tree/PhyloTreeDAO.java 2010-03-30 15:54:49 UTC (rev 660) @@ -18,6 +18,7 @@ import org.cipres.treebase.domain.study.SubmissionHome; import org.cipres.treebase.domain.taxon.TaxonLabel; import org.cipres.treebase.domain.taxon.TaxonLabelHome; +import org.cipres.treebase.domain.taxon.TaxonLabelSet; import org.cipres.treebase.domain.taxon.TaxonVariant; import org.cipres.treebase.domain.tree.PhyloTree; import org.cipres.treebase.domain.tree.PhyloTreeHome; @@ -124,7 +125,9 @@ block.removePhyloTree(pTree); if (block.isEmpty()) { + TaxonLabelSet tSet=block.getTaxonLabelSet(); deleteTreeBlock(block); + getTaxonLabelHome().clean(tSet); } } @@ -149,16 +152,18 @@ // getHibernateTemplate().delete(data); } - + + Set<TaxonLabel> tSet=pTree.getAllTaxonLabels(); // Delete by direct JDBC: // * Tree nodes // ** for each tree node, node attribute. // ** (TODO) NodeEdge - PhyloTreeJDBC.deletePhyloTreeNodeSQL(pTree, getSession()); + //PhyloTreeJDBC.deletePhyloTreeNodeSQL(pTree, getSession()); // cascade delete by hibernate: // * tree atrribute getHibernateTemplate().delete(pTree); + getTaxonLabelHome().clean(new ArrayList<TaxonLabel>(tSet)); } /** Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java 2010-03-29 19:34:59 UTC (rev 659) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java 2010-03-30 15:54:49 UTC (rev 660) @@ -1,6 +1,7 @@ package org.cipres.treebase.domain.taxon; import java.net.URI; +import java.util.Collections; import java.util.List; import java.util.Set; @@ -30,6 +31,7 @@ import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; import org.hibernate.annotations.Index; +import org.hibernate.annotations.IndexColumn; /** * TaxonLabel usually associates with one Taxon. If it does not, it usually means the referred @@ -57,7 +59,7 @@ private TaxonVariant mTaxonVariant; private Study mStudy; private Submission mSubmission; - + private Set<TaxonLabelSet> mTaxonLabelSet; /** * Constructor. */ @@ -207,8 +209,28 @@ } return null; } + + /** + * Return the TaxonLabelSet field. + * + * @return List<PhyloTaxonLabel> + */ + @ManyToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}) + @JoinTable(name = "TaxonLabelSET_TaxonLabel", joinColumns = {@JoinColumn(name = "TaxonLabel_ID")}, inverseJoinColumns = @JoinColumn(name = "TaxonLabelSet_ID")) + protected Set<TaxonLabelSet> getTaxonLabelSet() { + return mTaxonLabelSet; + } + /** + * Set the TaxonLabelSet field. + */ + protected void setTaxonLabelSet(Set<TaxonLabelSet> pTaxonLabelSet) { + mTaxonLabelSet = pTaxonLabelSet; + } + + + /** * Return the taxon name if it available. */ @Transient Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java 2010-03-29 19:34:59 UTC (rev 659) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java 2010-03-30 15:54:49 UTC (rev 660) @@ -407,7 +407,7 @@ * @return Set<TreeNode> */ //@OneToMany(mappedBy = "tree", cascade = {CascadeType.MERGE, CascadeType.PERSIST}, fetch = FetchType.LAZY) - @OneToMany(mappedBy = "tree", cascade = {CascadeType.MERGE, CascadeType.PERSIST}) + @OneToMany(mappedBy = "tree", cascade = {CascadeType.ALL}) //@Fetch(FetchMode.SUBSELECT) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "treeCache") //@Loader(namedQuery="loadNodes") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yo...@us...> - 2010-04-22 18:28:34
|
Revision: 692 http://treebase.svn.sourceforge.net/treebase/?rev=692&view=rev Author: youjun Date: 2010-04-22 18:28:28 +0000 (Thu, 22 Apr 2010) Log Message: ----------- fix: Analysis download scrambles taxon labels - ID: 2970700 Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterMatrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserDefinedCharSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelSet.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java 2010-04-16 17:33:35 UTC (rev 691) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseUtil.java 2010-04-22 18:28:28 UTC (rev 692) @@ -528,7 +528,7 @@ } } pBuilder - .append(TreebaseUtil.getLineSeparators(2)).append("Study ID = " + pStudy.getId()) + .append(TreebaseUtil.getLineSeparators(2)).append("TreeBASE Study URI: " + pStudy.getPhyloWSPath().getPurl()) .append("]").append(TreebaseUtil.getLineSeparators(2)); } } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterMatrix.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterMatrix.java 2010-04-16 17:33:35 UTC (rev 691) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/CharacterMatrix.java 2010-04-22 18:28:28 UTC (rev 692) @@ -600,7 +600,8 @@ public void generateMatrixTable(StringBuilder pBuilder) { // MATRIX section: - List<MatrixRow> matrixRows = getRows(); + List<MatrixRow> matrixRows = new ArrayList<MatrixRow>(getRows()); + sortRowByTaxonLabel(matrixRows); Iterator<MatrixRow> iterator = matrixRows.iterator(); ArrayList<String> tLabel = new ArrayList<String>(); @@ -851,7 +852,7 @@ if (isDefaultCodonSet(codonSet)) { pStrBuilder.append('*'); } - pStrBuilder.append(" ").append(codonSet.getTitle()).append(" = ").append(TreebaseUtil.LINESEP); + pStrBuilder.append(" ").append(codonSet.getTitle()).append(" (CHARACTERS = ").append(StringUtil.tokenize(getTitle())).append(") = ").append(TreebaseUtil.LINESEP); codonSet.generateNexusString(pStrBuilder); } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java 2010-04-16 17:33:35 UTC (rev 691) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java 2010-04-22 18:28:28 UTC (rev 692) @@ -1,6 +1,7 @@ package org.cipres.treebase.domain.matrix; +import java.util.Comparator; import java.util.List; import javax.persistence.AttributeOverride; @@ -419,7 +420,7 @@ pBuilder.append("BEGIN CHARACTERS;").append(TreebaseUtil.LINESEP); pBuilder - .append("[! Matrix ID =").append(getId()).append(" ]").append(TreebaseUtil.LINESEP) + .append("[! TreeBASE Matrix URI: ").append(getPhyloWSPath().getPurl()).append("]").append(TreebaseUtil.LINESEP) .append(TreebaseUtil.LINESEP); pBuilder.append("\tTITLE ").append(StringUtil.tokenize(getTitle())).append(";").append( @@ -432,7 +433,7 @@ } else { taxaTitle = "No taxa found for this matrix. Old data. Need to import this matrix again."; } - pBuilder.append("\tLINK TAXA = " + StringUtil.tokenize(taxaTitle) + ";").append( + pBuilder.append("\tLINK TAXA = " + StringUtil.tokenize(taxaTitle.replaceAll("Input|Output", "")) + ";").append( TreebaseUtil.LINESEP); pBuilder.append(getDimensionsInfo()).append(TreebaseUtil.LINESEP); @@ -516,4 +517,18 @@ public void setDimensions() { // By default, do nothing } + + protected void sortRowByTaxonLabel(List<MatrixRow> rList) + { + java.util.Collections.sort(rList, new Comparator<MatrixRow>() { + + public int compare(MatrixRow pObject1, MatrixRow pObject2) { + String id1 = pObject1.getTaxonLabel().getTaxonLabel(); + String id2 = pObject2.getTaxonLabel().getTaxonLabel(); + return id1.compareTo(id2); + } + + }); + + } } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserDefinedCharSet.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserDefinedCharSet.java 2010-04-16 17:33:35 UTC (rev 691) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/UserDefinedCharSet.java 2010-04-22 18:28:28 UTC (rev 692) @@ -11,6 +11,8 @@ import javax.persistence.OneToMany; import javax.persistence.Transient; +import mesquite.lib.StringUtil; + import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; @@ -74,7 +76,7 @@ @Override public String getNexusString() { StringBuilder sb = new StringBuilder(); - sb.append(getNexusPrefix()).append(getTitle()).append(" = "); + sb.append(getNexusPrefix()).append(getTitle()).append(" (CHARACTERS = ").append(StringUtil.tokenize(getMatrix().getTitle())).append(") = "); for (ColumnRange colRange : getColumns()) { sb.append(" "); Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelSet.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelSet.java 2010-04-16 17:33:35 UTC (rev 691) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabelSet.java 2010-04-22 18:28:28 UTC (rev 692) @@ -2,6 +2,7 @@ import java.util.ArrayList; import java.util.Collections; +import java.util.Comparator; import java.util.List; import javax.persistence.AttributeOverride; @@ -192,11 +193,12 @@ */ public void buildNexusBlockTaxa(StringBuilder pBuilder, boolean pOnePerLine, boolean pLineNumber) { - List<TaxonLabel> txnlbllist = getTaxonLabelsReadOnly(); + List<TaxonLabel> txnlbllist = new ArrayList<TaxonLabel>(getTaxonLabelList()); + sortByTaxonLabel(txnlbllist); int numoftxnlbls = txnlbllist.size(); pBuilder.append("BEGIN TAXA;\n"); - pBuilder.append(" TITLE " + StringUtil.tokenize(getTitle()) + ";\n"); + pBuilder.append(" TITLE " + StringUtil.tokenize(getTitle().replaceAll("Input|Output", "")) + ";\n"); pBuilder.append(" DIMENSIONS NTAX=" + numoftxnlbls + ";\n"); pBuilder.append(" TAXLABELS\n"); pBuilder.append(" "); @@ -258,4 +260,17 @@ return getTitle(); } + private void sortByTaxonLabel(List<TaxonLabel> tList) + { + java.util.Collections.sort(tList, new Comparator<TaxonLabel>() { + + public int compare(TaxonLabel pObject1, TaxonLabel pObject2) { + String id1 = pObject1.getTaxonLabel(); + String id2 = pObject2.getTaxonLabel(); + return id1.compareTo(id2); + } + + }); + + } } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java 2010-04-16 17:33:35 UTC (rev 691) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java 2010-04-22 18:28:28 UTC (rev 692) @@ -557,7 +557,7 @@ pBuilder.append("BEGIN TREES;\n"); pBuilder .append(" TITLE ").append(StringUtil.tokenize(blockTitle)).append(";\n"); - pBuilder.append(" LINK TAXA = ").append(StringUtil.tokenize(taxaTitle)).append(";\n"); + pBuilder.append(" LINK TAXA = ").append(StringUtil.tokenize(taxaTitle.replaceAll("Input|Output", ""))).append(";\n"); pBuilder.append(" TREE ").append(StringUtil.tokenize(getLabel())).append(" = "); if (getRootedTree() != null) { @@ -569,7 +569,7 @@ } pBuilder.append(getNewickString()).append("\n"); - pBuilder.append("[! TreeBASE tree Id = ").append(getId()).append(" ]\n"); + pBuilder.append("[! TreeBASE tree URI: ").append(getPhyloWSPath().getPurl()).append("]\n"); pBuilder.append("\n\nEND;\n"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2010-06-04 11:28:47
|
Revision: 716 http://treebase.svn.sourceforge.net/treebase/?rev=716&view=rev Author: rvos Date: 2010-06-04 11:28:42 +0000 (Fri, 04 Jun 2010) Log Message: ----------- Adding interfaces and implementations of findByTB1LegacyId and findVariantByTB1LegacyId Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonDAO.java trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonHome.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonDAO.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonDAO.java 2010-06-04 11:27:31 UTC (rev 715) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonDAO.java 2010-06-04 11:28:42 UTC (rev 716) @@ -150,4 +150,24 @@ } return result; } + + /* + * (non-Javadoc) + * @see org.cipres.treebase.domain.taxon.TaxonHome#findByTB1LegacyId(java.lang.Integer) + */ + public Taxon findByTB1LegacyId(Integer tb1LegacyId) { + Criteria c = getSession().createCriteria(Taxon.class); + c.add(Expression.eq("TB1LegacyId", tb1LegacyId)); + return (Taxon) c.uniqueResult(); + } + + /* + * (non-Javadoc) + * @see org.cipres.treebase.domain.taxon.TaxonHome#findVariantByTB1LegacyId(java.lang.Integer) + */ + public TaxonVariant findVariantByTB1LegacyId(Integer tb1LegacyId) { + Criteria c = getSession().createCriteria(TaxonVariant.class); + c.add(Expression.eq("TB1LegacyId", tb1LegacyId)); + return (TaxonVariant) c.uniqueResult(); + } } Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonHome.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonHome.java 2010-06-04 11:27:31 UTC (rev 715) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonHome.java 2010-06-04 11:28:42 UTC (rev 716) @@ -85,14 +85,30 @@ Taxon findByNcbiTaxId(Integer genbankId); /** - * Find the taxon that has the specified NCBI genBank ID + * Find the taxon that has the specified uBio namebank ID * * Throw an exception if there are multiple matches * - * @param genbankId + * @param nameBankId * @return the taxon object, or null if none is found * @author mjd 20080821 * @throws NonUniqueObjectException */ Taxon findByUBIOTaxId(Long nameBankId); + + /** + * Find the taxon that has the specified TreeBASE1 legacy ID + * + * @param tb1LegacyId + * @return the taxon object, or null if none is found + */ + Taxon findByTB1LegacyId(Integer tb1LegacyId); + + /** + * Find the taxonVariant that has the specified TreeBASE1 legacy ID + * + * @param tb1LegacyId + * @return the taxonVariant object, or null if none is found + */ + TaxonVariant findVariantByTB1LegacyId(Integer tb1LegacyId); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |