summaryrefslogtreecommitdiffstats
path: root/Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl
diff options
context:
space:
mode:
authorpikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
committer pikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
commit2f2a3a129c91de540e66c3bfbe30b0df1942cd4b (patch)
tree2d313cdf0068af368d4de6067d676be16f6a6464 /Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl
parentff8aa232b071a9b54dff833714a870fd0aec0b30 (diff)
downloadnovi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.zip
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.gz
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.bz2
project commit and dir tree change
Diffstat (limited to 'Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl')
-rw-r--r--Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl65
1 files changed, 65 insertions, 0 deletions
diff --git a/Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl b/Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl
new file mode 100644
index 0000000..223b581
--- /dev/null
+++ b/Monitoring/MonitoringTool/PacketTracking/ipfix4java/ipfix-model-generator/src/main/resources/de/fhg/fokus/net/ipfix/mojo/mgen/tmpl/IpfixIeTmpl.tmpl
@@ -0,0 +1,65 @@
+package %{TARGET_PACKAGE}%;
+// === ipfix-model-generator: auto-generated file - do not edit! ===
+import de.fhg.fokus.net.ipfix.api.IpfixFieldSpecifier;
+import de.fhg.fokus.net.ipfix.api.IpfixIe;
+import de.fhg.fokus.net.ipfix.api.IpfixIeSemantics;
+import de.fhg.fokus.net.ipfix.api.IpfixIeStatus;
+import de.fhg.fokus.net.ipfix.api.IpfixIeUnits;
+import de.fhg.fokus.net.ipfix.api.codec.%{IE_CODEC}%;
+
+%{IMPORTS}%
+
+/**
+ * %{CLASS_DOCUMENTATION}%
+ *
+ */
+public final class %{IE_CLASS_NAME}% extends %{IE_CODEC}% implements IpfixIe {
+ // -- model --
+ private final IpfixFieldSpecifier fieldSpecifier;
+
+ @Override
+ public IpfixFieldSpecifier getFieldSpecifier() {
+ return fieldSpecifier;
+ }
+
+ public %{IE_CLASS_NAME}%() {
+ this.fieldSpecifier = new IpfixFieldSpecifier(%{IE_ENTERPRISE_NUMBER}%).setId(%{IE_ID}%)
+ .setFieldLength(this.fieldLength);
+ }
+ public %{IE_CLASS_NAME}%( int length ) {
+ this.fieldLength = length;
+ this.fieldSpecifier = new IpfixFieldSpecifier(%{IE_ENTERPRISE_NUMBER}%).setId(%{IE_ID}%)
+ .setFieldLength(this.fieldLength);
+ }
+ public %{IE_CLASS_NAME}%( int length, long enterpriseNumber, boolean isScope ) {
+ this.fieldLength = length;
+ this.fieldSpecifier = new IpfixFieldSpecifier(enterpriseNumber).setId(%{IE_ID}%)
+ .setFieldLength(this.fieldLength).setScope(isScope);
+ }
+
+
+ @Override
+ public IpfixIeSemantics getSemantics() {
+ return IpfixIeSemantics.%{IE_SEMANTICS}%;
+ }
+
+ @Override
+ public IpfixIeStatus getStatus() {
+ return IpfixIeStatus.%{IE_STATUS}%;
+ }
+
+ @Override
+ public String getName() {
+ return "%{IE_NAME}%";
+ }
+
+ @Override
+ public int getLength() {
+ return fieldSpecifier.getIeLength();
+ }
+
+ @Override
+ public IpfixIeUnits getUnits() {
+ return IpfixIeUnits.%{IE_UNITS}%;
+ }
+}