Commit a4db5367 authored by Dominique Marcadet's avatar Dominique Marcadet

provides conversion from ServiceDataAttribute to DataAttribute

parent be962ea4
......@@ -164,4 +164,6 @@ public interface ServiceDataAttribute extends DocumentedClass, AgPresenceConditi
*/
void setParentServiceCDC( ServiceCDC value );
DataAttribute toDataAttribute();
} // ServiceDataAttribute
......@@ -24,6 +24,7 @@ import fr.centralesupelec.edf.riseclipse.iec61850.nsd.AgPresenceCondition;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.AgUnderlyingType;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.BasicType;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.ConstructedAttribute;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.DataAttribute;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.DefinedAttributeTypeKind;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.Enumeration;
......@@ -1861,4 +1862,18 @@ public class ServiceDataAttributeImpl extends DocumentedClassImpl implements Ser
return new NsIdentification( getParentServiceCDC().getParentServiceCDCs().getParentServiceNS() );
}
@Override
public DataAttribute toDataAttribute() {
DataAttribute dataAttribute = new DataAttributeImpl();
dataAttribute.setPresCond( getPresCond() );
dataAttribute.setPresCondArgs( getPresCondArgs() );
dataAttribute.setPresCondArgsID( getPresCondArgsID() );
dataAttribute.setType( getType() );
dataAttribute.setTypeKind( getTypeKind() );
dataAttribute.setFc( getFc() );
dataAttribute.setName( getName() );
return dataAttribute;
}
} //ServiceDataAttributeImpl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment