com.anaptecs.jeaf.junit.pojo.EnumWithProperties Maven / Gradle / Ivy
/*
* anaptecs GmbH, Ricarda-Huch-Str. 71, 72760 Reutlingen, Germany
*
* Copyright 2004 - 2019. All rights reserved.
*/
package com.anaptecs.jeaf.junit.pojo;
public enum EnumWithProperties {
CAMPAIGN_DATA_UNIT("AX2", "Campaign Data Unit", 4712, MyType.ALPHA), RELATION_KEY_DATA_UNIT("X56",
"Relation Key Data Unit", 12345, null), LITERAL_WITH_DEFAULTS("ABC", "ABCDEF", 1208, MyType.GAMMA);
/**
* Initialize object.
*/
private EnumWithProperties( String pDataUnitID, String pName, int pOrder, MyType pMyType ) {
dataUnitID = pDataUnitID;
name = pName;
order = pOrder;
myType = pMyType;
}
private final String dataUnitID;
private final String name;
/**
*
* Default Value: 1208
*/
private final int order;
/**
*
* Default Value: GAMMA
*/
private MyType myType;
/**
* Method returns attribute {@link #dataUnitID}.
*
* @return {@link String} Value to which {@link #dataUnitID} is set.
*/
public String getDataUnitID( ) {
return dataUnitID;
}
/**
* Method returns attribute {@link #name}.
*
* @return {@link String} Value to which {@link #name} is set.
*/
public String getName( ) {
return name;
}
/**
* Method returns attribute {@link #order}.
*
* @return int Value to which {@link #order} is set.
*/
public int getOrder( ) {
return order;
}
/**
* Method returns association {@link #myType}.
*
* @return {@link MyType} Value to which {@link #myType} is set.
*/
public MyType getMyType( ) {
return myType;
}
}