public Enumeration getSteps() { return steps_.elements(); }
/** A one-level clone in which the steps list is cloned but not the steps objects themselves. * It is OK for different XPaths to share Steps because they are immutable. */ public Object clone() { Step[] steps = new Step[steps_.size()]; Enumeration step = steps_.elements(); for (int i = 0; i < steps.length; ++i) steps[i] = (Step) step.nextElement(); return new XPath(absolute_, steps); }
private String generateString() { StringBuffer result = new StringBuffer(); boolean first = true; for (Enumeration i = steps_.elements(); i.hasMoreElements();) { Step step = (Step) i.nextElement(); if (!first || absolute_) { result.append('/'); if (step.isMultiLevel()) result.append('/'); } result.append(step.toString()); first = false; } return result.toString(); }
public Enumeration getSteps() { return steps_.elements(); }
@Override public AreaDefinition getParentAreaDefinition() { if (currentRenderableDefinition instanceof AreaDefinition) { return (AreaDefinition) currentRenderableDefinition; } Enumeration<StackState> elements = stack.elements(); while (elements.hasMoreElements()) { StackState state = elements.nextElement(); if (state.renderableDefinition instanceof AreaDefinition) { return (AreaDefinition) state.renderableDefinition; } } return null; }
private boolean findTagOnStack(String tag) { java.util.Enumeration eTags = m_tags.elements(); while(eTags.hasMoreElements()) { String t2 = (String)eTags.nextElement(); if(t2.equals(tag)) return true; } return false; }
private String getContextClassName() { String contextClassName = null; Enumeration<DefinitionScope> elements = scopes.elements(); while (elements.hasMoreElements()) { DefinitionScope nextElement = elements.nextElement(); if (nextElement.enclosingClass != null) { contextClassName = nextElement.enclosingClass.getName(); } } return contextClassName; }
/** * Are we in an extension namespace? * * @return true if the current stack of open namespaces includes * an extension namespace. */ protected boolean inExtensionNamespace() { boolean inExtension = false; Enumeration elements = namespaceStack.elements(); while (!inExtension && elements.hasMoreElements()) { String ns = (String) elements.nextElement(); if (ns == null) { inExtension = true; } else { inExtension = (!ns.equals(tr9401NamespaceName) && !ns.equals(namespaceName)); } } return inExtension; }
/** A one-level clone in which the steps list is cloned but not the steps objects themselves. * It is OK for different XPaths to share Steps because they are immutable. */ public Object clone() { Step[] steps = new Step[steps_.size()]; Enumeration step = steps_.elements(); for (int i = 0; i < steps.length; ++i) steps[i] = (Step) step.nextElement(); return new XPath(absolute_, steps); }
private String getContextSuperClassName() { String contextClassName = null; Enumeration<DefinitionScope> elements = scopes.elements(); while (elements.hasMoreElements()) { DefinitionScope nextElement = elements.nextElement(); if (nextElement.enclosingClass != null && nextElement.enclosingClass.superClass != null) { contextClassName = nextElement.enclosingClass.superClass.getName(); } } return contextClassName; }
/** * Are we in an extension namespace? * * @return true if the current stack of open namespaces includes * an extension namespace. */ protected boolean inExtensionNamespace() { boolean inExtension = false; Enumeration elements = namespaceStack.elements(); while (!inExtension && elements.hasMoreElements()) { String ns = (String) elements.nextElement(); if (ns == null) { inExtension = true; } else { inExtension = (!ns.equals(tr9401NamespaceName) && !ns.equals(namespaceName)); } } return inExtension; }
/** * Are we in an extension namespace? * * @return true if the current stack of open namespaces includes * an extension namespace. */ protected boolean inExtensionNamespace() { boolean inExtension = false; Enumeration elements = namespaceStack.elements(); while (!inExtension && elements.hasMoreElements()) { String ns = (String) elements.nextElement(); if (ns == null) { inExtension = true; } else { inExtension = (!ns.equals(tr9401NamespaceName) && !ns.equals(namespaceName)); } } return inExtension; }
/** * Are we in an extension namespace? * * @return true if the current stack of open namespaces includes * an extension namespace. */ protected boolean inExtensionNamespace() { boolean inExtension = false; Enumeration elements = namespaceStack.elements(); while (!inExtension && elements.hasMoreElements()) { String ns = (String) elements.nextElement(); if (ns == null) { inExtension = true; } else { inExtension = (!ns.equals(tr9401NamespaceName) && !ns.equals(namespaceName)); } } return inExtension; }
/** * Are we in an extension namespace? * * @return true if the current stack of open namespaces includes * an extension namespace. */ protected boolean inExtensionNamespace() { boolean inExtension = false; Enumeration elements = namespaceStack.elements(); while (!inExtension && elements.hasMoreElements()) { String ns = (String) elements.nextElement(); if (ns == null) { inExtension = true; } else { inExtension = (!ns.equals(tr9401NamespaceName) && !ns.equals(namespaceName)); } } return inExtension; }
private void throwIfRecursionInIncludes(String fileName) { if (fileNameStack.contains(fileName)) { StringBuilder sb = propertyLoaderFactory.getStringBuilder(); sb.append("property file include recursion: "); Enumeration<String> elements = fileNameStack.elements(); while (elements.hasMoreElements()) { String currentFileName = elements.nextElement(); sb.append(currentFileName); sb.append(" -> "); } sb.append(fileName); throw new PropertyLoaderException(sb.toString()); } }
private String generateString() { StringBuffer result = new StringBuffer(); boolean first = true; for (Enumeration i = steps_.elements(); i.hasMoreElements();) { Step step = (Step) i.nextElement(); if (!first || absolute_) { result.append('/'); if (step.isMultiLevel()) result.append('/'); } result.append(step.toString()); first = false; } return result.toString(); }
Enumeration entities = entityStack.elements(); while (entities.hasMoreElements()) { String e = (String) entities.nextElement();
Enumeration enumeration = ancestors.elements(); while (enumeration.hasMoreElements()) { resolver.release((Source) enumeration.nextElement());