/** * Returns the attribute creator at the end of the path by looking it up * directly in the registry. */ private AttributeCreatorImpl getAttributeCreator(Path path) { Preconditions.checkArgument(path.selectsAttribute(), "Must be an attribute path"); ElementKey<?, ?> parent = path.getParentKey(); if (parent == null) { parent = elementKey; } AttributeKey<?> selected = path.getSelectedAttributeKey(); return (AttributeCreatorImpl) registry.build( parent, selected, transformKey.getContext()); }
/** * Returns the attribute creator at the end of the path by looking it up * directly in the registry. */ private AttributeCreatorImpl getAttributeCreator(Path path) { Preconditions.checkArgument(path.selectsAttribute(), "Must be an attribute path"); ElementKey<?, ?> parent = path.getParentKey(); if (parent == null) { parent = elementKey; } AttributeKey<?> selected = path.getSelectedAttributeKey(); return (AttributeCreatorImpl) registry.build( parent, selected, transformKey.getContext()); }
/** * Returns the attribute creator at the end of the path by looking it up * directly in the registry. */ private AttributeCreatorImpl getAttributeCreator(Path path) { Preconditions.checkArgument(path.selectsAttribute(), "Must be an attribute path"); ElementKey<?, ?> parent = path.getParentKey(); if (parent == null) { parent = elementKey; } AttributeKey<?> selected = path.getSelectedAttributeKey(); return (AttributeCreatorImpl) registry.build( parent, selected, transformKey.getContext()); }
/** * Returns the element creator at the end of the path by looking it up * directly in the registry (not traversing). */ private ElementCreatorImpl getElementCreator(Path path) { Preconditions.checkArgument(path.selectsElement(), "Must be an element path"); ElementKey<?, ?> parent = path.getParentKey(); if (parent == null) { parent = elementKey; } ElementKey<?, ?> selected = path.getSelectedElementKey(); return (ElementCreatorImpl) registry.build( parent, selected, transformKey.getContext()); }
/** * Returns the element creator at the end of the path by looking it up * directly in the registry (not traversing). */ private ElementCreatorImpl getElementCreator(Path path) { Preconditions.checkArgument(path.selectsElement(), "Must be an element path"); ElementKey<?, ?> parent = path.getParentKey(); if (parent == null) { parent = elementKey; } ElementKey<?, ?> selected = path.getSelectedElementKey(); return (ElementCreatorImpl) registry.build( parent, selected, transformKey.getContext()); }
/** * Returns the element creator at the end of the path by looking it up * directly in the registry (not traversing). */ private ElementCreatorImpl getElementCreator(Path path) { Preconditions.checkArgument(path.selectsElement(), "Must be an element path"); ElementKey<?, ?> parent = path.getParentKey(); if (parent == null) { parent = elementKey; } ElementKey<?, ?> selected = path.getSelectedElementKey(); return (ElementCreatorImpl) registry.build( parent, selected, transformKey.getContext()); }