RDFList.java revision 2
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch// The MIT License
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen//
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// Copyright (c) 2004 Evren Sirin
3e28b527dd6048a40684afd29cff0ee008fc0014Timo Sirainen//
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// Permission is hereby granted, free of charge, to any person obtaining a copy
b87761f9bbef949f31dae297e619ac3f5e9c2b2eTimo Sirainen// of this software and associated documentation files (the "Software"), to
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// deal in the Software without restriction, including without limitation the
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
0371406d952fe51367c7be91703e5634b7d9d225Timo Sirainen// sell copies of the Software, and to permit persons to whom the Software is
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// furnished to do so, subject to the following conditions:
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen//
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// The above copyright notice and this permission notice shall be included in
ab0d9eecd85f74acae18fe88529302e0776cc500Timo Sirainen// all copies or substantial portions of the Software.
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen//
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
0dffa25d211be541ee3c953b23566a1a990789dfTimo Sirainen// IN THE SOFTWARE.
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen/*
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen * Created on Dec 23, 2004
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen */
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainenpackage org.mindswap.owl.list;
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainenimport java.util.Iterator;
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainenimport java.util.List;
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainenimport org.mindswap.owl.OWLIndividual;
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainenimport org.mindswap.owl.OWLIndividualList;
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainenimport org.mindswap.owl.OWLValue;
0dffa25d211be541ee3c953b23566a1a990789dfTimo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen/**
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen * @author Evren Sirin
0db5b158a00c08955bdacc99b1e2cd1ec07f4311Timo Sirainen *
0db5b158a00c08955bdacc99b1e2cd1ec07f4311Timo Sirainen */
0db5b158a00c08955bdacc99b1e2cd1ec07f4311Timo Sirainenpublic interface RDFList extends OWLIndividual {
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public OWLIndividual getFirst();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public OWLValue getFirstValue();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public void setFirst(OWLValue first);
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public RDFList getRest();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public void setRest(RDFList rest);
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public ListVocabulary getVocabulary();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public OWLIndividualList getAll();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public List getAllValues();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public OWLIndividual get(int index);
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen public OWLValue getValue(int index);
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public RDFList add(OWLValue item);
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public RDFList insert(OWLValue item);
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen public RDFList insertAt(int index, OWLValue item);
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen public void set(int index, OWLValue item);
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen public Iterator iterator();
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen public int size();
a94936bafd127680184da114c6a177b37ff656e5Timo Sirainen
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen public boolean isEmpty();
d05b0c12797d6649812c8c40ca30f4c59105d6a6Timo Sirainen}
3e28b527dd6048a40684afd29cff0ee008fc0014Timo Sirainen