com.hp.hpl.jena.iri.impl
Class Specification

java.lang.Object
  extended by com.hp.hpl.jena.iri.impl.IRIExamples
      extended by com.hp.hpl.jena.iri.impl.Specification
Direct Known Subclasses:
SchemeSpecification

public class Specification
extends IRIExamples


Field Summary
static Map<String,Specification> all
           
static Map<String,Specification> iris
           
static Map<String,Specification> schemes
           
 
Constructor Summary
Specification(String name, String type, String rfc, String uri, String title, String section, String[] bad, String[] good)
           
 
Method Summary
 void add(ViolationCodeInfo.InSpec spec, ViolationCodeInfo info)
           
 void addDefinition(String string, String string2, String string3)
           
 boolean applies(String scheme)
           
static Specification get(String name)
           
 long getErrors(int i)
           
 int getProhibited()
           
 int getRequired()
           
 String getUri()
           
 boolean isIRISpec()
           
 boolean isSchemeSpec()
           
 String name()
           
 void port(int i)
           
 void prohibit(int component)
           
 void require(int component)
           
 void setDNS(boolean b)
           
 void setPattern(int component, String string)
           
 void setReserved(int component, String string)
           
 
Methods inherited from class com.hp.hpl.jena.iri.impl.IRIExamples
getBadExamples, getGoodExamples
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iris

public static final Map<String,Specification> iris

schemes

public static final Map<String,Specification> schemes

all

public static final Map<String,Specification> all
Constructor Detail

Specification

public Specification(String name,
                     String type,
                     String rfc,
                     String uri,
                     String title,
                     String section,
                     String[] bad,
                     String[] good)
Method Detail

get

public static Specification get(String name)

getUri

public String getUri()

add

public void add(ViolationCodeInfo.InSpec spec,
                ViolationCodeInfo info)

getErrors

public long getErrors(int i)

name

public String name()

addDefinition

public void addDefinition(String string,
                          String string2,
                          String string3)

setDNS

public void setDNS(boolean b)

port

public void port(int i)

prohibit

public void prohibit(int component)

require

public void require(int component)

setPattern

public void setPattern(int component,
                       String string)

setReserved

public void setReserved(int component,
                        String string)

getProhibited

public int getProhibited()

getRequired

public int getRequired()

isIRISpec

public boolean isIRISpec()

isSchemeSpec

public boolean isSchemeSpec()

applies

public boolean applies(String scheme)


Copyright ? 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP