Lines Matching refs:tag

70      * Returns the value of the specified enum tag or {@code defaultValue} if the tag is not
73 * @throws IllegalArgumentException if {@code tag} is not an enum tag.
75 public Integer getEnum(int tag) {
76 if (hwEnforced.containsTag(tag)) {
77 return hwEnforced.getEnum(tag, -1);
78 } else if (swEnforced.containsTag(tag)) {
79 return swEnforced.getEnum(tag, -1);
86 * Returns all values of the specified repeating enum tag.
88 * throws IllegalArgumentException if {@code tag} is not a repeating enum tag.
90 public List<Integer> getEnums(int tag) {
92 result.addAll(hwEnforced.getEnums(tag));
93 result.addAll(swEnforced.getEnums(tag));
98 * Returns the value of the specified unsigned 32-bit int tag or {@code defaultValue} if the tag
101 * @throws IllegalArgumentException if {@code tag} is not an unsigned 32-bit int tag.
103 public long getUnsignedInt(int tag, long defaultValue) {
104 if (hwEnforced.containsTag(tag)) {
105 return hwEnforced.getUnsignedInt(tag, defaultValue);
107 return swEnforced.getUnsignedInt(tag, defaultValue);
112 * Returns all values of the specified repeating unsigned 64-bit long tag.
114 * @throws IllegalArgumentException if {@code tag} is not a repeating unsigned 64-bit long tag.
116 public List<BigInteger> getUnsignedLongs(int tag) {
118 result.addAll(hwEnforced.getUnsignedLongs(tag));
119 result.addAll(swEnforced.getUnsignedLongs(tag));
124 * Returns the value of the specified date tag or {@code null} if the tag is not present.
126 * @throws IllegalArgumentException if {@code tag} is not a date tag or if the tag's value
130 public Date getDate(int tag) {
131 Date result = swEnforced.getDate(tag, null);
135 return hwEnforced.getDate(tag, null);
139 * Returns {@code true} if the provided boolean tag is present, {@code false} if absent.
141 * @throws IllegalArgumentException if {@code tag} is not a boolean tag.
143 public boolean getBoolean(int tag) {
144 if (hwEnforced.containsTag(tag)) {
145 return hwEnforced.getBoolean(tag);
147 return swEnforced.getBoolean(tag);