Examples of XmlAttribute


Examples of org.apache.uima.internal.util.XmlAttribute

        OotsElementData oed = this.sharedData.getOutOfTypeSystemFeatures(addr);
        if (oed != null) {
          //attributes
          Iterator<XmlAttribute> attrIter = oed.attributes.iterator();
          while (attrIter.hasNext()) {
            XmlAttribute attr = (XmlAttribute)attrIter.next();
            addAttribute(workAttrs, attr.name, attr.value);
          }
          //child elements
          childElements.addAll(oed.childElements);
        }
View Full Code Here

Examples of org.apache.uima.internal.util.XmlAttribute

        addAttribute(workAttrs, ID_ATTR_NAME, oed.xmiId);

        // Add other attributes
        Iterator<XmlAttribute> attrIt = oed.attributes.iterator();
        while (attrIt.hasNext()) {
          XmlAttribute attr = (XmlAttribute) attrIt.next();
          addAttribute(workAttrs, attr.name, attr.value);
        }
       
        // serialize element
        startElement(oed.elementName, workAttrs, oed.childElements.size());
       
        //serialize features encoded as child elements
        Iterator<XmlElementNameAndContents> childElemIt = oed.childElements.iterator();
        while (childElemIt.hasNext()) {
          XmlElementNameAndContents child = childElemIt.next();
          workAttrs.clear();
          Iterator attrIter = child.attributes.iterator();
          while (attrIter.hasNext()) {
            XmlAttribute attr =(XmlAttribute)attrIter.next();
            addAttribute(workAttrs, attr.name, attr.value);
          }
         
          if (child.contents != null) {
            startElement(child.name, workAttrs, 1);
View Full Code Here

Examples of org.apache.uima.internal.util.XmlAttribute

    OotsElementData oed = (OotsElementData)this.ootsFeatures.get(key);
    if (oed == null) {
      oed = new OotsElementData();
      this.ootsFeatures.put(key, oed);
    }
    oed.attributes.add(new XmlAttribute(featName, featVal));
 
View Full Code Here

Examples of org.eclipse.persistence.jaxb.xmlmodel.XmlAttribute

                        XmlElementRef xmer = (XmlElementRef) att;
                        String fieldName = xmer.getJavaAttribute();
                        String fieldType = xmer.getType();
                        fieldsToReturn.add(new OXMJavaFieldImpl(fieldName, fieldType, this));
                    } else if (att instanceof XmlAttribute) {
                        XmlAttribute xma = (XmlAttribute) att;
                        String fieldName = xma.getJavaAttribute();
                        String fieldType = xma.getType();
                        fieldsToReturn.add(new OXMJavaFieldImpl(fieldName, fieldType, this));
                    } else if (att instanceof XmlValue) {
                        XmlValue xmv = (XmlValue) att;
                        String fieldName = xmv.getJavaAttribute();
                        String fieldType = xmv.getType();
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLAttribute

   }

   protected void fillStructure () {
      // CUSTOM: Remove unused types
      // required
      XMLAttribute attrType=new XMLAttribute(this,"Type",
         true,
         new String[] {
//            XPDLConstants.PARTICIPANT_TYPE_RESOURCE_SET,
//            XPDLConstants.PARTICIPANT_TYPE_RESOURCE,
            XPDLConstants.PARTICIPANT_TYPE_ROLE,
View Full Code Here

Examples of org.jgroups.annotations.XmlAttribute

            tmp.setAttribute("name", el.name());
            tmp.setAttribute("type", el.type());
            choice.appendChild(tmp);
        }

        XmlAttribute xml_attr=Util.getAnnotation(clazz, XmlAttribute.class);
        if(xml_attr != null) {
            String[] attrs=xml_attr.attrs();
            if(attrs != null && attrs.length > 0) {
                Set<String> set=new HashSet<String>(Arrays.asList(attrs)); // to weed out dupes
                for(String attr: set) {
                    Element attributeElement = xmldoc.createElement("xs:attribute");
                    attributeElement.setAttribute("name", attr);
View Full Code Here

Examples of org.mizartools.utility.xml.XMLAttribute

    public LinkedList<XMLElement> getXMLElementList() {
        LinkedList<XMLElement> xmlElementList = new LinkedList<XMLElement>();
        XMLElement xmlElement = new XMLElement(NAME);
        if (this.pid != null) {
            XMLAttribute xmlAttribute = new XMLAttribute("pid", this.pid);
            xmlElement.getXMLAttributeList().add(xmlAttribute);
        }
        if (this.vid != null) {
            XMLAttribute xmlAttribute = new XMLAttribute("vid", this.vid);
            xmlElement.getXMLAttributeList().add(xmlAttribute);
        }
        boolean isEmpty = !(typ != null
         || formula != null);
        xmlElement.setEmpty(isEmpty);
View Full Code Here

Examples of org.polyglotted.xpathstax.model.XmlAttribute

            Closeables.closeQuietly(inputStream);
        }
    }

    private void processStartElement(XMLStreamReader2 xmlr, NodeContext context, String curElement) {
        XmlAttribute attribute = XmlAttribute.from(xmlr);

        List<NodeHandler> handlers = Lists.newArrayList();
        for (Entry<XPathRequest, NodeHandler> entry : handlersMap.entrySet()) {
            if (entry.getKey().canProcess(curElement, attribute, context)) {
                NodeHandler handler = entry.getValue();
View Full Code Here

Examples of org.xmlpull.infoset.XmlAttribute

  }
 
 
  public static int getSimpleTypeIndex(XmlElement element){
   
    XmlAttribute type = element.attribute(STR_TYPE);
    if( null == type){
      return -1;
    }
    String typeQNameString = type.getValue();
    String typeName = XMLUtil.getLocalPartOfQName(typeQNameString);
        String prefix = XMLUtil.getPrefixOfQName(typeQNameString);
        XmlNamespace namespace = element.lookupNamespaceByPrefix(prefix);
        if (namespace == null) {
           return -1;
        }
        QName typeQname = new QName(namespace.getName(), typeName, prefix);
        int simpleTypeIndex = getSimpleTypeIndex(typeQname);
        if( -1 == simpleTypeIndex){
          return -1;
        }
       
        XmlAttribute maxOccurs = element.attribute(STR_MAX_OCCURS);
        if(maxOccurs != null && STR_UNBOUNDED.equals(maxOccurs.getValue())){
          //this is the comvention the arraytype index is simplextye index + NUM
          return NUM+simpleTypeIndex;
        }else{
          return simpleTypeIndex;
        }
View Full Code Here

Examples of org.xmlpull.infoset.XmlAttribute

//        invokeService.addAttribute("name", arg1)
        QName partnerLinkTypeQName = link.getPartnerLinkTypeQName();
        Iterator<org.xmlpull.infoset.XmlElement> plIterator = partnerLinkTypes.iterator();
        while(plIterator.hasNext()){
          org.xmlpull.infoset.XmlElement plType = plIterator.next();
          XmlAttribute plTypeName = plType.attribute(NAME);
          if(plTypeName.getValue().equals(partnerLinkTypeQName.getLocalPart())){
            //found the correct partnerlink type
            //now find the porttype
             
            XmlAttribute plPortType = plType.element("role").attribute("portType");
            String portTypeQnameString = plPortType.getValue();
            String[] portTypeSegs = portTypeQnameString.split(":");
            Iterator<org.xmlpull.infoset.XmlNamespace> namespaceIterator = wsdlXml.namespaces().iterator();
            QName portTypeQname = null;
            //find the qname of the porttype
            while (namespaceIterator.hasNext()) {
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.