Lines Matching refs:primaryType
45 private String primaryType; // primary type
57 * @param primaryType primary type
61 public ContentType(String primaryType, String subType,
63 this.primaryType = primaryType;
72 * is parsed into its constituents: primaryType, subType
86 primaryType = tk.getValue();
106 return new ContentType(primaryType,subType,list.copy());
114 return primaryType;
128 * the primaryType, the '/' character and the secondaryType.
133 return primaryType + '/' + subType;
161 * @param primaryType primary type
163 public void setPrimaryType(String primaryType) {
164 this.primaryType = primaryType;
206 if (primaryType == null || subType == null) // need both
210 sb.append(primaryType).append('/').append(subType);
222 * compares <strong>only the <code>primaryType</code> and
223 * <code>primaryType</code> </strong>. The parameters of both operands
237 * @return true if <code>primaryType</code> and <code>subType</code>
241 // Match primaryType
242 if (!primaryType.equalsIgnoreCase(cType.getPrimaryType()))
260 * compares <strong>only the <code>primaryType</code> and
275 * @return true if <code>primaryType</code> and <code>subType</code>