Examples of Structure


Examples of org.exolab.castor.xml.schema.Structure

        (ContentModelGroup contentModel, String schemaPrefix)
        throws SAXException
    {
        Enumeration enumeration = contentModel.enumerate();
        while (enumeration.hasMoreElements()) {
            Structure structure = (Structure) enumeration.nextElement();
            switch (structure.getStructureType()) {
                case Structure.ELEMENT:
                    processElement((ElementDecl)structure, schemaPrefix);
                    break;
                case Structure.MODELGROUP:
                case Structure.GROUP:
View Full Code Here

Examples of org.exolab.castor.xml.schema.Structure

                }
                _schema = group.getSchema();
                group = null;
                break;
            case Structure.GROUP:
                Structure parent = ((Group) _annotated).getParent();
                short structure = parent.getStructureType();
                while (structure == Structure.GROUP) {
                    parent = ((Group) parent).getParent();
                    structure = parent.getStructureType();
                }
                if (structure == Structure.COMPLEX_TYPE) {
                    _schema = ((ComplexType) parent).getSchema();
                } else if (structure == Structure.MODELGROUP) {
                    _schema = ((ModelGroup) parent).getSchema();
View Full Code Here

Examples of org.fusesource.camel.component.sap.model.rfc.Structure

        // Get BOOK_FLIGHT Request JAXB Bean object.
        BookFlightRequest bookFlightRequest = exchange.getMessage().getContent(BookFlightRequest.class);

        // Create SAP Request object from target endpoint.
        SAPEndpoint endpoint = target.getMessage().getExchange().getContext().getEndpoint("sap:destination:nplDest:BAPI_FLCUST_GETLIST", SAPEndpoint.class);
        Structure request = endpoint.getRequest();

        // Add Customer Name to request if set
        if (bookFlightRequest.getCustomerName() != null && bookFlightRequest.getCustomerName().length() > 0) {
            request.put("CUSTOMER_NAME", bookFlightRequest.getCustomerName());
            if (LOG.isDebugEnabled()) {
                LOG.debug("Added CUSTOMER_NAME = '{}' to request", bookFlightRequest.getCustomerName());
            }
        } else {
            throw new Exception("No Customer Name");
View Full Code Here

Examples of org.gstreamer.Structure

        public void newBuffer(AppSink elem)
        {
            Buffer buffer = sink.pullBuffer();

            Caps caps = buffer.getCaps();
            Structure struct = caps.getStructure(0);

            int width = struct.getInteger("width");
            int height = struct.getInteger("height");
            if (width < 1 || height < 1) {
                return;
            }
            IntBuffer rgb;
            if (passDirectBuffer) {
View Full Code Here

Examples of org.gstreamer.Structure

   * @return
   */
  public BusSyncReply syncMessage(Message message) {
    if (message.getType() != MessageType.ELEMENT)
      return BusSyncReply.PASS;
    Structure s = message.getStructure();
    if (s == null || !s.hasName("prepare-xwindow-id"))
      return BusSyncReply.PASS;
    setOverlay();
//    videosink.getBus().setSyncHandler(oldSyncHandler);
    return BusSyncReply.DROP;
  }
View Full Code Here

Examples of org.gstreamer.Structure

      }       
     
      private void doHandoff(Buffer buffer, Pad pad, boolean isPrerollFrame) {

            Caps caps = buffer.getCaps();
            Structure struct = caps.getStructure(0);

            int width = struct.getInteger("width");
            int height = struct.getInteger("height");
            if (width < 1 || height < 1) {
                return;
            }
           
            listener.bufferFrame(width, height, buffer);
View Full Code Here

Examples of org.gstreamer.Structure

      }       
       
        private void doHandoff(Buffer buffer, Pad pad, boolean isPrerollFrame) {
         
            Caps caps = buffer.getCaps();
            Structure struct = caps.getStructure(0);
           
            int width = struct.getInteger("width");
            int height = struct.getInteger("height");
            if (width < 1 || height < 1) {
                return;
            }
            IntBuffer rgb;
            if (passDirectBuffer) {
View Full Code Here

Examples of org.gstreamer.Structure

           
            int scaledWidth = currentImage.getWidth();
            if (keepAspect) {
                // Scale width according to pixel aspect ratio.
                Caps videoCaps = videoPad.getNegotiatedCaps();
                Structure capsStruct = videoCaps.getStructure(0);
                if (capsStruct.hasField("pixel-aspect-ratio")) {
                    Fraction pixelAspectRatio = capsStruct.getFraction("pixel-aspect-ratio");
                    scaledWidth = scaledWidth * pixelAspectRatio.getNumerator() / pixelAspectRatio.getDenominator();
                }
            }

            // Tell swing to use the new buffer
View Full Code Here

Examples of org.gstreamer.Structure

        public void newBuffer(AppSink elem)
        {
            Buffer buffer = sink.pullBuffer();

            Caps caps = buffer.getCaps();
            Structure struct = caps.getStructure(0);

            int width = struct.getInteger("width");
            int height = struct.getInteger("height");
            if (width < 1 || height < 1) {
                return;
            }
           
            listener.bufferFrame(width, height, buffer);
View Full Code Here

Examples of org.gstreamer.Structure

   
    public void listenForNewViews(Bus bus) {
      bus.connect(new Bus.MESSAGE() {
      public void busMessage(Bus bus, Message message) {
        if (message.getSource().getNativeAddress().equals(getNativeAddress())) {
          final Structure structure = message.getStructure();
          if (structure != null && "have-ns-view".equals(structure.getName())) {
            final Pointer nsview = (Pointer) structure.getValue("nsview");
            fireNewVideoComponent(nsview);
          }
        }
      }
    });
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.