1 19 20 package com.hp.hpl.jena.rdf.model; 23 24 25 import com.hp.hpl.jena.util.iterator.*; 28 29 import java.util.*; 30 31 32 59 public interface RDFList 60 extends Resource 61 { 62 65 66 69 76 public int size(); 77 78 79 87 public RDFNode getHead(); 88 89 90 99 public RDFNode setHead( RDFNode value ); 100 101 102 110 public RDFList getTail(); 111 112 113 122 public RDFList setTail( RDFList tail ); 123 124 125 130 public boolean isEmpty(); 131 132 133 142 public RDFList cons( RDFNode value ); 143 144 145 161 public void add( RDFNode value ); 162 163 164 178 public RDFList with( RDFNode value ); 179 180 181 193 public RDFNode get( int i ); 194 195 196 209 public RDFNode replace( int i, RDFNode value ); 210 211 212 221 public boolean contains( RDFNode value ); 222 223 224 234 public int indexOf( RDFNode value ); 235 236 237 251 public int indexOf( RDFNode value, int start ); 252 253 254 267 public RDFList append( RDFList list ); 268 269 270 284 public RDFList append( Iterator nodes ); 285 286 287 303 public void concatenate( RDFList list ); 304 305 306 315 public void concatenate( Iterator nodes ); 316 317 318 326 public RDFList copy(); 327 328 329 336 public void apply( ApplyFn fn ); 337 338 339 350 public Object reduce( ReduceFn fn, Object initial ); 351 352 353 359 public ExtendedIterator mapWith( Map1 fn ); 360 361 362 374 public RDFList removeHead(); 375 376 377 383 public void removeAll(); 384 385 386 402 public void removeList(); 403 404 405 416 public RDFList remove( RDFNode val ); 417 418 419 430 public ExtendedIterator iterator(); 431 432 433 440 public List asJavaList(); 441 442 443 456 public boolean sameListAs( RDFList list ); 457 458 459 467 public boolean getStrict(); 468 469 470 480 public void setStrict( boolean strict ); 481 482 483 494 public boolean isValid(); 495 496 497 506 public String getValidityErrorMessage(); 507 508 509 513 517 public static interface ApplyFn { 518 525 public void apply( RDFNode node ); 526 } 527 528 529 533 public static interface ReduceFn { 534 547 public Object reduce( RDFNode node, Object accumulator ); 548 } 549 } 550 551 552 581 | Popular Tags |