Home | History | Annotate | Download | only in packet

Lines Matching refs:feature

46     private final List<Feature> features = new CopyOnWriteArrayList<Feature>();
67 for (Feature f : d.features) {
81 * Adds a new feature to the discovered information.
83 * @param feature the discovered feature
85 public void addFeature(String feature) {
86 addFeature(new Feature(feature));
96 for (String feature : featuresToAdd) {
97 addFeature(feature);
101 private void addFeature(Feature feature) {
103 features.add(feature);
112 public Iterator<Feature> getFeatures() {
179 * Returns true if the specified feature is part of the discovered information.
181 * @param feature the feature to check
182 * @return true if the requestes feature has been discovered
184 public boolean containsFeature(String feature) {
185 for (Iterator<Feature> it = getFeatures(); it.hasNext();) {
186 if (feature.equals(it.next().getVar()))
207 for (Feature feature : features) {
208 buf.append(feature.toXML());
240 List<Feature> checkedFeatures = new LinkedList<Feature>();
241 for (Feature f : features) {
242 for (Feature f2 : checkedFeatures) {
457 * as well as specific feature types of interest, if any (e.g., for the purpose of feature
460 public static class Feature {
465 * Creates a new feature offered by an XMPP entity or item.
467 * @param variable the feature's variable.
469 public Feature(String variable) {
476 * Returns the feature's variable.
478 * @return the feature's variable.
486 buf.append("<feature var=\"").append(StringUtils.escapeForXML(variable)).append("\"/>");
498 DiscoverInfo.Feature other = (DiscoverInfo.Feature) obj;