public static Attribute createAttribute(String name, String value) { return new Attribute(name, value); }
public psidev.psi.mi.xml.model.Attribute fromJaxb( psidev.psi.mi.xml254.jaxb.Attribute jAttribute ) { if ( jAttribute == null ) { throw new IllegalArgumentException( "You must give a non null JAXB attribute." ); } psidev.psi.mi.xml.model.Attribute mAttribute = new psidev.psi.mi.xml.model.Attribute(); // Initialise the model reading the Jaxb object // 1. set attributes mAttribute.setName( jAttribute.getName() ); mAttribute.setNameAc( jAttribute.getNameAc() ); mAttribute.setValue( jAttribute.getValue() ); return mAttribute; }
public psidev.psi.mi.xml.model.Attribute fromJaxb( psidev.psi.mi.xml253.jaxb.AttributeListType.Attribute jAttribute ) { if ( jAttribute == null ) { throw new IllegalArgumentException( "You must give a non null JAXB attribute." ); } psidev.psi.mi.xml.model.Attribute mAttribute = new psidev.psi.mi.xml.model.Attribute(); // Initialise the model reading the Jaxb object // 1. set attributes mAttribute.setName( jAttribute.getName() ); mAttribute.setNameAc( jAttribute.getNameAc() ); mAttribute.setValue( jAttribute.getValue() ); return mAttribute; }
Attribute attribute = new Attribute(nameAc, name, intactObject.getAnnotationText());
if (!annotations.isEmpty()) { for (Annotation annotation : annotations) { Attribute attribute = new Attribute(annotation.getTopic(), annotation.getText()); interaction.getAttributes().add(attribute); if (!checksums.isEmpty()) { for (Checksum checksum : checksums) { Attribute attribute = new Attribute(checksum.getMethodName(), checksum.getChecksum()); interaction.getAttributes().add(attribute);
Attribute authConf = new Attribute(IntactConverterUtils.AUTH_CONF_MI, IntactConverterUtils.AUTH_CONF, conf.getValue());
featureType.setXref(xref); xmlfeature.setFeatureType(featureType); Attribute attribute = new Attribute("MI:0018", "caution", "Due to a limitation in the conversion form MITAB to XML," + " the real xref for the feature type can not be provided. However, you could use the name of the feature type."); xmlfeature.getAttributes().add(attribute); Attribute attribute = new Attribute("MI:0612", "comment", "This feature in mitab had the next text: " + mitabFeature.getText()); xmlfeature.getAttributes().add(attribute); for (Integer integer : stoichiometry) { Attribute attribute = new Attribute("MI:0612", "comment", "Stoichiometry: " + integer.toString()); if (!participant.getAttributes().contains(attribute)) { participant.getAttributes().add(attribute);
if (!tabInteractor.getAnnotations().isEmpty()) { for (Annotation annotation : tabInteractor.getAnnotations()) { Attribute attribute = new Attribute(annotation.getTopic(), annotation.getText()); xmlInteractor.getAttributes().add(attribute); if (!checksums.isEmpty()) { for (Checksum checksum : checksums) { Attribute attribute = new Attribute(checksum.getMethodName(), checksum.getChecksum()); if (!xmlInteractor.getAttributes().contains(attribute)) { xmlInteractor.getAttributes().add(attribute);