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

de.intarsys.tools.tlv.common.TlvTemplateBasedObject Maven / Gradle / Ivy

There is a newer version: 4.11
Show newest version
package de.intarsys.tools.tlv.common;

/**
 * An object that is based on a {@link TlvTemplate}, a sequence of
 * {@link TlvElement} instances.
 * 
 */
public abstract class TlvTemplateBasedObject {

	final private TlvTemplate template;

	public TlvTemplateBasedObject(TlvTemplate template) {
		this.template = template;
	}

	/**
	 * The {@link TlvElement} identified by identifier or null.
	 * 
	 * @param identifier
	 * @return The {@link TlvElement} identified by identifier or
	 *         null.
	 */
	public TlvElement getElement(int identifier) {
		return template.getElement(identifier);
	}

	public TlvTemplate getTemplate() {
		return template;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy