@Test public void testFormKey() { assertThat("testFormKey 0",MetadataField.formKey("dc", "elem", null), equalTo("dc_elem")); assertThat("testFormKey 1",MetadataField.formKey("dc", "elem", "qual"), equalTo("dc_elem_qual")); }
public static String formKey(String schema, String element, String qualifier) { if (qualifier == null) { return schema + "_" + element; } else { return schema + "_" + element + "_" + qualifier; } }
MetadataField { public static String formKey(String schema, String element, String qualifier) { if (qualifier == null) { return schema + "_" + element; } else { return schema + "_" + element + "_" + qualifier; } } }
MetadataField { public static String formKey(String schema, String element, String qualifier) { if (qualifier == null) { return schema + "_" + element; } else { return schema + "_" + element + "_" + qualifier; } } MetadataField();  MetadataField(MetadataSchema schema);  MetadataField(MetadataSchema schema, String element,
            String qualifier, String scopeNote);  MetadataField(int schemaID, int fieldID, String element,
            String qualifier, String scopeNote);  MetadataField(TableRow row); }
MetadataField { public static String formKey(String schema, String element, String qualifier) { if (qualifier == null) { return schema + "_" + element; } else { return schema + "_" + element + "_" + qualifier; } } MetadataField();  MetadataField(MetadataSchema schema);  MetadataField(MetadataSchema schema, String element,
            String qualifier, String scopeNote);  MetadataField(int schemaID, int fieldID, String element,
            String qualifier, String scopeNote);  MetadataField(TableRow row); String getElement(); void setElement(String element); int getFieldID(); String getQualifier(); void setQualifier(String qualifier); int getSchemaID(); void setSchemaID(int schemaID); String getScopeNote(); void setScopeNote(String scopeNote); void create(Context context); static MetadataField findByElement(Context context, int schemaID,
            String element, String qualifier); static MetadataField[] findAll(Context context); static MetadataField[] findAllInSchema(Context context, int schemaID); void update(Context context); void delete(Context context); static String formKey(String schema, String element, String qualifier); static MetadataField find(Context context, int id); @Override boolean equals(Object obj); @Override int hashCode(); }
MetadataField { public static String formKey(String schema, String element, String qualifier) { if (qualifier == null) { return schema + "_" + element; } else { return schema + "_" + element + "_" + qualifier; } } MetadataField();  MetadataField(MetadataSchema schema);  MetadataField(MetadataSchema schema, String element,
            String qualifier, String scopeNote);  MetadataField(int schemaID, int fieldID, String element,
            String qualifier, String scopeNote);  MetadataField(TableRow row); String getElement(); void setElement(String element); int getFieldID(); String getQualifier(); void setQualifier(String qualifier); int getSchemaID(); void setSchemaID(int schemaID); String getScopeNote(); void setScopeNote(String scopeNote); void create(Context context); static MetadataField findByElement(Context context, int schemaID,
            String element, String qualifier); static MetadataField[] findAll(Context context); static MetadataField[] findAllInSchema(Context context, int schemaID); void update(Context context); void delete(Context context); static String formKey(String schema, String element, String qualifier); static MetadataField find(Context context, int id); @Override boolean equals(Object obj); @Override int hashCode();  }