Examples of TagInfo


Examples of org.apache.sanselan.formats.tiff.constants.TagInfo

                    {
                        // ignore offset fields.
                        continue;
                    }

                    TagInfo tagInfo = srcField.tagInfo;
                    FieldType fieldType = srcField.fieldType;
                    int count = srcField.length;
                    //            byte bytes[] = srcField.fieldType.getRawBytes(srcField);

                    //                    Debug.debug("tagInfo", tagInfo);

                    Object value = srcField.getValue();

                    //                    Debug.debug("value", Debug.getType(value));

                    byte bytes[] = tagInfo.encodeValue(fieldType, value,
                            byteOrder);

                    //                    if (tagInfo.isUnknown())
                    //                        Debug.debug(
                    //                                "\t" + "unknown tag(0x"
View Full Code Here

Examples of org.araneaframework.jsp.support.TagInfo

          FormElementViewSelector.FORM_ELEMENT_VIEW_SELECTOR_PROPERTY);
   
    if(viewSelector == null)
      throw new JspException("The form element view selector was not passed!.");
   
    TagInfo tagInfo = (TagInfo) tagMapping.get(viewSelector.getTag());
   
    if(tagInfo == null)
      throw new JspException("Unexistant tag was passed to form element view selector!.");   
   
    Class tagClass = Class.forName(tagInfo.getTagClassName());
   
    controlTag = (UiFormElementTagInterface) tagClass.newInstance();
   
    registerSubtag(controlTag);
   
View Full Code Here

Examples of org.kitteh.tag.api.TagInfo

    @Override
    protected void handlePacketAdd(Object o, Player owner) {
        if (o instanceof Packet20NamedEntitySpawn) {
            final Packet20NamedEntitySpawn packet = ((Packet20NamedEntitySpawn) o);
            final TagInfo info = this.handler.getNameForPacket20((String) null, packet.a, packet.b, owner);
            if (info != null) {
                packet.b = info.getName();
            }
        }
    }
View Full Code Here

Examples of org.nfctools.api.TagInfo

  protected MfClassicNdefOperations createNdefOperations(ApduTag tag, MemoryLayout memoryLayout) {
    boolean formatted = false;
    boolean writable = false;
    MfClassicReaderWriter readerWriter = new AcrMfClassicReaderWriter(tag, memoryLayout);
    TagInfo tagInfo = null;
    try {
      tagInfo = readerWriter.getTagInfo();
      if (readerWriter.hasApplicationDirectory()) {
        ApplicationDirectory applicationDirectory = readerWriter.getApplicationDirectory();
        if (applicationDirectory.hasApplication(MfConstants.NDEF_APP_ID)) {
View Full Code Here

Examples of plugins.audioPlayer.javazoom.jlgui.player.amp.tag.TagInfo

            if (pli.isSelected()) break;
        }
        // Display Tag Info.
        if (pli != null)
        {
            TagInfo taginfo = pli.getTagInfo();
            TagInfoFactory factory = TagInfoFactory.getInstance();
            TagInfoDialog dialog = factory.getTagInfoDialog(taginfo);
            dialog.setLocation(player.getLoader().getLocation().x, player.getLoader().getLocation().y + player.getHeight());
            dialog.show();           
        }
View Full Code Here

Examples of plugins.audioPlayer.javazoom.jlgui.player.amp.tag.TagInfo

        list.setModel(m);
    }

    public String getDisplayString(PlaylistItem pi)
    {
        TagInfo song = pi.getTagInfo();
        String element;
        String location = pi.getLocation();
        location = location.substring(location.lastIndexOf(sep) + 1, location.lastIndexOf("."));
        if (song == null)
        {
            element = location;
        }
        else
        {
            if (song.getArtist() == null || song.getArtist().equals(""))
            {
                element = location;
            }
            else
            {
                element = song.getArtist().trim();
                if (song.getTitle() == null || song.getTitle().equals(""))
                {
                    element += " - " + location;
                }
                else
                {
                    element += " - " + song.getTitle().trim();
                }
            }
        }
        return element;
    }
View Full Code Here

Examples of plugins.audioPlayer.javazoom.jlgui.player.amp.tag.TagInfo

                {
                    final int TITLE_SEARCH = 0;
                    final int ARTIST_SEARCH = 1;
                    final int ALBUM_SEARCH = 2;
                    final int FILENAME_SEARCH = 3;
                    TagInfo pli = ((PlaylistItem) pI.get(i)).getTagInfo();
                    remove[i] = false;
                    boolean found = false;
                    int searchType;
                    if (artist.isSelected())
                    {
                        searchType = ARTIST_SEARCH;
                    }
                    else if (album.isSelected())
                    {
                        searchType = ALBUM_SEARCH;
                    }
                    else if (title.isSelected())
                    {
                        searchType = TITLE_SEARCH;
                    }
                    else
                    {
                        searchType = -1;
                    }
                    for (int j = 0; j <= FILENAME_SEARCH; j++)
                    {
                        String listString = "";
                        if (pli == null)
                        {
                            if (searchType != -1)
                            {
                                break;
                            }
                            j = FILENAME_SEARCH;
                        }
                        else if (searchType != -1)
                        {
                            j = searchType;
                        }
                        switch (j)
                        {
                            case (TITLE_SEARCH):
                                if (pli.getTitle() != null) listString = pli.getTitle().toLowerCase();
                                break;
                            case (ARTIST_SEARCH):
                                if (pli.getArtist() != null) listString = pli.getArtist().toLowerCase();
                                break;
                            case (ALBUM_SEARCH):
                                if (pli.getAlbum() != null) listString = pli.getAlbum().toLowerCase();
                                break;
                            case (FILENAME_SEARCH):
                                String location = ((PlaylistItem) pI.get(i)).getLocation().toLowerCase();
                                listString = location.substring(location.lastIndexOf(sep) + 1, location.lastIndexOf("."));
                                break;
View Full Code Here

Examples of ru.org.linux.tag.TagInfo

                userTagService.hasIgnoreTag(tmpl.getCurrentUser(), tag)
        );
      }
    }

    TagInfo tagInfo = tagService.getTagInfo(tag, true);

    modelAndView.addObject("counter", tagInfo.topicCount());

    modelAndView.addObject("url", tagListUrl(tag));
    modelAndView.addObject("favsCount", userTagService.countFavs(tagInfo.id()));

    if (offset<200 && preparedTopics.size()==20) {
      modelAndView.addObject("nextLink", buildTagUri(tag, sectionId, offset + 20));
    }
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.assist.TagInfo

          DTDItem item = element.getContent();
          boolean hasBody = true;
          if(item instanceof DTDEmpty){
            hasBody = false;
          }
          TagInfo tagInfo = new TagInfo(name,hasBody);
          Iterator ite = element.attributes.keySet().iterator();
         
          // set child tags
          if(item instanceof DTDSequence){
            DTDSequence seq = (DTDSequence)item;
            setChildTagName(tagInfo,seq.getItem());
          } else if(item instanceof DTDMixed){
            // #PCDATA
          }
         
          while(ite.hasNext()){
            String attrName = (String)ite.next();
            DTDAttribute attr = element.getAttribute(attrName);
           
            DTDDecl decl = attr.getDecl();
            boolean required = false;
            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
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.