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

de.mrapp.parser.feed.common.datastructure.Node Maven / Gradle / Ivy

The newest version!
/*
 * JavaFeedParserCommon Copyright 2013-2014 Michael Rapp
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see . 
 */
package de.mrapp.parser.feed.common.datastructure;

import de.mrapp.parser.feed.common.model.Entity;

/**
 * Defines the interface, all nodes, which represent an element or attribute of
 * a feed's XML structure, must implement. This interface only defines
 * read-only-methods, which are necessary to access a node's properties.
 * 
 * @author Michael Rapp
 * 
 * @since 1.0.0
 */
public interface Node extends Entity {

	/**
	 * Returns the node's name.
	 * 
	 * @return The node's name as a {@link String}. The name may neither be
	 *         null, nor empty
	 */
	String getName();

	/**
	 * Returns the node's namespace.
	 * 
	 * @return The node's namespace as an instance of the class
	 *         {@link Namespace}. The namespace may not be null
	 */
	Namespace getNamespace();

	@Override
	Node clone() throws CloneNotSupportedException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy