de.intarsys.tools.tlv.common.TlvElementBasedComposite 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;
/**
* Composite TLV based object. This class eases the mapping of
* {@link TlvElement} based objects that are composite (the {@link TlvElement}
* is not primitive, but contains a {@link TlvTemplate} itself.
*
*
*/
public abstract class TlvElementBasedComposite extends TlvElementBasedObject {
private final TlvTemplate template;
public TlvElementBasedComposite(TlvElement element) {
super(element);
this.template = element.getTemplate();
}
/**
* The {@link TlvElement} identified by identifier or null
.
*
* @param identifier
* @return
*/
protected TlvElement getElement(int identifier) {
return template.getElement(identifier);
}
/**
* The {@link TlvTemplate} containing the properties.
*
* @return The {@link TlvTemplate} containing the properties.
*/
public TlvTemplate getTemplate() {
return template;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy