001 /*
002 * (c) Copyright 2010 University of Bristol
003 * All rights reserved.
004 * [See end of file]
005 */
006 package net.rootdev.javardfa;
007
008 /**
009 *
010 * @author pldms
011 */
012 public interface ProfileCollector {
013
014 public final static String NS = "http://www.w3.org/ns/rdfa#";
015 public final static String uri = NS + "uri";
016 public final static String term = NS + "term";
017 public final static String prefix = NS + "prefix";
018 public final static ProfileCollector EMPTY_COLLECTOR = new NullProfileCollector();
019
020 void getProfile(String profileURI, EvalContext context);
021
022 static final class NullProfileCollector implements ProfileCollector {
023
024 public void getProfile(String profileURI, EvalContext context) {
025 throw new UnsupportedOperationException("Not supported yet.");
026 }
027
028 }
029
030 }
031
032 /*
033 * (c) Copyright 2010 University of Bristol
034 * All rights reserved.
035 *
036 * Redistribution and use in source and binary forms, with or without
037 * modification, are permitted provided that the following conditions
038 * are met:
039 * 1. Redistributions of source code must retain the above copyright
040 * notice, this list of conditions and the following disclaimer.
041 * 2. Redistributions in binary form must reproduce the above copyright
042 * notice, this list of conditions and the following disclaimer in the
043 * documentation and/or other materials provided with the distribution.
044 * 3. The name of the author may not be used to endorse or promote products
045 * derived from this software without specific prior written permission.
046 *
047 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
048 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
049 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
050 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
051 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
052 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
053 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
054 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
055 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
056 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
057 */