📄 complexitylimitation.java
字号:
/* * 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: ComplexityLimitation.java,v 1.2 2000/09/05 13:30:35 festor Exp $////---------------------------------------------------------------------------//// Todo//---------------------------------------------------------------------------//// - Define sub 3 classes ?package fr.dyade.cmis.api.types;/** * Java representation of a ComplexityLimitation datatype. * <p> * This object is used within CMISError response argument. One of these 3 field might be set with non-<code>null</code> value. * <menu> * <li> Scope, * <li> Filter, * <li> Synchronization. * </menu> * <strong>Within a manager application, this object is built from C-code through JNI. As a consequence, "Set" methods are only provided for agent implementations.</strong> */public class ComplexityLimitation extends CMISType { /** Basic constructor. * Mostly dedicated to native mappers. */ public ComplexityLimitation() { super(); } public ComplexityLimitation( Scope pScope, Filter pFilter, Synchronization pSync ) { super(); fScope=pScope; fFilter=pFilter; fSync=pSync; } public ComplexityLimitation( Scope pScope ) { super(); fScope=pScope; } public ComplexityLimitation( Filter pFilter ) { super(); fFilter=pFilter; } public ComplexityLimitation( Synchronization pSync ) { super(); fSync=pSync; } /** * Returns the <code>Scope</code> for this <code>ComplexityLimitation</code> instance. * @return Scope */ public Scope getScope() { return fScope; } /** * Sets the <code>Scope</code> field of this <code>ComplexityLimitation</code> instance. * @param pScope The <code>Scope</code> parameter to use. */ public void setScope(Scope pScope) { fScope = pScope; } /** * Returns the <code>Filter</code> for this <code>ComplexityLimitation</code> instance. * @return Filter */ public Filter getFilter() { return fFilter; } /** * Sets the <code>Filter</code> field of this <code>ComplexityLimitation</code> instance. * @param pFilter The <code>Filter</code> parameter to use. */ public void setFilter(Filter pFilter) { fFilter = pFilter; } /** * Returns the <code>Synchronization</code> for this <code>ComplexityLimitation</code> instance. * @return Synchronization */ public Synchronization getSync() { return fSync; } /** * Sets the <code>Synchronization</code> field of this <code>ComplexityLimitation</code> instance. * @param pSynchronization The <code>Synchronization</code> parameter to use. */ public void setSync(Synchronization pSynchronization) { fSync = pSynchronization; } public String toString() { String res=null; if (fScope!=null) { res= "Scope="+fScope+","; } if (fFilter!=null) { if (res==null) { res="Filter="+fFilter; } else { res+=", Filter="+fFilter; } } if (fSync!=null) { if (res==null) { res="Sync="+fSync; } else { res+=", Sync="+fSync; } } return res==null ? "" : res; } private Scope fScope; private Filter fFilter; private Synchronization fSync;} // ComplexityLimitation
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -