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

com.tectonica.jonix.codelist.AgentRoles Maven / Gradle / Ivy

There is a newer version: 2024-10-onix308
Show newest version
/*
 * Copyright (C) 2012 Zach Melamed
 * 
 * Latest version available online at https://github.com/zach-m/jonix
 * Contact me at [email protected]
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.tectonica.jonix.codelist;

import com.tectonica.jonix.OnixCodelist;

/*
 * NOTE: THIS IS AN AUTO-GENERATED FILE, DON'T EDIT MANUALLY
 */

/**
 * marker interface to assist in IDE navigation to code-list 69 (Agent role)
 */
interface CodeList69
{}

/**
 * Enum that corresponds to ONIX Codelist 69
 * 

* Description: Agent role * * @see About ONIX Codelists * @see ONIX * Codelist 69 in Reference Guide */ public enum AgentRoles implements OnixCodelist, CodeList69 { /** * Publisher's exclusive sales agent in a specified territory */ Exclusive_sales_agent("05", "Exclusive sales agent"), // /** * Publisher's non-exclusive sales agent in a specified territory */ Non_exclusive_sales_agent("06", "Non-exclusive sales agent"), // /** * Publisher for a specified territory */ Local_publisher("07", "Local publisher"), // /** * Publisher's sales agent in a specific territory. Use only where exclusive / non-exclusive status is not known. * Prefer 05 or 06 as appropriate, where possible */ Sales_agent("08", "Sales agent"); public final String code; public final String description; private AgentRoles(String code, String description) { this.code = code; this.description = description; } @Override public String getCode() { return code; } @Override public String getDescription() { return description; } public static AgentRoles byCode(String code) { if (code == null || code.isEmpty()) return null; for (AgentRoles e : values()) if (e.code.equals(code)) return e; return null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy