Java Code Examples for javax.servlet.jsp.tagext.TagInfo#getInfoString()

The following examples show how to use javax.servlet.jsp.tagext.TagInfo#getInfoString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JspCompletionItem.java    From netbeans with Apache License 2.0 5 votes vote down vote up
PrefixTag(String prefix, int substitutionOffset, TagInfo ti, SyntaxElement.Tag set) {
    super(prefix + ":" + (ti != null ? ti.getTagName() : "<null>"), substitutionOffset, ti != null ? ti.getInfoString() : null); // NOI18N
    tagInfo = ti;
    if ((tagInfo != null) &&
            (tagInfo.getBodyContent().equalsIgnoreCase(TagInfo.BODY_CONTENT_EMPTY))) {
        isEmpty = true;
    }
    //test whether this tag has some attributes
    if (set != null) {
        hasAttributes = !(set.getAttributes().size() == 0);
    }
}
 
Example 2
Source File: JspCompletionItem.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public Tag(String text, int substitutionOffset, TagInfo ti) {
    super(text, substitutionOffset, ti != null ? ti.getInfoString() : null);
    this.ti = ti;
}
 
Example 3
Source File: JspCompletionItem.java    From netbeans with Apache License 2.0 4 votes vote down vote up
Directive(String text, int substitutionOffset, TagInfo tagInfo) {
    super(text, substitutionOffset, tagInfo != null ? tagInfo.getInfoString() : null);
    this.tagInfo = tagInfo;
}