domain + go output work begins
[jalview.git] / forester / java / src / org / forester / phylogeny / data / Property.java
index b7b7c17..14a3341 100644 (file)
@@ -74,15 +74,15 @@ public class Property implements PhylogenyData {
                      final String id_ref ) {
         if ( !ForesterUtil.isEmpty( ref ) && ( ref.indexOf( ":" ) < 1 ) ) {
             throw new IllegalArgumentException( "property reference [" + ref
-                    + "] is not in the expected format (missing a \":\")" );
+                                                + "] is not in the expected format (missing a \":\")" );
         }
         if ( !ForesterUtil.isEmpty( unit ) && ( unit.indexOf( ":" ) < 1 ) ) {
             throw new IllegalArgumentException( "property unit [" + unit
-                    + "] is not in the expected format (missing a \":\")" );
+                                                + "] is not in the expected format (missing a \":\")" );
         }
         if ( !ForesterUtil.isEmpty( datatype ) && ( datatype.indexOf( ":" ) < 1 ) ) {
             throw new IllegalArgumentException( "property datatype [" + unit
-                    + "] is not in the expected format (missing a \":\")" );
+                                                + "] is not in the expected format (missing a \":\")" );
         }
         _ref = ref;
         _unit = unit;
@@ -155,53 +155,7 @@ public class Property implements PhylogenyData {
 
     @Override
     public StringBuffer toNHX() {
-        final StringBuffer nhx = new StringBuffer();
-        nhx.append( ":X" );
-        switch ( getAppliesTo() ) {
-            case CLADE:
-                nhx.append( "C=" );
-                break;
-            case NODE:
-                nhx.append( "N=" );
-                break;
-            case PARENT_BRANCH:
-                nhx.append( "B=" );
-                break;
-            case PHYLOGENY:
-                nhx.append( "P=" );
-                break;
-            case ANNOTATION:
-                nhx.append( "S=" );
-                break;
-            default:
-                nhx.append( "O=" );
-                break;
-        }
-        if ( !getDataType().equals( "" ) ) {
-            if ( getDataType().equals( "xsd:string" ) ) {
-                nhx.append( "S=" );
-            }
-            else if ( getDataType().equals( "xsd:long" ) ) {
-                nhx.append( "L=" );
-            }
-            else if ( getDataType().equals( "xsd:decimal" ) ) {
-                nhx.append( "D=" );
-            }
-            else if ( getDataType().equals( "xsd:boolean" ) ) {
-                nhx.append( "B=" );
-            }
-            else if ( getDataType().equals( "xsd:anyUR" ) ) {
-                nhx.append( "U=" );
-            }
-        }
-        nhx.append( getRef() );
-        nhx.append( "=" );
-        nhx.append( getValue() );
-        if ( !getUnit().equals( "" ) ) {
-            nhx.append( "=" );
-            nhx.append( getUnit() );
-        }
-        return nhx;
+        throw new UnsupportedOperationException();
     }
 
     @Override