Package tk.eclipse.plugin.htmleditor.assist

Examples of tk.eclipse.plugin.htmleditor.assist.TagInfo.addAttributeInfo()


    setProperty.addAttributeInfo(new AttributeInfo("param",true));
    setProperty.addAttributeInfo(new AttributeInfo("property",true));
    tagList.add(setProperty);
   
    TagInfo include = new TagInfo("jsp:include",false);
    include.addAttributeInfo(new AttributeInfo("page",true));
    tagList.add(include);
   
    TagInfo forward = new TagInfo("jsp:forward",true);
    forward.addAttributeInfo(new AttributeInfo("page",true));
    tagList.add(forward);
View Full Code Here


    TagInfo include = new TagInfo("jsp:include",false);
    include.addAttributeInfo(new AttributeInfo("page",true));
    tagList.add(include);
   
    TagInfo forward = new TagInfo("jsp:forward",true);
    forward.addAttributeInfo(new AttributeInfo("page",true));
    tagList.add(forward);
   
    TagInfo param = new TagInfo("jsp:param",false);
    param.addAttributeInfo(new AttributeInfo("name",true));
    param.addAttributeInfo(new AttributeInfo("value",true));
View Full Code Here

    TagInfo forward = new TagInfo("jsp:forward",true);
    forward.addAttributeInfo(new AttributeInfo("page",true));
    tagList.add(forward);
   
    TagInfo param = new TagInfo("jsp:param",false);
    param.addAttributeInfo(new AttributeInfo("name",true));
    param.addAttributeInfo(new AttributeInfo("value",true));
    tagList.add(param);
   
    TagInfo attribute = new TagInfo("jsp:attribute",true);
    attribute.addAttributeInfo(new AttributeInfo("name",true));
View Full Code Here

    forward.addAttributeInfo(new AttributeInfo("page",true));
    tagList.add(forward);
   
    TagInfo param = new TagInfo("jsp:param",false);
    param.addAttributeInfo(new AttributeInfo("name",true));
    param.addAttributeInfo(new AttributeInfo("value",true));
    tagList.add(param);
   
    TagInfo attribute = new TagInfo("jsp:attribute",true);
    attribute.addAttributeInfo(new AttributeInfo("name",true));
    tagList.add(attribute);
View Full Code Here

    param.addAttributeInfo(new AttributeInfo("name",true));
    param.addAttributeInfo(new AttributeInfo("value",true));
    tagList.add(param);
   
    TagInfo attribute = new TagInfo("jsp:attribute",true);
    attribute.addAttributeInfo(new AttributeInfo("name",true));
    tagList.add(attribute);
   
    TagInfo body = new TagInfo("jsp:body",true);
    tagList.add(body);
   
View Full Code Here

   
    TagInfo body = new TagInfo("jsp:body",true);
    tagList.add(body);
   
    TagInfo element = new TagInfo("jsp:element",true);
    element.addAttributeInfo(new AttributeInfo("name",true));
    tagList.add(element);
   
    TagInfo text = new TagInfo("jsp:text",true);
    tagList.add(text);
   
View Full Code Here

        }
        AttributeInfo attrInfo = new AttributeInfo(attrName,true,AttributeInfo.NONE,required);
        if(attrDescMap.get(attrName)!=null){
          attrInfo.setDescription(wrap((String)attrDescMap.get(attrName)));
        }
        info.addAttributeInfo(attrInfo);
      }
      if(tagDesc.length() > 0){
        info.setDescription(wrap(tagDesc.toString()));
      }
      result.add(info);
View Full Code Here

            if (decl == DTDDecl.REQUIRED) {
              required = true;
            }

            AttributeInfo attrInfo = new AttributeInfo(attrName, true, AttributeInfo.NONE, required);
            tagInfo.addAttributeInfo(attrInfo);

            Object attrType = attr.getType();
            if (attrType instanceof DTDEnumeration) {
              DTDEnumeration dtdEnum = (DTDEnumeration) attrType;
              String[] items = dtdEnum.getItems();
View Full Code Here

      XSObjectList attrs = ((XSComplexTypeDefinition) type).getAttributeUses();
      for (int i = 0; i < attrs.getLength(); i++) {
        XSAttributeUse attrUse = (XSAttributeUse) attrs.item(i);
        XSAttributeDeclaration attr = attrUse.getAttrDeclaration();
        AttributeInfo attrInfo = new AttributeInfo(attr.getName(), true, AttributeInfo.NONE, attrUse.getRequired());
        tagInfo.addAttributeInfo(attrInfo);
      }

    }
  }
View Full Code Here

  private TagInfo createPrefixTagInfo(TagInfo tagInfo, String prefix) {
    TagInfo newTagInfo = new TagInfo(prefix + ":" + tagInfo.getTagName(), tagInfo.hasBody());
    AttributeInfo[] attrInfos = tagInfo.getAttributeInfo();
    for (int i = 0; i < attrInfos.length; i++) {
      AttributeInfo newAttrInfo = new AttributeInfo(prefix + ":" + attrInfos[i].getAttributeName(), true, AttributeInfo.NONE, attrInfos[i].isRequired());
      newTagInfo.addAttributeInfo(newAttrInfo);
    }
    String[] children = tagInfo.getChildTagNames();
    for (int i = 0; i < children.length; i++) {
      newTagInfo.addChildTagName(prefix + ":" + children[i]);
    }
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.