Examples of Tag


Examples of com.intellij.util.xmlb.annotations.Tag

  private final Accessor myAccessor;
  private final String myTagName;

  public JDOMElementBinding(final Accessor accessor) {
    myAccessor = accessor;
    final Tag tag = XmlSerializerImpl.findAnnotation(myAccessor.getAnnotations(), Tag.class);
    assert tag != null : "jdom.Element property without @Tag annotation: " + accessor;
    myTagName = tag.value();
  }
View Full Code Here

Examples of com.jdkcn.myblog.domain.Tag

    tagService = injector.getInstance(TagService.class);
  }
 
  @Test
  public void testCreateOrUpdate() throws Exception {
    Tag tag = new Tag();
    tag.setName("Java");
    assertNull(tag.getId());
    String tagId = tagService.saveOrUpdate(tag).getId();
    assertNotNull(tagId);
   
    Tag savedTag = tagService.get(tagId);
   
    assertEquals("Java", savedTag.getName());
  }
View Full Code Here

Examples of com.mojang.nbt.Tag

        // TODO: alternatively, hide sections from interface
        chunk.loadSections(sections);

        EntityFactory factory = manager.getEntityFactory();
       
        Tag tagEntities = level.get("Entities");  
        if(tagEntities != null)
        {
            ListTag<CompoundTag> list = (ListTag<CompoundTag>)tagEntities;           
            for(int i=0; i<list.size(); i++)
                chunk.entities.add(factory.createEntity(list.get(i)));
        }
       
        Tag tagTileEntities = level.get("TileEntities");
        if(tagEntities != null)
        {
            ListTag<CompoundTag> list = (ListTag<CompoundTag>)tagTileEntities;           
            for(int i=0; i<list.size(); i++)
                chunk.tileEntities.add(factory.createTileEntity(list.get(i)));
View Full Code Here

Examples of com.multysite.entity.Tag

  @SuppressWarnings("unchecked")
  public static Tag getById(String alias) {
    try {
      init();
      boolean cached = false;
      Tag obj = new Tag();
      String prefix = cachePrefix + "alias_" + alias;
      try {
        obj = (Tag) cache.get(prefix);
        if (obj != null) {
          cached = true;
View Full Code Here

Examples of com.nabalive.data.core.model.Tag

                            response.write("ok");
                            return;
                        }

                        if (!nabaztag.hasTag(tagValue)) {
                            Tag tag = new Tag();
                            tag.setValue(tagValue);
                            tag.setName(tagValue);
                            nabaztag.getTags().add(tag);
                            nabaztagDAO.save(nabaztag);
                            nabaztagController.tts(nabaztag.getMacAddress(), host, "fr", "Nouveau tag ajouté");
                        } else {
                            for (ApplicationConfig applicationConfig : nabaztag.getApplicationConfigList()) {
View Full Code Here

Examples of com.netflix.servo.tag.Tag

    public HystrixServoMetricsPublisherThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) {
        this.key = threadPoolKey;
        this.metrics = metrics;
        this.properties = properties;

        this.servoInstanceTag = new Tag() {

            @Override
            public String getKey() {
                return "instance";
            }

            @Override
            public String getValue() {
                return key.name();
            }

            @Override
            public String tagString() {
                return key.name();
            }

        };
        this.servoTypeTag = new Tag() {

            @Override
            public String getKey() {
                return "type";
            }
View Full Code Here

Examples of com.ponxu.blog4j.model.Tag

  // 把标签关联到文章
  private void updateTags(Post post, int[] tagIds) {
    // 1 删除多余标签
    Iterator<Tag> tit = post.getTags().iterator();
    while (tit.hasNext()) {
      Tag tag = tit.next();
      if (BeanUtils.isNot(tag.getId(), tagIds)) {
        removeTag(post.getId(), tag.getId());
        tit.remove();
      }
    }

    // 2 关联新增标签
View Full Code Here

Examples of com.pugh.sockso.music.tag.Tag

     *
     */

    protected void addFile( final int collectionId, final File file ) throws InvalidTagException, IOException {

        final Tag tag = AudioTag.getTag( file );

  log.debug( tag.toString() );

        final int artistId = addArtist( tag.getArtist() );
        int albumArtistId = artistId;

        if ( StringUtils.isBlank(tag.getAlbumArtist()) ) {
            albumArtistId = addArtist( tag.getAlbumArtist() );
        }

        final int albumId  = addAlbum( albumArtistId, tag.getAlbum(), tag.getAlbumYear() );
        final int genreId  = addGenre( tag.getGenre() );
        final int trackId  = addTrack( artistId, albumId, tag.getTrack(),
                tag.getTrackNumber(), file, collectionId, genreId );

        if ( Utils.isFeatureEnabled( p, Constants.COLLMAN_SCAN_COVERS ) ) {

            final BufferedImage coverArt = tag.getCoverArt();
           
            if ( coverArt != null ) {
                addCoverArt( albumArtistId, "ar", coverArt );
                addCoverArt( albumId, "al", coverArt );
                addCoverArt( trackId, "tr", coverArt );
View Full Code Here

Examples of com.sk89q.jnbt.Tag

            return;
        }

        Map<String, Tag> values = rootTag.getValue();

        Tag t = values.get("id");
        if (!(t instanceof StringTag) || !((StringTag) t).getValue().equals("MobSpawner")) {
            throw new RuntimeException("'MobSpawner' tile entity expected");
        }

        StringTag mobTypeTag;
View Full Code Here

Examples of com.socialnetworkshirts.twittershirts.renderer.model.Tag

        TextLine textLine = null;
        double minPadding = fm.getHeight();

        try {
            for (int i = 0; i < tags.size(); i++) {
                Tag tag = tags.get(i);
                String value = tag.getValue();
                Rectangle2D rect = fm.getStringBounds(value, g);
                // create new textline if not exists
                if (i == 0) {
                    textLine = new TextLine();
                    textLines.add(textLine);
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.