/** * Returns the appropriate metadata to use for the given qualified name. */ protected ElementMetadata<?, ?> findMetadata(QName qName) { if (metadata == null) { return null; } ElementKey<?, ?> childKey = metadata.findElement(qName); if (childKey == null) { return null; } ElementMetadata<?, ?> childMeta = metadata.bindElement(childKey); return childMeta; }
public ElementKey<?, ?> findElement(QName id) { return delegate().findElement(id); }
/** * Returns the appropriate metadata to use for the given qualified name. */ protected ElementMetadata<?, ?> findMetadata(QName qName) { if (metadata == null) { return null; } ElementKey<?, ?> childKey = metadata.findElement(qName); if (childKey == null) { return null; } ElementMetadata<?, ?> childMeta = metadata.bindElement(childKey); return childMeta; }
public ElementKey<?, ?> findElement(QName id) { return delegate().findElement(id); }
public ElementKey<?, ?> findElement(QName id) { return delegate().findElement(id); }
/** * Returns the appropriate metadata to use for the given qualified name. */ protected ElementMetadata<?, ?> findMetadata(QName qName) { if (metadata == null) { return null; } ElementKey<?, ?> childKey = metadata.findElement(qName); if (childKey == null) { return null; } ElementMetadata<?, ?> childMeta = metadata.bindElement(childKey); return childMeta; }
/** * Conditionally adds a new element path step. For absolute paths, it will * be added if the {@link QName} matches a valid child element type for the * current selected element. If the path is relative a new * {@link ElementKey} step corresponding to the name will be unconditionally * added. * * @param id qualified name of child element step to add * @return {@code true} if added successfully, {@code false} otherwise. * @throws PathException if this path is an attribute path. Once a path has * an attribute key no more steps may be added. */ public boolean addIfElement(QName id) { ElementKey<?, ?> elemKey; if (selectedElement != null) { elemKey = selectedElement.findElement(id); if (elemKey == null) { return false; } selectedElement = selectedElement.bindElement(elemKey); } else { elemKey = ElementKey.of(id); } addToStepList(elemKey); return true; }
/** * Conditionally adds a new element path step. For absolute paths, it will * be added if the {@link QName} matches a valid child element type for the * current selected element. If the path is relative a new * {@link ElementKey} step corresponding to the name will be unconditionally * added. * * @param id qualified name of child element step to add * @return {@code true} if added successfully, {@code false} otherwise. * @throws PathException if this path is an attribute path. Once a path has * an attribute key no more steps may be added. */ public boolean addIfElement(QName id) { ElementKey<?, ?> elemKey; if (selectedElement != null) { elemKey = selectedElement.findElement(id); if (elemKey == null) { return false; } selectedElement = selectedElement.bindElement(elemKey); } else { elemKey = ElementKey.of(id); } addToStepList(elemKey); return true; }
/** * Conditionally adds a new element path step. For absolute paths, it will * be added if the {@link QName} matches a valid child element type for the * current selected element. If the path is relative a new * {@link ElementKey} step corresponding to the name will be unconditionally * added. * * @param id qualified name of child element step to add * @return {@code true} if added successfully, {@code false} otherwise. * @throws PathException if this path is an attribute path. Once a path has * an attribute key no more steps may be added. */ public boolean addIfElement(QName id) { ElementKey<?, ?> elemKey; if (selectedElement != null) { elemKey = selectedElement.findElement(id); if (elemKey == null) { return false; } selectedElement = selectedElement.bindElement(elemKey); } else { elemKey = ElementKey.of(id); } addToStepList(elemKey); return true; }