eventreportindication.java

来自「CmisJavaApi」· Java 代码 · 共 177 行

JAVA
177
字号
/* * The contents of this file are subject to the Dyade Public License,  * as defined by the file DYADE_PUBLIC_LICENSE.TXT * * You may not use this file except in compliance with the License. You may * obtain a copy of the License on the Dyade web site (www.dyade.fr). * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for * the specific terms governing rights and limitations under the License. * * The Original Code is CmisJava API, including the java package  * fr.dyade.cmis, released September 5, 2000. * * The Initial Developer of the Original Code is Dyade. The Original Code and * portions created by Dyade are Copyright Bull and Copyright INRIA.  * All Rights Reserved. *//*      Copyright 1996-2000 by Institut National de Recherche en Informatique  *                             et en Automatique (INRIA) *          All rights reserved.  See COPYRIGHT in top-level directory. * *      Authors: Laurent Andrey, Eric Dillon, Olivier Festor *///---------------------------------------------------------------------------////  CVS Info//---------------------------------------------------------------------------//////  $Id: EventReportIndication.java,v 1.2 2000/09/05 13:04:39 festor Exp $////---------------------------------------------------------------------------////  Todo//---------------------------------------------------------------------------//// Check fEventInfo (asn1 is ANY DEFINED BY eventTypepackage fr.dyade.cmis.api.operation;import fr.dyade.cmis.api.types.*;import fr.dyade.cmis.api.operation.event.EventReportListener;/** Class modelling a CMIS EVENT-REPORT-INDICATION  * No setEventTime is provided. We assume that this value is   * set once and only once at creation time.  * <pr>NOTE: Event time generation should probably be improved...  * @version cvs $Id: EventReportIndication.java,v 1.2 2000/09/05 13:04:39 festor Exp $  */public class EventReportIndication   extends CMISIndication  {	public EventReportIndication () {	   super();	}	/** Code type for a EventReportIndication.	  */	public final short getType() {	   return EVENT_REPORT;	}	/**	  * LA??: a isReqValid for an indication ?	  * Return true if Mode, Managed Object Class, Managed Object Instance and	  * EventType are set in this EventReportIndication.	  * @return True if valid, false else.	  */	public boolean isReqValid() {	   return 	      (fMode != null) &	      (fManagedObjectClass!=null) &	      (fManagedObjectInstance!=null) &	      (fEventType!=null);	}		/**	  * Get the Mode parameter of this EventReportIndication	  * @return The Mode object or null if not setted.	  */	public Mode getMode()  {	   return fMode;	}		/**	  * Get the Object class identifer of this EventReportIndication	  * @return The ObjectClass object or null if not setted.	  */	public ObjectClass getManagedObjectClass() {	   return fManagedObjectClass;	}		/**	  * Get the Object instance identifer of this EventReportIndication	  * @return The ObjectInstance object or null if not setted.	  */	public ObjectInstance getManagedObjectInstance()  {	   return fManagedObjectInstance;	}  	/**	  * Get the Event type identifer of this EventReportIndication	  * @return The EventTypeId object or null if not setted.	  */	public EventTypeId getEventType()  {	   return fEventType;	}		/**	  * Get the time of generation of this EventReportIndication	  * @return The GeneralizedTime object or null if not setted.    */	public GeneralizedTime getEventTime() {	   return fEventTime;	}		/**	  * Get the infomation of this EventReportIndication	  * @return The CMISType object or null if not setted.	  */	public Any getEventInformation() {	   return fEventInformation;	}  	/**	  * Set the Mode parameter of this EventReportIndication	  * @param pMode The Mode object.	  */	public void setMode(Mode pMode) {	   fMode=pMode;	}		/**	  * Set the Managed object class parameter of this EventReportIndication	  * @param pClass The ManagedObjectClass object.	  */	public void setManagedObjectClass(ObjectClass pClass ) {	   fManagedObjectClass=pClass;	}		/**	  * Set the Managed object instance parameter of this EventReportIndication	  * @param pOi The ManagedObjectInstance object.	  */      	public void setManagedObjectInstance(ObjectInstance pOI) {	   fManagedObjectInstance=pOI;	}		/**	  * Set the Event Type identifier parameter of this EventReportIndication	  * @param pEventType The EventType object.	  */   	public void setEventType(EventTypeId pEventType) {	   fEventType=pEventType;	}		/**	  * Set the Event Time parameter of this EventReportIndication	  * @param pEventTime The GeneralizedTime object.	  */ 	public void setEventTime(GeneralizedTime pEventTime) {	   fEventTime=pEventTime;	}  	/**	  * Set the Event Information parameter of this EventReportIndication	  * @param pInfo The CMISType object.	  */ 	public void setEventInformation(Any pInfo) {	   fEventInformation=pInfo;	}    private Mode  fMode = null;  private ObjectClass fManagedObjectClass = null;  private ObjectInstance fManagedObjectInstance = null;  private EventTypeId fEventType = null;  private GeneralizedTime fEventTime = null;  private Any fEventInformation = null;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?