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

org.openxri.xml.SEPPath Maven / Gradle / Ivy

The newest version!
package org.openxri.xml;

import org.w3c.dom.Node;


public class SEPPath extends SEPElement
{

	/**
	 * Creates a default EppXriServiceEndpointPath object
	 */
	public SEPPath()
	{
		super();
	}

	/**
	 * Creates an EppXriServiceEndpointPath object with the specified fields
	 */
	public SEPPath( String path, String match, Boolean select )
	{
		super(path, match, select);
	}

	/**
	 * Converts an XML element into an EppXriServiceEndpointPath object.
	 * The caller of this method must make sure that the root node is of
	 * the EPP XRI sepTypeType.
	 *
	 * @param root root node for an EppXriServiceEndpoint object in
	 *             XML format
	 *
	 * @return an EppXriServiceEndpointPath object, or null if the node is
	 *         invalid
	 */
	public static SEPPath fromXML( Node root )
	{
		SEPPath sepPath = new SEPPath();
		sepPath.setFromXML(root);
		return sepPath;
	}

	/**
	 * Gets the value of this Path rule.
	 * This is an alias for the superclass' getValue method.
	 */
	public String getPath()
	{
		return getValue();
	}

	/**
	 * Sets the value of this Path rule.
	 * This is an alias for the superclass' setValue method.
	 */
	public void setPath( String path )
	{
		setValue(path);
	}


	public String toString()
	{
		return toString(Tags.TAG_PATH);
	}
	
    public Object clone(){
    	return new SEPPath(getPath(), getMatch(), new Boolean(getSelect()) );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy