All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.attoparser.markup.dom.INestableNode Maven / Gradle / Ivy

There is a newer version: 2.0.7.RELEASE
Show newest version
/*
 * =============================================================================
 * 
 *   Copyright (c) 2012, The ATTOPARSER team (http://www.attoparser.org)
 * 
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 * 
 * =============================================================================
 */
package org.attoparser.markup.dom;

import java.util.List;



/**
 * 

* Common interface for all nodes in attoDOM trees that * can have children nodes. *

* * @author Daniel Fernández * * @since 1.1 * */ public interface INestableNode extends INode { public boolean hasChildren(); public int numChildren(); public List getChildren(); public List getChildrenOfType(final Class type); public INode getFirstChild(); public T getFirstChildOfType(final Class type); public void addChild(final INode newChild); public void insertChild(final int index, final INode newChild); public void insertChildBefore(final INode before, final INode newChild); public void insertChildAfter(final INode after, final INode newChild); public void removeChild(final INode child); public void clearChildren(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy