/** * 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()); }
/* * @see com.jguild.jrpm.io.constant.EnumIf#getId() */ public long getId() { return(delegateJ.getId()); }