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

org.cip4.jdflib.auto.JDFAutoAdvancedParams Maven / Gradle / Ivy

There is a newer version: 2.1.8.10
Show newest version
/*
 * The CIP4 Software License, Version 1.0
 *
 *
 * Copyright (c) 2001-2024 The International Cooperation for the Integration of
 * Processes in  Prepress, Press and Postpress (CIP4).  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *        The International Cooperation for the Integration of
 *        Processes in  Prepress, Press and Postpress (www.cip4.org)"
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "CIP4" and "The International Cooperation for the Integration of
 *    Processes in  Prepress, Press and Postpress" must
 *    not be used to endorse or promote products derived from this
 *    software without prior written permission. For written
 *    permission, please contact [email protected].
 *
 * 5. Products derived from this software may not be called "CIP4",
 *    nor may "CIP4" appear in their name, without prior written
 *    permission of the CIP4 organization
 *
 * Usage of this software in commercial products is subject to restrictions. For
 * details please consult [email protected].
  *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE INTERNATIONAL COOPERATION FOR
 * THE INTEGRATION OF PROCESSES IN PREPRESS, PRESS AND POSTPRESS OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the The International Cooperation for the Integration
 * of Processes in Prepress, Press and Postpress and was
 * originally based on software
 * copyright (c) 1999-2001, Heidelberger Druckmaschinen AG
 * copyright (c) 1999-2001, Agfa-Gevaert N.V.
 *
 * For more information on The International Cooperation for the
 * Integration of Processes in  Prepress, Press and Postpress , please see
 * .
 *
 *
 */

package org.cip4.jdflib.auto;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.enums.ValuedEnum;
import org.apache.xerces.dom.CoreDocumentImpl;
import org.cip4.jdflib.core.AtrInfoTable;
import org.cip4.jdflib.core.AttributeInfo;
import org.cip4.jdflib.core.AttributeName;
import org.cip4.jdflib.core.JDFElement;

/**
 *****************************************************************************
 * class JDFAutoAdvancedParams : public JDFElement
 *****************************************************************************
 * 
 */

public abstract class JDFAutoAdvancedParams extends JDFElement
{

	private static final long serialVersionUID = 1L;

	private static AtrInfoTable[] atrInfoTable = new AtrInfoTable[17];
	static
	{
		atrInfoTable[0] = new AtrInfoTable(AttributeName.ALLOWPSXOBJECTS, 0x3333333311l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[1] = new AtrInfoTable(AttributeName.ALLOWTRANSPARENCY, 0x3333333311l, AttributeInfo.EnumAttributeType.boolean_, null, "false");
		atrInfoTable[2] = new AtrInfoTable(AttributeName.AUTOPOSITIONEPSINFO, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[3] = new AtrInfoTable(AttributeName.EMBEDJOBOPTIONS, 0x3333333311l, AttributeInfo.EnumAttributeType.boolean_, null, "false");
		atrInfoTable[4] = new AtrInfoTable(AttributeName.EMITDSCWARNINGS, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "false");
		atrInfoTable[5] = new AtrInfoTable(AttributeName.LOCKDISTILLERPARAMS, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[6] = new AtrInfoTable(AttributeName.PARSEDSCCOMMENTS, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[7] = new AtrInfoTable(AttributeName.PARSEDSCCOMMENTSFORDOCINFO, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[8] = new AtrInfoTable(AttributeName.PASSTHROUGHJPEGIMAGES, 0x3333333311l, AttributeInfo.EnumAttributeType.boolean_, null, "false");
		atrInfoTable[9] = new AtrInfoTable(AttributeName.PRESERVECOPYPAGE, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[10] = new AtrInfoTable(AttributeName.PRESERVEEPSINFO, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[11] = new AtrInfoTable(AttributeName.PRESERVEHALFTONEINFO, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "false");
		atrInfoTable[12] = new AtrInfoTable(AttributeName.PRESERVEOVERPRINTSETTINGS, 0x3333333331l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[13] = new AtrInfoTable(AttributeName.PRESERVEOPICOMMENTS, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "true");
		atrInfoTable[14] = new AtrInfoTable(AttributeName.TRANSFERFUNCTIONINFO, 0x3333333331l, AttributeInfo.EnumAttributeType.enumeration, EnumTransferFunctionInfo.getEnum(0),
				"Preserve");
		atrInfoTable[15] = new AtrInfoTable(AttributeName.UCRANDBGINFO, 0x3333333331l, AttributeInfo.EnumAttributeType.enumeration, EnumUCRandBGInfo.getEnum(0), "Preserve");
		atrInfoTable[16] = new AtrInfoTable(AttributeName.USEPROLOGUE, 0x3333333333l, AttributeInfo.EnumAttributeType.boolean_, null, "false");
	}

	@Override
	protected AttributeInfo getTheAttributeInfo()
	{
		return super.getTheAttributeInfo().updateReplace(atrInfoTable);
	}

	/**
	 * Constructor for JDFAutoAdvancedParams
	 *
	 * @param myOwnerDocument
	 * @param qualifiedName
	 */
	protected JDFAutoAdvancedParams(CoreDocumentImpl myOwnerDocument, String qualifiedName)
	{
		super(myOwnerDocument, qualifiedName);
	}

	/**
	 * Constructor for JDFAutoAdvancedParams
	 *
	 * @param myOwnerDocument
	 * @param myNamespaceURI
	 * @param qualifiedName
	 */
	protected JDFAutoAdvancedParams(CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
	{
		super(myOwnerDocument, myNamespaceURI, qualifiedName);
	}

	/**
	 * Constructor for JDFAutoAdvancedParams
	 *
	 * @param myOwnerDocument
	 * @param myNamespaceURI
	 * @param qualifiedName
	 * @param myLocalName
	 */
	protected JDFAutoAdvancedParams(CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
	{
		super(myOwnerDocument, myNamespaceURI, qualifiedName, myLocalName);
	}

	/**
	 * Enumeration strings for TransferFunctionInfo
	 */

	@SuppressWarnings("rawtypes")
	public static class EnumTransferFunctionInfo extends ValuedEnum
	{
		private static final long serialVersionUID = 1L;
		private static int m_startValue = 0;

		protected EnumTransferFunctionInfo(String name)
		{
			super(name, m_startValue++);
		}

		/**
		 * @param enumName the string to convert
		 * @return the enum
		 */
		public static EnumTransferFunctionInfo getEnum(String enumName)
		{
			return (EnumTransferFunctionInfo) getEnum(EnumTransferFunctionInfo.class, enumName);
		}

		/**
		 * @param enumValue the integer to convert
		 * @return the enum
		 */
		public static EnumTransferFunctionInfo getEnum(int enumValue)
		{
			return (EnumTransferFunctionInfo) getEnum(EnumTransferFunctionInfo.class, enumValue);
		}

		/**
		 * @return the map of enums
		 */
		public static Map getEnumMap()
		{
			return getEnumMap(EnumTransferFunctionInfo.class);
		}

		/**
		 * @return the list of enums
		 */
		public static List getEnumList()
		{
			return getEnumList(EnumTransferFunctionInfo.class);
		}

		/**
		 * @return the iterator
		 */
		public static Iterator iterator()
		{
			return iterator(EnumTransferFunctionInfo.class);
		}

		/**  */
		public static final EnumTransferFunctionInfo Preserve = new EnumTransferFunctionInfo("Preserve");
		/**  */
		public static final EnumTransferFunctionInfo Remove = new EnumTransferFunctionInfo("Remove");
		/**  */
		public static final EnumTransferFunctionInfo Apply = new EnumTransferFunctionInfo("Apply");
	}

	/**
	 * Enumeration strings for UCRandBGInfo
	 */

	@SuppressWarnings("rawtypes")
	public static class EnumUCRandBGInfo extends ValuedEnum
	{
		private static final long serialVersionUID = 1L;
		private static int m_startValue = 0;

		protected EnumUCRandBGInfo(String name)
		{
			super(name, m_startValue++);
		}

		/**
		 * @param enumName the string to convert
		 * @return the enum
		 */
		public static EnumUCRandBGInfo getEnum(String enumName)
		{
			return (EnumUCRandBGInfo) getEnum(EnumUCRandBGInfo.class, enumName);
		}

		/**
		 * @param enumValue the integer to convert
		 * @return the enum
		 */
		public static EnumUCRandBGInfo getEnum(int enumValue)
		{
			return (EnumUCRandBGInfo) getEnum(EnumUCRandBGInfo.class, enumValue);
		}

		/**
		 * @return the map of enums
		 */
		public static Map getEnumMap()
		{
			return getEnumMap(EnumUCRandBGInfo.class);
		}

		/**
		 * @return the list of enums
		 */
		public static List getEnumList()
		{
			return getEnumList(EnumUCRandBGInfo.class);
		}

		/**
		 * @return the iterator
		 */
		public static Iterator iterator()
		{
			return iterator(EnumUCRandBGInfo.class);
		}

		/**  */
		public static final EnumUCRandBGInfo Preserve = new EnumUCRandBGInfo("Preserve");
		/**  */
		public static final EnumUCRandBGInfo Remove = new EnumUCRandBGInfo("Remove");
	}

	/*
	 * ************************************************************************ Attribute getter / setter ************************************************************************
	 */

	/*
	 * --------------------------------------------------------------------- Methods for Attribute AllowPSXObjects
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute AllowPSXObjects
	 *
	 * @param value the value to set the attribute to
	 */
	public void setAllowPSXObjects(boolean value)
	{
		setAttribute(AttributeName.ALLOWPSXOBJECTS, value, null);
	}

	/**
	 * (18) get boolean attribute AllowPSXObjects
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getAllowPSXObjects()
	{
		return getBoolAttribute(AttributeName.ALLOWPSXOBJECTS, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute AllowTransparency
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute AllowTransparency
	 *
	 * @param value the value to set the attribute to
	 */
	public void setAllowTransparency(boolean value)
	{
		setAttribute(AttributeName.ALLOWTRANSPARENCY, value, null);
	}

	/**
	 * (18) get boolean attribute AllowTransparency
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getAllowTransparency()
	{
		return getBoolAttribute(AttributeName.ALLOWTRANSPARENCY, null, false);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute AutoPositionEPSInfo
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute AutoPositionEPSInfo
	 *
	 * @param value the value to set the attribute to
	 */
	public void setAutoPositionEPSInfo(boolean value)
	{
		setAttribute(AttributeName.AUTOPOSITIONEPSINFO, value, null);
	}

	/**
	 * (18) get boolean attribute AutoPositionEPSInfo
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getAutoPositionEPSInfo()
	{
		return getBoolAttribute(AttributeName.AUTOPOSITIONEPSINFO, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute EmbedJobOptions
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute EmbedJobOptions
	 *
	 * @param value the value to set the attribute to
	 */
	public void setEmbedJobOptions(boolean value)
	{
		setAttribute(AttributeName.EMBEDJOBOPTIONS, value, null);
	}

	/**
	 * (18) get boolean attribute EmbedJobOptions
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getEmbedJobOptions()
	{
		return getBoolAttribute(AttributeName.EMBEDJOBOPTIONS, null, false);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute EmitDSCWarnings
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute EmitDSCWarnings
	 *
	 * @param value the value to set the attribute to
	 */
	public void setEmitDSCWarnings(boolean value)
	{
		setAttribute(AttributeName.EMITDSCWARNINGS, value, null);
	}

	/**
	 * (18) get boolean attribute EmitDSCWarnings
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getEmitDSCWarnings()
	{
		return getBoolAttribute(AttributeName.EMITDSCWARNINGS, null, false);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute LockDistillerParams
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute LockDistillerParams
	 *
	 * @param value the value to set the attribute to
	 */
	public void setLockDistillerParams(boolean value)
	{
		setAttribute(AttributeName.LOCKDISTILLERPARAMS, value, null);
	}

	/**
	 * (18) get boolean attribute LockDistillerParams
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getLockDistillerParams()
	{
		return getBoolAttribute(AttributeName.LOCKDISTILLERPARAMS, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute ParseDSCComments
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute ParseDSCComments
	 *
	 * @param value the value to set the attribute to
	 */
	public void setParseDSCComments(boolean value)
	{
		setAttribute(AttributeName.PARSEDSCCOMMENTS, value, null);
	}

	/**
	 * (18) get boolean attribute ParseDSCComments
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getParseDSCComments()
	{
		return getBoolAttribute(AttributeName.PARSEDSCCOMMENTS, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute ParseDSCCommentsForDocInfo
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute ParseDSCCommentsForDocInfo
	 *
	 * @param value the value to set the attribute to
	 */
	public void setParseDSCCommentsForDocInfo(boolean value)
	{
		setAttribute(AttributeName.PARSEDSCCOMMENTSFORDOCINFO, value, null);
	}

	/**
	 * (18) get boolean attribute ParseDSCCommentsForDocInfo
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getParseDSCCommentsForDocInfo()
	{
		return getBoolAttribute(AttributeName.PARSEDSCCOMMENTSFORDOCINFO, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute PassThroughJPEGImages
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute PassThroughJPEGImages
	 *
	 * @param value the value to set the attribute to
	 */
	public void setPassThroughJPEGImages(boolean value)
	{
		setAttribute(AttributeName.PASSTHROUGHJPEGIMAGES, value, null);
	}

	/**
	 * (18) get boolean attribute PassThroughJPEGImages
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getPassThroughJPEGImages()
	{
		return getBoolAttribute(AttributeName.PASSTHROUGHJPEGIMAGES, null, false);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute PreserveCopyPage
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute PreserveCopyPage
	 *
	 * @param value the value to set the attribute to
	 */
	public void setPreserveCopyPage(boolean value)
	{
		setAttribute(AttributeName.PRESERVECOPYPAGE, value, null);
	}

	/**
	 * (18) get boolean attribute PreserveCopyPage
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getPreserveCopyPage()
	{
		return getBoolAttribute(AttributeName.PRESERVECOPYPAGE, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute PreserveEPSInfo
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute PreserveEPSInfo
	 *
	 * @param value the value to set the attribute to
	 */
	public void setPreserveEPSInfo(boolean value)
	{
		setAttribute(AttributeName.PRESERVEEPSINFO, value, null);
	}

	/**
	 * (18) get boolean attribute PreserveEPSInfo
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getPreserveEPSInfo()
	{
		return getBoolAttribute(AttributeName.PRESERVEEPSINFO, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute PreserveHalftoneInfo
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute PreserveHalftoneInfo
	 *
	 * @param value the value to set the attribute to
	 */
	public void setPreserveHalftoneInfo(boolean value)
	{
		setAttribute(AttributeName.PRESERVEHALFTONEINFO, value, null);
	}

	/**
	 * (18) get boolean attribute PreserveHalftoneInfo
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getPreserveHalftoneInfo()
	{
		return getBoolAttribute(AttributeName.PRESERVEHALFTONEINFO, null, false);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute PreserveOverprintSettings
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute PreserveOverprintSettings
	 *
	 * @param value the value to set the attribute to
	 */
	public void setPreserveOverprintSettings(boolean value)
	{
		setAttribute(AttributeName.PRESERVEOVERPRINTSETTINGS, value, null);
	}

	/**
	 * (18) get boolean attribute PreserveOverprintSettings
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getPreserveOverprintSettings()
	{
		return getBoolAttribute(AttributeName.PRESERVEOVERPRINTSETTINGS, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute PreserveOPIComments
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute PreserveOPIComments
	 *
	 * @param value the value to set the attribute to
	 */
	public void setPreserveOPIComments(boolean value)
	{
		setAttribute(AttributeName.PRESERVEOPICOMMENTS, value, null);
	}

	/**
	 * (18) get boolean attribute PreserveOPIComments
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getPreserveOPIComments()
	{
		return getBoolAttribute(AttributeName.PRESERVEOPICOMMENTS, null, true);
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute TransferFunctionInfo
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (5) set attribute TransferFunctionInfo
	 *
	 * @param enumVar the enumVar to set the attribute to
	 */
	public void setTransferFunctionInfo(EnumTransferFunctionInfo enumVar)
	{
		setAttribute(AttributeName.TRANSFERFUNCTIONINFO, enumVar == null ? null : enumVar.getName(), null);
	}

	/**
	 * (9) get attribute TransferFunctionInfo
	 *
	 * @return the value of the attribute
	 */
	public EnumTransferFunctionInfo getTransferFunctionInfo()
	{
		return EnumTransferFunctionInfo.getEnum(getAttribute(AttributeName.TRANSFERFUNCTIONINFO, null, "Preserve"));
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute UCRandBGInfo
	 * ---------------------------------------------------------------------
	 */
	/**
	 * (5) set attribute UCRandBGInfo
	 *
	 * @param enumVar the enumVar to set the attribute to
	 */
	public void setUCRandBGInfo(EnumUCRandBGInfo enumVar)
	{
		setAttribute(AttributeName.UCRANDBGINFO, enumVar == null ? null : enumVar.getName(), null);
	}

	/**
	 * (9) get attribute UCRandBGInfo
	 *
	 * @return the value of the attribute
	 */
	public EnumUCRandBGInfo getUCRandBGInfo()
	{
		return EnumUCRandBGInfo.getEnum(getAttribute(AttributeName.UCRANDBGINFO, null, "Preserve"));
	}

	/*
	 * --------------------------------------------------------------------- Methods for Attribute UsePrologue ---------------------------------------------------------------------
	 */
	/**
	 * (36) set attribute UsePrologue
	 *
	 * @param value the value to set the attribute to
	 */
	public void setUsePrologue(boolean value)
	{
		setAttribute(AttributeName.USEPROLOGUE, value, null);
	}

	/**
	 * (18) get boolean attribute UsePrologue
	 *
	 * @return boolean the value of the attribute
	 */
	public boolean getUsePrologue()
	{
		return getBoolAttribute(AttributeName.USEPROLOGUE, null, false);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy