
org.afplib.afplib.ObjectContainerPresentationSpaceSizePDFSize Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of afplib Show documentation
Show all versions of afplib Show documentation
Java object library able to read and write AFP (Advanced Function Presentation) files.
The newest version!
/**
*/
package org.afplib.afplib;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
*
* A representation of the literals of the enumeration 'Object Container Presentation Space Size PDF Size',
* and utility methods for working with them.
*
* @see org.afplib.afplib.AfplibPackage#getObjectContainerPresentationSpaceSizePDFSize()
* @model
* @generated
*/
public enum ObjectContainerPresentationSpaceSizePDFSize implements Enumerator {
/**
* The 'Const Media Box' literal object.
*
*
* @see #CONST_MEDIA_BOX_VALUE
* @generated
* @ordered
*/
CONST_MEDIA_BOX(1, "ConstMediaBox", "ConstMediaBox"),
/**
* The 'Const Crop Box' literal object.
*
*
* @see #CONST_CROP_BOX_VALUE
* @generated
* @ordered
*/
CONST_CROP_BOX(2, "ConstCropBox", "ConstCropBox"),
/**
* The 'Const Bleed Box' literal object.
*
*
* @see #CONST_BLEED_BOX_VALUE
* @generated
* @ordered
*/
CONST_BLEED_BOX(3, "ConstBleedBox", "ConstBleedBox"),
/**
* The 'Const Trim Box' literal object.
*
*
* @see #CONST_TRIM_BOX_VALUE
* @generated
* @ordered
*/
CONST_TRIM_BOX(4, "ConstTrimBox", "ConstTrimBox"),
/**
* The 'Const Art Box' literal object.
*
*
* @see #CONST_ART_BOX_VALUE
* @generated
* @ordered
*/
CONST_ART_BOX(5, "ConstArtBox", "ConstArtBox");
/**
* The 'Const Media Box' literal value.
*
*
* If the meaning of 'Const Media Box' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_MEDIA_BOX
* @model name="ConstMediaBox"
* @generated
* @ordered
*/
public static final int CONST_MEDIA_BOX_VALUE = 1;
/**
* The 'Const Crop Box' literal value.
*
*
* If the meaning of 'Const Crop Box' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_CROP_BOX
* @model name="ConstCropBox"
* @generated
* @ordered
*/
public static final int CONST_CROP_BOX_VALUE = 2;
/**
* The 'Const Bleed Box' literal value.
*
*
* If the meaning of 'Const Bleed Box' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_BLEED_BOX
* @model name="ConstBleedBox"
* @generated
* @ordered
*/
public static final int CONST_BLEED_BOX_VALUE = 3;
/**
* The 'Const Trim Box' literal value.
*
*
* If the meaning of 'Const Trim Box' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_TRIM_BOX
* @model name="ConstTrimBox"
* @generated
* @ordered
*/
public static final int CONST_TRIM_BOX_VALUE = 4;
/**
* The 'Const Art Box' literal value.
*
*
* If the meaning of 'Const Art Box' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_ART_BOX
* @model name="ConstArtBox"
* @generated
* @ordered
*/
public static final int CONST_ART_BOX_VALUE = 5;
/**
* An array of all the 'Object Container Presentation Space Size PDF Size' enumerators.
*
*
* @generated
*/
private static final ObjectContainerPresentationSpaceSizePDFSize[] VALUES_ARRAY =
new ObjectContainerPresentationSpaceSizePDFSize[] {
CONST_MEDIA_BOX,
CONST_CROP_BOX,
CONST_BLEED_BOX,
CONST_TRIM_BOX,
CONST_ART_BOX,
};
/**
* A public read-only list of all the 'Object Container Presentation Space Size PDF Size' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Object Container Presentation Space Size PDF Size' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static ObjectContainerPresentationSpaceSizePDFSize get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ObjectContainerPresentationSpaceSizePDFSize result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Object Container Presentation Space Size PDF Size' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static ObjectContainerPresentationSpaceSizePDFSize getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ObjectContainerPresentationSpaceSizePDFSize result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Object Container Presentation Space Size PDF Size' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static ObjectContainerPresentationSpaceSizePDFSize get(int value) {
switch (value) {
case CONST_MEDIA_BOX_VALUE: return CONST_MEDIA_BOX;
case CONST_CROP_BOX_VALUE: return CONST_CROP_BOX;
case CONST_BLEED_BOX_VALUE: return CONST_BLEED_BOX;
case CONST_TRIM_BOX_VALUE: return CONST_TRIM_BOX;
case CONST_ART_BOX_VALUE: return CONST_ART_BOX;
}
return null;
}
/**
*
*
* @generated
*/
private final int value;
/**
*
*
* @generated
*/
private final String name;
/**
*
*
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
*
*
* @generated
*/
private ObjectContainerPresentationSpaceSizePDFSize(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
*
*
* @generated
*/
public int getValue() {
return value;
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
*
*
* @generated
*/
@Override
public String toString() {
return literal;
}
} //ObjectContainerPresentationSpaceSizePDFSize
© 2015 - 2025 Weber Informatics LLC | Privacy Policy