Examples of Interface


Examples of com.google.gxp.compiler.base.Interface

      List<Import> imports = nodeParts.getImports();
      List<ThrowsDeclaration> throwsDeclarations = nodeParts.getThrowsDeclarations();
      List<FormalTypeParameter> formalTypeParameters = nodeParts.getFormalTypeParameters();

      if (contentType != null) {
        output.accumulate(new Interface(node,
                                        name,
                                        contentType.getSchema(),
                                        javaAnnotations,
                                        imports,
                                        throwsDeclarations,
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Interface

        endLine(true);
    }

    private void addInterfaceToPrototype(ClassOrInterface type, final Tree.InterfaceDefinition interfaceDef) {
        TypeGenerator.interfaceDefinition(interfaceDef, this);
        Interface d = interfaceDef.getDeclarationModel();
        out(names.self(type), ".", names.name(d), "=", names.name(d));
        endLine(true);
    }
View Full Code Here

Examples of com.tll.model.Interface

    catch(final BusinessKeyNotDefinedException e) {
      throw new IllegalStateException(e);
    }
    bk.setPropertyValue("account.id", accountKey);

    final Interface intf = dao.load(Interface.class, interfaceKey);

    final LinkedHashSet<AccountInterfaceOption> aios = new LinkedHashSet<AccountInterfaceOption>();
    InterfaceOptionAccount ioa;
    for(final InterfaceOption io : intf.getOptions()) {
      bk.setPropertyValue("option.id", io.getId());
      try {
        ioa = dao.load(bk);
      }
      catch(final EntityNotFoundException e) {
        ioa = null;
      }
      final AccountInterfaceOption aio = generateAccountInterfaceOption(io, ioa);
      aios.add(aio);
    }

    final AccountInterface ai = entityAssembler.assembleEntity(AccountInterface.class, null);
    ai.setVersion(Integer.valueOf(1)); // mimic non-new entity
    ai.setAccountKey(accountKey);
    ai.setInterfaceKey(interfaceKey);
    ai.setName(intf.getName());
    ai.setCode(intf.getCode());
    ai.setDescription(intf.getDescription());
    ai.setAvailableAsp(intf.getIsAvailableAsp());
    ai.setAvailableIsp(intf.getIsAvailableIsp());
    ai.setAvailableMerchant(intf.getIsAvailableMerchant());
    ai.setAvailableCustomer(intf.getIsAvailableCustomer());
    ai.setRequiredAsp(intf.getIsRequiredAsp());
    ai.setRequiredIsp(intf.getIsRequiredIsp());
    ai.setRequiredMerchant(intf.getIsRequiredMerchant());
    ai.setRequiredCustomer(intf.getIsRequiredCustomer());
    ai.setOptions(aios);

    return ai;
  }
View Full Code Here

Examples of echo.EchoProto.EchoService.Interface

public class EchoServer {

    public static void main(String[] args) {
        RpcServer server = new RpcServer();
        server.registerService(EchoProto.EchoService.newReflectiveService(new Interface() {
            @Override
            public void echo(RpcController controller, EchoRequest request, RpcCallback<EchoResponse> done) {
                done.run(EchoResponse.newBuilder().setPayload(request.getPayload()).build());
            }
        }));
View Full Code Here

Examples of eu.admire.dispel.classifiers.Interface

        if (result == null) result = caseCommentable(class_);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ClassifiersPackage.INTERFACE: {
        Interface interface_ = (Interface)theEObject;
        T result = caseInterface(interface_);
        if (result == null) result = caseConcreteClassifier(interface_);
        if (result == null) result = caseClassifier(interface_);
        if (result == null) result = caseMemberContainer(interface_);
        if (result == null) result = caseMember(interface_);
View Full Code Here

Examples of model.Interface

    affichageCanvas nextPiece = new affichageCanvas();
   
    frame = new JFrame();
   
    /*INTERFACE*/
    Interface I = new Interface();
   
    /*EVENT BUTTON*/
    Button  option = new Button(60, 60, 470, 500);
    option.setIcon(new ImageIcon("img/optionB.png"));
    Button  pause = new Button(60, 60, 405, 500);
View Full Code Here

Examples of net.sf.gwtseam.model.Interface

 
  private class CreateInterface extends StartCommand
  {
    public void execute()
    {
      currentInterface = new Interface ();
      currentInterface.setClazz(getAttributes().getValue("class"));
      currentInterface.setPackage(getAttributes().getValue("package"));
    }
View Full Code Here

Examples of net.sf.rej.java.Interface

    public void refresh() {
        this.interfaces = new ArrayList<InterfaceNode>();
        List list = this.cf.getInterfaces();
        for (int i = 0; i < list.size(); i++) {
            Interface interface0 = (Interface) list.get(i);
            this.interfaces.add(new InterfaceNode(this.cf, interface0));
        }
    }
View Full Code Here

Examples of nexj.core.meta.integration.service.Interface

    * Tests that an XSD can be generated from an interface that has
    * messages using the same namespace.
    */
   public void testInterfaceToXSDWithOneNamespace() throws Exception
   {
      Interface iface = m_metadata.getInterface("XSDExportTest1");

      m_exporter.setOutputMode(XSDMessageExporter.OUTMODE_XSD);
      m_exporter.export(iface, m_resultWriter);

      assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
View Full Code Here

Examples of org.activiti.bpmn.model.Interface

 
  protected static final Logger LOGGER = LoggerFactory.getLogger(InterfaceParser.class.getName());
 
  public void parse(XMLStreamReader xtr, BpmnModel model) throws Exception {
   
    Interface interfaceObject = new Interface();
    BpmnXMLUtil.addXMLLocation(interfaceObject, xtr);
    interfaceObject.setId(model.getTargetNamespace() + ":" + xtr.getAttributeValue(null, ATTRIBUTE_ID));
    interfaceObject.setName(xtr.getAttributeValue(null, ATTRIBUTE_NAME));
    interfaceObject.setImplementationRef(parseMessageRef(xtr.getAttributeValue(null, ATTRIBUTE_IMPLEMENTATION_REF), model));
   
    boolean readyWithInterface = false;
    Operation operation = null;
    try {
      while (readyWithInterface == false && xtr.hasNext()) {
        xtr.next();
        if (xtr.isStartElement() && ELEMENT_OPERATION.equals(xtr.getLocalName())) {
          operation = new Operation();
          BpmnXMLUtil.addXMLLocation(operation, xtr);
          operation.setId(model.getTargetNamespace() + ":" + xtr.getAttributeValue(null, ATTRIBUTE_ID));
          operation.setName(xtr.getAttributeValue(null, ATTRIBUTE_NAME));
          operation.setImplementationRef(parseMessageRef(xtr.getAttributeValue(null, ATTRIBUTE_IMPLEMENTATION_REF), model));

        } else if (xtr.isStartElement() && ELEMENT_IN_MESSAGE.equals(xtr.getLocalName())) {
          String inMessageRef = xtr.getElementText();
          if (operation != null && StringUtils.isNotEmpty(inMessageRef)) {
            operation.setInMessageRef(parseMessageRef(inMessageRef.trim(), model));
          }
         
        } else if (xtr.isStartElement() && ELEMENT_OUT_MESSAGE.equals(xtr.getLocalName())) {
          String outMessageRef = xtr.getElementText();
          if (operation != null && StringUtils.isNotEmpty(outMessageRef)) {
            operation.setOutMessageRef(parseMessageRef(outMessageRef.trim(), model));
          }
         
        } else if (xtr.isEndElement() && ELEMENT_OPERATION.equalsIgnoreCase(xtr.getLocalName())) {
          if (operation != null && StringUtils.isNotEmpty(operation.getImplementationRef())) {
            interfaceObject.getOperations().add(operation);
          }
         
        } else if (xtr.isEndElement() && ELEMENT_INTERFACE.equals(xtr.getLocalName())) {
          readyWithInterface = true;
        }
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.