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

            if (e == null)
            {
                throw new java.lang.IllegalArgumentException("unknown tag with name <"
                                                             + tagname + ">");
            }

            return(e.getId());
        }
예제 #2
0
파일: LeadOS.cs 프로젝트: bastie/NetVampire
 /*
  * @see com.jguild.jrpm.io.constant.EnumIf#getId()
  */
 public long getId()
 {
     return(delegateJ.getId());
 }