CPKIFTime.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFTime {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public CPKIFTime(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(CPKIFTime obj) {
00021 return (obj == null) ? 0 : obj.swigCPtr;
00022 }
00023
00024 protected void finalize() {
00025 delete();
00026 }
00027
00028 public synchronized void delete() {
00029 if (swigCPtr != 0) {
00030 if (swigCMemOwn) {
00031 swigCMemOwn = false;
00032 pkif_moduleJNI.delete_CPKIFTime(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public static CPKIFTimePtr CurrentTime() {
00039 return new CPKIFTimePtr(pkif_moduleJNI.CPKIFTime_CurrentTime(), true);
00040 }
00041
00042 public CPKIFTime() {
00043 this(pkif_moduleJNI.new_CPKIFTime__SWIG_0(), true);
00044 }
00045
00046 public CPKIFTime(CPKIFTime time_) {
00047 this(pkif_moduleJNI.new_CPKIFTime__SWIG_1(CPKIFTime.getCPtr(time_), time_), true);
00048 }
00049
00050 public CPKIFTime(String time, TimeType type) {
00051 this(pkif_moduleJNI.new_CPKIFTime__SWIG_2(time, type.swigValue()), true);
00052 }
00053
00054 public CPKIFTime(String time) {
00055 this(pkif_moduleJNI.new_CPKIFTime__SWIG_3(time), true);
00056 }
00057
00058 public int year() {
00059 return pkif_moduleJNI.CPKIFTime_year(swigCPtr, this);
00060 }
00061
00062 public int month() {
00063 return pkif_moduleJNI.CPKIFTime_month(swigCPtr, this);
00064 }
00065
00066 public int dayOfMonth() {
00067 return pkif_moduleJNI.CPKIFTime_dayOfMonth(swigCPtr, this);
00068 }
00069
00070 public int hours() {
00071 return pkif_moduleJNI.CPKIFTime_hours(swigCPtr, this);
00072 }
00073
00074 public int minutes() {
00075 return pkif_moduleJNI.CPKIFTime_minutes(swigCPtr, this);
00076 }
00077
00078 public int seconds() {
00079 return pkif_moduleJNI.CPKIFTime_seconds(swigCPtr, this);
00080 }
00081
00082 public String GetTime() {
00083 return pkif_moduleJNI.CPKIFTime_GetTime(swigCPtr, this);
00084 }
00085
00086 public void set(int year_, int month_, int dom_, int hours_, int minutes_, int seconds_) {
00087 pkif_moduleJNI.CPKIFTime_set(swigCPtr, this, year_, month_, dom_, hours_, minutes_, seconds_);
00088 }
00089
00090 }