コード例 #1
0
 @Override
 Set<String> getChildNames(final Iterator<PathElement> iterator) {
   if (iterator.hasNext()) {
     final PathElement next = iterator.next();
     final NodeSubregistry subregistry = children.get(next.getKey());
     if (subregistry == null) {
       return Collections.emptySet();
     }
     return subregistry.getChildNames(iterator, next.getValue());
   } else {
     final Map<String, NodeSubregistry> children = this.children;
     if (children != null) {
       return Collections.unmodifiableSet(children.keySet());
     }
     return Collections.emptySet();
   }
 }
コード例 #2
0
 /** Gets whether this registration has an alternative wildcard registration */
 boolean hasNoAlternativeWildcardRegistration() {
   return parent == null
       || PathElement.WILDCARD_VALUE.equals(valueString)
       || !parent.getChildNames().contains(PathElement.WILDCARD_VALUE);
 }