| 
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLToken
Basic interface for XMLToken
All XMLParser applications with Tokenizer feature must implement this interface. The interface has to be registered using XMLTokenizer method setTokenHandler(XMLToken handler).
If XMLtoken handler != null then for each registered and found token the parser calls the XMLToken call-back method token(int token, String value). During tokenizing the parser doesn't validate the document and doesn't include/read internal/external entities. If XMLtoken handler == null then the parser parses as usual.
A request for XML token is registered (on/off) using XMLParser method setToken (int token, boolean set). The requests could be registered during the parsing (from inside the call-back method) as well.
The XML tokens are defined as public constants in XMLToken interface. They correspond to the XML syntax variables from W3C XML Syntax Specification.
| Field Summary | |
|---|---|
static int | 
AttListDeclAttListDecl ::= '<' '!'  | 
static int | 
AttNameAttName ::= Name  | 
static int | 
AttributeAttribute ::= AttName Eq AttValue  | 
static int | 
AttValueAttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"  | 
static int | 
CDSectCDSect ::= CDStart CData CDEnd CDStart ::= '<' '!'  | 
static int | 
CharDataCharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)  | 
static int | 
CommentComment ::= '<' '!'  | 
static int | 
DTDNameDTDName ::= name  | 
static int | 
ElemDeclNameElemDeclName ::= name  | 
static int | 
elementdeclelementdecl ::= '<' '!  | 
static int | 
EmptyElemTagEmptyElemTag ::= '<' STagName (S Attribute)* S?  | 
static int | 
EntityDeclEntityDecl ::= '<' '!'  | 
static int | 
EntityDeclNameEntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'"  | 
static int | 
EntityValueEntityDeclName ::= Name  | 
static int | 
ETagETag ::= '<' '/' ETagName S?  | 
static int | 
ETagNameETagName ::= Name  | 
static int | 
ExternalIDExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral  | 
static int | 
NotationDeclNotationDecl ::= '<' '!  | 
static int | 
PIPI ::= '<' '?'  | 
static int | 
PITargetPITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))  | 
static int | 
ReferenceReference ::= EntityRef | CharRef | PEReference EntityRef ::= '&' Name ';' PEReference ::= '%' Name ';' CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';  | 
static int | 
STagSTag ::= '<' STagName (S Attribute)* S?  | 
static int | 
STagNameSTagName ::= Name  | 
static int | 
TextDeclTextDecl ::= '<' '?'  | 
static int | 
XMLDeclXMLDecl ::= '<' '?'  | 
| Method Summary | |
|---|---|
 void | 
token(int token, java.lang.String value)The interface call-back method.  | 
| Field Detail | 
|---|
static final int STag
STag ::= '<' STagName (S Attribute)* S? '>'
static final int EmptyElemTag
EmptyElemTag ::= '<' STagName (S Attribute)* S? '/' '>'
static final int STagName
STagName ::= Name
static final int AttValue
AttValue ::= '"' ([^<&"] | Reference)* '"'
| "'" ([^<&'] | Reference)* "'"
static final int AttName
AttName ::= Name
static final int Attribute
Attribute ::= AttName Eq AttValue
static final int ETag
ETag ::= '<' '/' ETagName S? '>'
static final int ETagName
ETagName ::= Name
static final int CharData
CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
static final int Comment
Comment ::= '<' '!' '--' ((Char - '-') | ('-' (Char - '-')))* '-->'
static final int Reference
Reference ::= EntityRef | CharRef | PEReference
EntityRef ::= '&' Name ';'
PEReference ::= '%' Name ';'
CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';
static final int CDSect
CDSect ::= CDStart CData CDEnd
CDStart ::= '<' '!' '[CDATA['
CData ::= (Char* - (Char* ']]>' Char*))
CDEnd ::= ']]>'
static final int PI
PI ::= '<' '?' PITarget (S (Char* - (Char* '?>' Char*)))? '?' '>'
static final int PITarget
PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
static final int XMLDecl
XMLDecl ::= '<' '?' 'xml' VersionInfo EncodingDecl? SDDecl? S? '?' '>'
static final int TextDecl
TextDecl ::= '<' '?' 'xml' VersionInfo? EncodingDecl S? '?>'
static final int DTDName
DTDName ::= name
static final int AttListDecl
AttListDecl ::= '<' '!' 'ATTLIST' S Name AttDef* S? '>'
static final int elementdecl
elementdecl ::= '<' '!ELEMENT' S ElemDeclName S contentspec S? '>'
static final int ElemDeclName
ElemDeclName ::= name
static final int EntityDecl
EntityDecl ::= '<' '!' ENTITY' S EntityDeclName S EntityDef S? '>'
| '<' '!' ENTITY' S '%' S EntityDeclName S PEDef S? '>'
EntityDef ::= EntityValue | (ExternalID NDataDecl?)
PEDef ::= EntityValue | ExternalID
static final int EntityValue
EntityDeclName ::= Name
static final int EntityDeclName
EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"'
| "'" ([^%&'] | PEReference | Reference)* "'"
static final int NotationDecl
NotationDecl ::= '<' '!NOTATION' S Name S (ExternalID | PublicID) S? '>'
static final int ExternalID
ExternalID ::= 'SYSTEM' S SystemLiteral
| 'PUBLIC' S PubidLiteral S SystemLiteral
| Method Detail | 
|---|
void token(int token,
           java.lang.String value)
token - The XML token constant as specified in the interface.value - The corresponding substring from the parsed text.
  | 
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2003, 2014, Oracle and/or its affiliates. All rights reserved.