}
protected String[] getAttributeNames() {
return new String[] { "id", "name", "version", "virtualRoot", "base", "required" };
}
protected String getAttributeValue(String attribute, Object object) {
ILibInfo libInfo = (ILibInfo) object;
if(attribute.equalsIgnoreCase("id")){
return libInfo.getId();
}
if(attribute.equalsIgnoreCase("name")){
return libInfo.getName();
}
if(attribute.equalsIgnoreCase("version")){
return libInfo.getVersion();
}
if(attribute.equalsIgnoreCase("virtualRoot")){
return libInfo.getVirtualRoot();
}
if(attribute.equalsIgnoreCase("base")){
return null;
}
if(attribute.equalsIgnoreCase("required")){
return libInfo.getRequired();
}
return null;
}