예제 #1
0
        /**
         * Read a tag with a given tag id. The tag will be read out of the class
         * defined in getTagEnum().
         *
         * @param tagid
         *            A RPM tag id
         * @return The name of the RPM tag
         * @throws IllegalArgumentException
         *             if the tag id was not found
         */
        public String getTagNameForId(long tagid)
        {
            EnumIf e = RPMHeaderTag.getEnumById(tagid);

            if (e == null)
            {
                throw new java.lang.IllegalArgumentException("unknown tag with id <" + tagid
                                                             + ">");
            }
            return(e.getName());
        }
예제 #2
0
파일: LeadOS.cs 프로젝트: bastie/NetVampire
 /*
  * @see com.jguild.jrpm.io.constant.EnumIf#getName()
  */
 public String getName()
 {
     return(delegateJ.getName());
 }
예제 #3
0
 /*
  * @see com.jguild.jrpm.io.constant.EnumIf#getName()
  */
 public String getName()
 {
     return(delegateJ.getName() + "\t" + getId());
 }