de.intarsys.tools.tlv.common.TlvTemplateBasedObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
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