com.sapportals.wcm.util.uri

Class UriList

java.lang.Object
  extended bycom.sapportals.wcm.util.uri.UriList
All Implemented Interfaces:
IUriList

public class UriList
extends Object
implements IUriList

An URL list implementation

Copyright (c) SAP AG 2001-2002


Field Summary
 
Fields inherited from interface com.sapportals.wcm.util.uri.IUriList
SEPARATOR
 
Constructor Summary
UriList()
           
UriList(String uris)
          Creates a uri list from a string.
UriList(URI[] uris)
           
UriList(UriList list)
           
 
Method Summary
 void add(int index, URI uri)
           
 boolean add(URI uri)
           
 boolean addAll(IUriList list)
           
 boolean addAll(String uris)
          Decodes URI list string and add them to the list.
 void addFirst(URI uri)
           
 void addLast(URI uri)
           
 URI get(int index)
           
 boolean isEmpty()
           
 IUriIterator listIterator()
           
 IUriIterator listIterator(int index)
           
 URI remove(int index)
           
 URI set(int index, URI uri)
           
 int size()
           
 String toString()
          Encodes URI list as uri strings detached by a SEPARATOR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UriList

public UriList()

UriList

public UriList(String uris)
Creates a uri list from a string. The string must be in an encoded format where each uri is detached by IUriList.SEPARATOR .

Parameters:
uris - Exp.: "\wcm\a;\wcm\b;..."

UriList

public UriList(URI[] uris)

UriList

public UriList(UriList list)
Method Detail

size

public int size()
Specified by:
size in interface IUriList

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface IUriList

add

public boolean add(URI uri)
Specified by:
add in interface IUriList

addAll

public boolean addAll(IUriList list)
Specified by:
addAll in interface IUriList

addAll

public boolean addAll(String uris)
Description copied from interface: IUriList
Decodes URI list string and add them to the list. The string must have the format as described in method IUriList.toString().

Specified by:
addAll in interface IUriList
Parameters:
uris - Exp.: "\wcm\a;\wcm\b;..."

get

public URI get(int index)
Specified by:
get in interface IUriList

set

public URI set(int index,
               URI uri)
Specified by:
set in interface IUriList

add

public void add(int index,
                URI uri)
Specified by:
add in interface IUriList

addLast

public void addLast(URI uri)
Specified by:
addLast in interface IUriList

addFirst

public void addFirst(URI uri)
Specified by:
addFirst in interface IUriList

remove

public URI remove(int index)
Specified by:
remove in interface IUriList

listIterator

public IUriIterator listIterator()
Specified by:
listIterator in interface IUriList

listIterator

public IUriIterator listIterator(int index)
Specified by:
listIterator in interface IUriList

toString

public String toString()
Description copied from interface: IUriList
Encodes URI list as uri strings detached by a SEPARATOR. Example: "\wcm\a;\wcm\b;..."

Specified by:
toString in interface IUriList


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.