Examples of Container


Examples of OntoUML.Container

        if (result == null) result = caseNamedElement(componentOf);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.CONTAINER: {
        Container container = (Container)theEObject;
        T result = caseContainer(container);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.DATATYPE: {
View Full Code Here

Examples of aQute.bnd.build.Container

                // TODO Auto-generated method stub
                return null;
            }

            public String getColumnText(Object element, int columnIndex) {
                Container c = (Container) element;
                switch (columnIndex) {
                case 0 :
                    return c.getBundleSymbolicName();
                case 1 :
                    return c.getVersion();
                case 2 :
                    return c.getError();
                case 3 :
                    return c.getFile() + " (" + (c.getFile() != null && c.getFile().exists() ? "exists" : "?") + ")";
                default :
                    break;
                }
                return null;
            }
View Full Code Here

Examples of ae.java.awt.Container

        }
        return false;
    }

    public static Container getParent_NoClientCode(Component c) {
        Container parent=null;

        try {
            parent = (Container) methodGetParentNoClientCode.invoke(c, (Object[]) null);
        }
        catch (IllegalAccessException e)
View Full Code Here

Examples of atunit.core.Container

        try {
            Class<?> c = context.introspector().testClass();
            Set<Field> testFields = getFields(c);

            Container container = getContainerFor(c);
            MockFramework mockFramework = getMockFrameworkFor(c);

            // make sure we have one (and only one) @Unit field
            Field unitField = getUnitField(testFields);
            if (unitField.getAnnotation(Mock.class) != null) {
                throw new IncompatibleAnnotationException(Unit.class, Mock.class);
            }

            final Map<Field, Object> fieldValues = mockFramework.getValues(testFields.toArray(new Field[testFields.size()]));
            if (fieldValues.containsKey(unitField)) {
                throw new IncompatibleAnnotationException(Unit.class, unitField.getType());
            }

            container.createTest(c, fieldValues);

            for (Field field : fieldValues.keySet()) {
                field.setAccessible(true);
                if (field.get(context.introspector().instance()) == null) {
                    field.set(context.introspector().instance(), fieldValues.get(field));
View Full Code Here

Examples of biz.paluch.maven.configurator.model.Container

        getLog().debug("Resolved target artifact to " + artifactFile.toString());

        Closer closer = Closer.create();

        Container container = new Container(artifactFile.getName());

        try
        {
            ZipInputStream zis =
                    closer.register(new ZipInputStream(new BufferedInputStream(new FileInputStream(artifactFile))));
View Full Code Here

Examples of br.com.caelum.vraptor.ioc.Container

    @SuppressWarnings("unchecked")
    public Object convertValue(Map context, Object target, Member member, String propertyName, Object value,
            Class toType) {
        Type genericType = genericTypeToConvert(target, member);
        Class type = rawTypeOf(genericType);
        Container container = (Container) context.get(Container.class);
        if (type.isArray() && !value.getClass().isArray()) {
          Class arrayType = type.getComponentType();
          Object array = Array.newInstance(arrayType, 1);
          Array.set(array, 0, convert(value, arrayType, container));
          return array;
View Full Code Here

Examples of ch.iterate.openstack.swift.model.Container

    public List<Container> handleResponse(final HttpResponse response) throws IOException {
        if(response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
            final StringTokenizer tokenize = new StringTokenizer(EntityUtils.toString(response.getEntity()), "\n");
            final ArrayList<Container> containers = new ArrayList<Container>();
            while(tokenize.hasMoreTokens()) {
                containers.add(new Container(region, tokenize.nextToken()));
            }
            return containers;
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT) {
            return new ArrayList<Container>();
View Full Code Here

Examples of charva.awt.Container

  /* Blank out the area of this component, but only if this
   * component's color-pair is different than that of the
   * parent container.
   */
  int colorpair = getCursesColor();
  Container parent = getParent();
  if (parent != null && colorpair != parent.getCursesColor())
      toolkit.blankBox(origin, this.getSize(), colorpair);

  // Draw the border if there is one.
  if (_border != null) {
      _border.paintBorder(this, colorpair,
View Full Code Here

Examples of com.calclab.suco.client.ioc.Container

public class SucoFactoryTests {

    @Test
    public void shouldHaveDefaultScopes() {
  final Container container = SucoFactory.create();
  assertNotNull(container.getInstance(NoDecoration.class));
  assertNotNull(container.getInstance(Singleton.class));
    }
View Full Code Here

Examples of com.codename1.ui.Container

   *
   * @param webBrowser
   */
  public void onDisposeLogin(final Form backForm, final WebBrowser webBrowser) {
    webBrowser.stop();
    Container parent = webBrowser.getParent();
    parent.removeComponent(webBrowser);
    parent.revalidate();
    if (backForm != null) {
      backForm.showBack();
    }
  }
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.