Examples of Phase


Examples of OntoUML.Phase

        if (result == null) result = caseElement(objectClass);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.PHASE: {
        Phase phase = (Phase)theEObject;
        T result = casePhase(phase);
        if (result == null) result = caseAntiRigidSortalClass(phase);
        if (result == null) result = caseSortalClass(phase);
        if (result == null) result = caseObjectClass(phase);
        if (result == null) result = caseClass(phase);
View Full Code Here

Examples of OntoUML.Phase

     * <!-- end-user-doc -->
     * @generated NOT
     */
    private void updateContents(PhaseEditPart phaseeditpart) {

      Phase s = (Phase) ((View) phaseeditpart.getModel()).getElement();
      for (int i = 0; i < s.getAttribute().size(); i++) {
        Property p1 = (Property) s.getAttribute().get(i);
        if (p1.getAttribute().size() >= 2) {
          DatatypeAssociation d = (DatatypeAssociation) p1
              .getAttribute().get(0);
          Property p2 = (Property) p1.getAttribute().get(1);
          d.setOwner(null);
          d.setContainer(s.getContainer());
          d.setName("Name");
          p1.setAssociationEnd(d);
          p1.setName("Name");
          p2.setAssociationEnd(d);
          p2.setOwner(d);
View Full Code Here

Examples of au.net.ocean.maven.plugin.annotation.Phase

            mojoDescriptor.setGoal(clazz.getAnnotation(Mojo.class).goal().trim());
            mojoDescriptor.setPhase(mojo.phase().value);
            Execution execute = mojo.execute();
            String lifecycle = execute.lifecycle().trim().length() == 0 ? null : execute.lifecycle().trim();
            String goal = execute.goal().trim().length() == 0 ? null : execute.goal().trim();
            Phase phase = execute.phase();
            if (goal != null || phase != Phase.None) {
                if (goal != null) {
                    if (lifecycle != null) {
                        throw new InvalidPluginDescriptorException("'goal' cannot be specified with 'lifecycle' in execute annotation");
                    }
View Full Code Here

Examples of com.aragost.javahg.Phase

        HgInputStream stream = launchStream();
        try {
            while (!stream.isEof()) {
                String node = stream.textUpTo(' ');
                String phaseName = stream.textUpTo(0);
                Phase phase = Phase.fromText(phaseName);
                result.put(repo.changeset(node), phase);
            }
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
View Full Code Here

Examples of com.eastidea.qaforum.model.Phase

import com.eastidea.qaforum.model.Phase;

public class PhaseComparator implements Comparator {

    public int compare(Object o1, Object o2) {
        Phase phase1 = (Phase)o1;
        Phase phase2 = (Phase)o2;
       
        if (phase1.getNumber() > phase2.getNumber())
          return 1;
        else if (phase1.getNumber() < phase2.getNumber())
                return -1;
        else
        return 0;
    }
View Full Code Here

Examples of com.google.gxp.compiler.Phase

    } else {
      for (String phaseName : phaseNames) {
        phaseName = phaseName.trim();
        if (phaseName.length() > 0) {
          phaseName = phaseName.toUpperCase().replace("-", "_");
          Phase phase;
          try {
            phase = Phase.valueOf(phaseName);
          } catch (IllegalArgumentException iax) {
            throw new CmdLineException(parser, "illegal phase name in --dot flag: " + phaseName);
          }
View Full Code Here

Examples of com.jcloisterzone.game.phase.Phase

            aiPlayer.popActionChain();
        }
    }

    private boolean phaseLoop() {
        Phase phase = game.getPhase();
        while (!phase.isEntered()) {
            if (!Iterables.contains(ALLOWED_IN_PHASE_LOOP, phase.getClass())) {
                return true;
            }
            phase.setEntered(true);
            phase.enter();
            phase = game.getPhase();
            game.flushEventQueue();
        }
        game.flushEventQueue();
        return false;
View Full Code Here

Examples of com.oltpbenchmark.Phase

        // done notify the global test state, then continue applying load
        seenDone = true;
        testState.signalDone();
        break;
      }
      Phase phase = null;
      // apply load
      if (isRateLimited) {
        // re-reads the state because it could have changed if we
        // blocked
        state = testState.fetchWork();
View Full Code Here

Examples of com.sun.faces.lifecycle.Phase

    public void testViewTag() {
        boolean result = false;
        String value = null;
        Locale expectedLocale = new Locale("ps", "PS");
        Phase renderResponse = new RenderResponsePhase();
        UIViewRoot page = Util.getViewHandler(getFacesContext()).createView(getFacesContext(), null);
        page.setId("root");
        page.setLocale(Locale.US);
        page.setViewId(TEST_URI);
        page.setLocale(Locale.CANADA_FRENCH);
        getFacesContext().setViewRoot(page);

        Config.set((ServletRequest)
            getFacesContext().getExternalContext().getRequest(),
                   Config.FMT_LOCALE, Locale.CANADA_FRENCH);

        try {
            renderResponse.execute(getFacesContext());
        } catch (FacesException fe) {
            System.out.println(fe.getMessage());
            if (null != fe.getCause()) {
                fe.getCause().printStackTrace();
            } else {
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.preference.Phase

   * @param reader The reader to read data from.
   * @param preference The preference object that the data is to be added to.
   * @throws XMLStreamException Thrown if there is an error reading from the reader.
   */
  private static void parsePhase(XMLStreamReader reader, View view) throws XMLStreamException {
    Phase phase = new Phase();
    phase.setName(reader.getAttributeValue(null, ATTRIBUTE_NAME));

    boolean endFound = false;
    while (!endFound) {
      if (reader.hasNext()) {
        int eventType = reader.next();

        if (eventType == XMLStreamConstants.START_ELEMENT) {
          QName elementQName = reader.getName();
          String elementName = elementQName.toString();
          if (ELEMENT_COLUMN_ENTRY.equals(elementName)) {
            ColumnEntry colEntry = new ColumnEntry();
            colEntry.setName(reader.getAttributeValue(null, ATTRIBUTE_NAME));
            String width = reader.getAttributeValue(null, ATTRIBUTE_WIDTH);
           
            try {
              colEntry.setWidth(Integer.valueOf(width));
            }
            catch (NumberFormatException e) {
              // just don't set the width
            }
           
            colEntry.setResizable(Boolean.valueOf(reader.getAttributeValue(null,
                ATTRIBUTE_RESIZABLE)));
            colEntry.setEnable(Boolean.valueOf(reader
                .getAttributeValue(null, ATTRIBUTE_ENABLE)));
           
            phase.getColumnEntry().add(colEntry);
          }
        }
        else if (eventType == XMLStreamConstants.END_ELEMENT) {
          if (ELEMENT_PHASE.equals(reader.getName().toString())) {
            // this is the end of the Phase element
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.