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

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

There is a newer version: 4.11
Show newest version
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