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

java.lang.Object
  extended by com.hp.hpl.jena.iri.impl.IRIExamples
      extended by com.hp.hpl.jena.iri.impl.Specification
          extended by com.hp.hpl.jena.iri.impl.SchemeSpecification
All Implemented Interfaces:
IRIComponents, ViolationCodes

public class SchemeSpecification
extends Specification
implements ViolationCodes, IRIComponents


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hp.hpl.jena.iri.ViolationCodes
ViolationCodes.Initialize
 
Field Summary
 
Fields inherited from class com.hp.hpl.jena.iri.impl.Specification
all, iris, schemes
 
Fields inherited from interface com.hp.hpl.jena.iri.ViolationCodes
ACE_PREFIX, BAD_BIDI_SUBCOMPONENT, BAD_DOT_IN_IDN, BAD_IDN, BAD_IDN_UNASSIGNED_CHARS, BIDI_FORMATTING_CHARACTER, COMPATIBILITY_CHARACTER, CONTROL_CHARACTER, DEFAULT_PORT_SHOULD_BE_OMITTED, DEPRECATED_UNICODE_CHARACTER, DISCOURAGED_IRI_CHARACTER, DISCOURAGED_XML_CHARACTER, DNS_LABEL_DASH_START_OR_END, DNS_LABEL_LENGTH_LIMIT, DNS_LENGTH_LIMIT, DOUBLE_DASH_IN_REG_NAME, DOUBLE_WHITESPACE, EMPTY_SCHEME, HAS_PASSWORD, ILLEGAL_CHARACTER, ILLEGAL_PERCENT_ENCODING, IP_V4_OCTET_RANGE, IP_V6_OR_FUTURE_ADDRESS_SYNTAX, IPv6ADDRESS_SHOULD_BE_LOWERCASE, LONE_SURROGATE, LOWERCASE_PREFERRED, MAYBE_NOT_NFC, MAYBE_NOT_NFKC, NON_INITIAL_DOT_SEGMENT, NON_URI_CHARACTER, NON_XML_CHARACTER, NOT_DNS_NAME, NOT_NFC, NOT_NFKC, NOT_UTF8_ESCAPE, NOT_UTF8_ESCAPE_IN_HOST, NOT_XML_SCHEMA_WHITESPACE, PERCENT, PERCENT_20, PERCENT_ENCODING_SHOULD_BE_UPPERCASE, PORT_SHOULD_NOT_BE_EMPTY, PORT_SHOULD_NOT_BE_WELL_KNOWN, PORT_SHOULD_NOT_START_IN_ZERO, PRIVATE_USE_CHARACTER, PROHIBITED_COMPONENT_PRESENT, QUERY_IN_LEGACY_SCHEME, REQUIRED_COMPONENT_MISSING, SCHEME_INCLUDES_DASH, SCHEME_MUST_START_WITH_LETTER, SCHEME_PATTERN_MATCH_FAILED, SCHEME_PREFERS_LOWERCASE, SCHEME_REQUIRES_LOWERCASE, SUPERFLUOUS_ASCII_PERCENT_ENCODING, SUPERFLUOUS_NON_ASCII_PERCENT_ENCODING, UNASSIGNED_UNICODE_CHARACTER, UNDEFINED_UNICODE_CHARACTER, UNICODE_CONTROL_CHARACTER, UNICODE_WHITESPACE, UNREGISTERED_IANA_SCHEME, UNREGISTERED_NONIETF_SCHEME_TREE, UNWISE_CHARACTER, USE_PUNYCODE_NOT_PERCENTS, WHITESPACE
 
Fields inherited from interface com.hp.hpl.jena.iri.IRIComponents
AUTHORITY, FRAGMENT, HOST, PATH, PATHQUERY, PORT, QUERY, SCHEME, USER
 
Constructor Summary
SchemeSpecification(String name, String rfc, String uri, String title, String section, String[] bad, String[] good)
           
 
Method Summary
 void addDefinition(String uri, String defn, String defnHtml)
           
 void analyse(Parser parser, int range)
           
 boolean applies(String scheme)
           
 void port(int i)
           
 void setDNS(boolean b)
           
 void setPattern(int component, String string)
           
 void setReserved(int component, String subDelims)
          The given subDelims have syntactic use within this component in this scheme, and must be %-escaped for non-syntactic purposes.
 
Methods inherited from class com.hp.hpl.jena.iri.impl.Specification
add, get, getErrors, getProhibited, getRequired, getUri, isIRISpec, isSchemeSpec, name, prohibit, require
 
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
 

Constructor Detail

SchemeSpecification

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

applies

public boolean applies(String scheme)
Overrides:
applies in class Specification

addDefinition

public void addDefinition(String uri,
                          String defn,
                          String defnHtml)
Overrides:
addDefinition in class Specification

setDNS

public void setDNS(boolean b)
Overrides:
setDNS in class Specification

port

public void port(int i)
Overrides:
port in class Specification

setPattern

public void setPattern(int component,
                       String string)
Overrides:
setPattern in class Specification

setReserved

public void setReserved(int component,
                        String subDelims)
The given subDelims have syntactic use within this component in this scheme, and must be %-escaped for non-syntactic purposes. For the other subDelims the percent-escaped form, and the normal form are equivalent.

Overrides:
setReserved in class Specification

analyse

public void analyse(Parser parser,
                    int range)


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