Package at.bestsolution.efxclipse.formats.svg.svg

Examples of at.bestsolution.efxclipse.formats.svg.svg.SvgElement.eClass()


          SvgElement e = (SvgElement) EcoreUtil.create(ec);
         
          for (int i = 0; i < attributes.getLength(); i++) {
            if (SVG_NS.equals(attributes.getURI(i)) || "".equals(attributes.getURI(i))) {
              String name = attributes.getLocalName(i).replaceAll("-", "_");
              EStructuralFeature f = e.eClass().getEStructuralFeature(name);
              if (f != null) {
                Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
                e.eSet(f, o);
              } else {
                System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
View Full Code Here


              EStructuralFeature f = e.eClass().getEStructuralFeature(name);
              if (f != null) {
                Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
                e.eSet(f, o);
              } else {
                System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
              }
            } else if( XLINK_NS.equals(attributes.getURI(i)) ) {
              String name = "xlink__" + attributes.getLocalName(i).replaceAll("-", "_");
              EStructuralFeature f = e.eClass().getEStructuralFeature(name);
              if( f != null ) {
View Full Code Here

              } else {
                System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
              }
            } else if( XLINK_NS.equals(attributes.getURI(i)) ) {
              String name = "xlink__" + attributes.getLocalName(i).replaceAll("-", "_");
              EStructuralFeature f = e.eClass().getEStructuralFeature(name);
              if( f != null ) {
                Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
                e.eSet(f, o);
              } else {
                System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
View Full Code Here

              EStructuralFeature f = e.eClass().getEStructuralFeature(name);
              if( f != null ) {
                Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
                e.eSet(f, o);
              } else {
                System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
              }
            }
          }
         
          if( elementStack.isEmpty() ) {
View Full Code Here

          if (_equals) {
            return o;
          }
        } else {
          final SvgElement eo = ((SvgElement) o);
          EClass _eClass = eo.eClass();
          final EStructuralFeature f = _eClass.getEStructuralFeature("id");
          boolean _and = false;
          boolean _notEquals = (!Objects.equal(f, null));
          if (!_notEquals) {
            _and = false;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.