Lines Matching defs:name

114     //this node's name
133 * parent node and node name.
138 * @param name
139 * the name of the new node or an empty string to indicate that
142 * if the name contains a slash character or is empty if {@code
145 protected AbstractPreferences(AbstractPreferences parent, String name) {
146 if ((parent == null ^ name.length() == 0) || name.indexOf("/") >= 0) {
154 nodeName = name;
175 * Returns the child node with the specified name or {@code null} if it
176 * doesn't exist. Implementers can assume that the name supplied to this
177 * method will be a valid node name string (conforming to the node naming
181 * @param name
182 * the name of the desired child node.
183 * @return the child node with the given name or {@code null} if it doesn't
189 protected AbstractPreferences getChild(String name)
196 if (childrenName.equals(name)) {
197 result = childSpi(name);
244 * Returns the child preference node with the given name, creating it
246 * given name is valid and that this node has not been removed or cached.
255 * @param name
256 * the name of the child preference to be returned.
259 protected abstract AbstractPreferences childSpi(String name);
267 * @param name
272 protected abstract void putSpi(String name, String value);
520 public String name() {
525 public Preferences node(String name) {
529 validateName(name);
530 if (name.isEmpty()) {
532 } else if ("/".equals(name)) {
535 if (name.startsWith("/")) {
537 name = name.substring(1);
543 return startNode.nodeImpl(name, true);
550 private void validateName(String name) {
551 if (name.endsWith("/") && name.length() > 1) {
554 if (name.indexOf("//") >= 0) {
564 for (String name : names) {
566 temp = currentNode.cachedNode.get(name);
568 temp = getNodeFromBackend(createNew, currentNode, name);
580 AbstractPreferences currentNode, String name) throws BackingStoreException {
581 if (name.length() > MAX_NAME_LENGTH) {
582 throw new IllegalArgumentException("Name '" + name + "' too long");
586 temp = currentNode.childSpi(name);
587 currentNode.cachedNode.put(name, temp);
592 temp = currentNode.getChild(name);
598 public boolean nodeExists(String name) throws BackingStoreException {
599 if (name == null) {
600 throw new NullPointerException("name == null");
605 if (name.isEmpty()) {
610 validateName(name);
611 if (name.isEmpty() || "/".equals(name)) {
614 if (name.startsWith("/")) {
616 name = name.substring(1);
622 Preferences result = startNode.nodeImpl(name, false);
819 EventDispatcher(String name){
820 super(name);