📄 attributeidlist.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 *///---------------------------------------------------------------------------////// File: AttributeIdList.java// Project: Cmis over Java// Author(s): Eric DILLON// Creation: 20.03.1998// Last modified: 25.03.1998////---------------------------------------------------------------------------////---------------------------------------------------------------------------//// CVS Info//---------------------------------------------------------------------------////// $Id: AttributeIdList.java,v 1.2 2000/09/05 13:30:30 festor Exp $// $Source: /local/resedas/CVS-Repository/CmisJavaApi/src/fr/dyade/cmis/api/types/AttributeIdList.java,v $//---------------------------------------------------------------------------//// Todo//---------------------------------------------------------------------------////package fr.dyade.cmis.api.types;// Java related Packagesimport java.util.Vector;import java.util.Enumeration;/** Java representation for ASN1 attribute identifier list. * * In X711 this type is directly coded as an IMPLICIT SET of AttributeId. * * The implementation uses Vector types for the sequence. * @see AttributeId * * @version cvs $Id: AttributeIdList.java,v 1.2 2000/09/05 13:30:30 festor Exp $ */public class AttributeIdList extends CMISType { /** * Creates an AttributeId list, with a first element * @param pId the first id in the new list */ public AttributeIdList( AttributeId pId ) { super(); fElts.addElement(pId); } public AttributeIdList( AttributeId pId1, AttributeId pId2) { super(); fElts.addElement(pId1); fElts.addElement(pId2); } public AttributeIdList( AttributeId pId1, AttributeId pId2, AttributeId pId3) { super(); fElts.addElement(pId1); fElts.addElement(pId2); fElts.addElement(pId3); } /** * Creates an AttributeId list, with pId in string dotted notation as first element */ public AttributeIdList( String pDottedFormOID ) { this(new AttributeId(pDottedFormOID)); } public AttributeIdList( String pDottedFormOID1, String pDottedFormOID2 ) { this(new AttributeId(pDottedFormOID1), new AttributeId(pDottedFormOID2)); } public AttributeIdList( String pDottedFormOID1, String pDottedFormOID2, String pDottedFormOID3 ) { this(new AttributeId(pDottedFormOID1), new AttributeId(pDottedFormOID2), new AttributeId(pDottedFormOID3)); } /** * Adds a new AttributeId to the List. */ public void add( AttributeId pAID ) { fElts.addElement(pAID); } /** * Adds a new AttributeId (dotted notation) to the List. */ public void add( String pDottedFormOID ) { fElts.addElement(new AttributeId(pDottedFormOID)); } /** List elements, via java enumeration. * This method gives access to Attribute elements of the list, via java enumeration. * @return The enumeration of the list elements. * Use cast to <code>{@link AttributeId}</code> (and subclass) when calling * on the <code>java.util.Enumeration.nextElement()</code> method of the result. */ public Enumeration getElts() { return fElts.elements(); } public String toString() { return fElts.toString(); } public boolean isValid() { return (! fElts.isEmpty()); } /** * Actual Attribute id list. */ private Vector fElts = new Vector();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -