/** * This method can be called after {@link #startDocument} is called * but before the marshalling begins, to set the currently in-scope namespace * bindings. * * <p> * This method is useful to avoid redundant namespace declarations when * the marshalling is producing a sub-document. */ public void addInscopeBinding(String nsUri,String prefix) { nsContext.put(nsUri,prefix); }
public NamespaceContextImpl(XMLSerializer owner) { this.owner = owner; current = top = new Element(this,null); // register namespace URIs that are implicitly bound put(XMLConstants.XML_NS_URI,XMLConstants.XML_NS_PREFIX); }
public int force(@NotNull String uri, @NotNull String prefix) { // check for the existing binding for( int i=size-1; i>=0; i-- ) { if(prefixes[i].equals(prefix)) { if(nsUris[i].equals(uri)) return i; // found duplicate else // the prefix is used for another namespace. we need to declare it break; } } return put(uri, prefix); }
/** * This method can be called after {@link #startDocument} is called * but before the marshalling begins, to set the currently in-scope namespace * bindings. * * <p> * This method is useful to avoid redundant namespace declarations when * the marshalling is producing a sub-document. */ public void addInscopeBinding(String nsUri,String prefix) { nsContext.put(nsUri,prefix); }
public NamespaceContextImpl(XMLSerializer owner) { this.owner = owner; current = top = new Element(this,null); // register namespace URIs that are implicitly bound put(XMLConstants.XML_NS_URI,XMLConstants.XML_NS_PREFIX); }
nsContext.put(nsUri,prefix);
public int force(@NotNull String uri, @NotNull String prefix) { // check for the existing binding for( int i=size-1; i>=0; i-- ) { if(prefixes[i].equals(prefix)) { if(nsUris[i].equals(uri)) return i; // found duplicate else // the prefix is used for another namespace. we need to declare it break; } } return put(uri, prefix); }
/** * This method can be called after {@link #startDocument} is called * but before the marshalling begins, to set the currently in-scope namespace * bindings. * * <p> * This method is useful to avoid redundant namespace declarations when * the marshalling is producing a sub-document. */ public void addInscopeBinding(String nsUri,String prefix) { nsContext.put(nsUri,prefix); }
/** * This method can be called after {@link #startDocument} is called * but before the marshalling begins, to set the currently in-scope namespace * bindings. * * <p> * This method is useful to avoid redundant namespace declarations when * the marshalling is producing a sub-document. */ public void addInscopeBinding(String nsUri,String prefix) { nsContext.put(nsUri,prefix); }
public NamespaceContextImpl(XMLSerializer owner) { this.owner = owner; current = top = new Element(this,null); // register namespace URIs that are implicitly bound put(XMLConstants.XML_NS_URI,XMLConstants.XML_NS_PREFIX); }
public NamespaceContextImpl(XMLSerializer owner) { this.owner = owner; current = top = new Element(this,null); // register namespace URIs that are implicitly bound put(XMLConstants.XML_NS_URI,XMLConstants.XML_NS_PREFIX); }
nsContext.put(nsUri,prefix);
public int force(@NotNull String uri, @NotNull String prefix) { // check for the existing binding for( int i=size-1; i>=0; i-- ) { if(prefixes[i].equals(prefix)) { if(nsUris[i].equals(uri)) return i; // found duplicate else // the prefix is used for another namespace. we need to declare it break; } } return put(uri, prefix); }
public int force(@NotNull String uri, @NotNull String prefix) { // check for the existing binding for( int i=size-1; i>=0; i-- ) { if(prefixes[i].equals(prefix)) { if(nsUris[i].equals(uri)) return i; // found duplicate else // the prefix is used for another namespace. we need to declare it break; } } return put(uri, prefix); }
nsContext.put(nsUri,prefix);
nsContext.put(nsUri,prefix);