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

org.cip4.jdflib.resource.process.JDFDeviceNSpace Maven / Gradle / Ivy

There is a newer version: 2.1.8.10
Show newest version
/**
 * ========================================================================== 
 * class JDFDeviceNSpace extends JDFResource
 * ==========================================================================
 * @COPYRIGHT Heidelberger Druckmaschinen AG, 1999-2001 ALL RIGHTS RESERVED
 * @Author: [email protected]    using a code generator 
 * Warning! very preliminary test version. 
 * Interface subject to change without prior notice! 
 */

package org.cip4.jdflib.resource.process;

import org.apache.xerces.dom.CoreDocumentImpl;
import org.cip4.jdflib.auto.JDFAutoDeviceNSpace;
import org.cip4.jdflib.core.ElementName;
import org.cip4.jdflib.core.VElement;
import org.cip4.jdflib.core.VString;
import org.w3c.dom.DOMException;

/**
 * 
 * @author rainer prosi
 * @date Oct 18, 2011
 */
public class JDFDeviceNSpace extends JDFAutoDeviceNSpace
{
	private static final long serialVersionUID = 1L;

	/**
	 * Constructor for JDFDeviceNSpace
	 * @param myOwnerDocument 
	 * @param qualifiedName 
	 * @throws DOMException 
	 * 
	 */
	public JDFDeviceNSpace(CoreDocumentImpl myOwnerDocument, String qualifiedName) throws DOMException
	{
		super(myOwnerDocument, qualifiedName);
	}

	/**
	 * Constructor for JDFDeviceNSpace
	 * @param myOwnerDocument 
	 * @param myNamespaceURI 
	 * @param qualifiedName 
	 * @throws DOMException 
	 * 
	 */
	public JDFDeviceNSpace(CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) throws DOMException
	{
		super(myOwnerDocument, myNamespaceURI, qualifiedName);
	}

	/**
	 * Constructor for JDFDeviceNSpace
	 * @param myOwnerDocument 
	 * @param myNamespaceURI 
	 * @param qualifiedName 
	 * @param myLocalName 
	 * @throws DOMException 
	 * 
	 */
	public JDFDeviceNSpace(CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) throws DOMException
	{
		super(myOwnerDocument, myNamespaceURI, qualifiedName, myLocalName);
	}

	/**
	 * 
	 * @see org.cip4.jdflib.auto.JDFAutoDeviceNSpace#toString()
	 */
	@Override
	public String toString()
	{
		return "JDFDeviceNSpace[  --> " + super.toString() + " ]";
	}

	/**
	 * Get a list of all separation names in the SeparationSpec elements
	 * 
	 * @return the vector of separation names
	 */
	public VString getSeparations()
	{
		VString vName = new VString();
		VElement v = getChildElementVector(ElementName.SEPARATIONSPEC, null, null, false, 0, false);
		int nSep = v.size();
		for (int i = 0; i < nSep; i++)
		{
			JDFSeparationSpec sep = (JDFSeparationSpec) v.elementAt(i);
			String sepName = sep.getName();
			vName.appendUnique(sepName);
		}
		return vName;
	}

} // class JDFDeviceNSpace
// ==========================================================================




© 2015 - 2025 Weber Informatics LLC | Privacy Policy