public LogTableField findField( ID id ) { return super.findField( id.id ); }
public LogTableField findField( ID id ) { return super.findField( id.id ); }
/** * Get the subject of a field with the specified ID * * @param id * @return the subject or null if no field could be find with the specified id */ public Object getSubject( String id ) { LogTableField field = findField( id ); if ( field == null ) { return null; } return field.getSubject(); }
/** * Return the subject in the form of a string for the specified ID. * * @param id * the id of the field to look for. * @return the string of the subject (name of step) or null if nothing was found. */ public String getSubjectString( String id ) { LogTableField field = findField( id ); if ( field == null ) { return null; } if ( field.getSubject() == null ) { return null; } return field.getSubject().toString(); }
public void loadFieldsXML( Node node ) { int nr = XMLHandler.countNodes( node, BaseLogTable.XML_TAG ); for ( int i = 0; i < nr; i++ ) { Node fieldNode = XMLHandler.getSubNodeByNr( node, BaseLogTable.XML_TAG, i ); String id = XMLHandler.getTagValue( fieldNode, "id" ); LogTableField field = findField( id ); if ( field == null && i < fields.size() ) { field = fields.get( i ); // backward compatible until we go GA } if ( field != null ) { field.setFieldName( XMLHandler.getTagValue( fieldNode, "name" ) ); field.setEnabled( "Y".equalsIgnoreCase( XMLHandler.getTagValue( fieldNode, "enabled" ) ) ); } } }
LogTableField field = findField( id ); if ( field != null ) { field.setFieldName( attributeInterface.getAttributeString( getLogTableCode()