|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.xml.text.syntax; import org.netbeans.editor.BaseTokenCategory; import org.netbeans.editor.BaseTokenID; import org.netbeans.editor.TokenID; /** * Enumeration of all XML TokenIds. * * @author Petr Kuzel * @see XMLDefaultTokenContext */ public interface XMLTokenIDs { // Token categories // Numeric-ids for token-ids public static final int TEXT_ID = 1; public static final int WS_ID = 2; public static final int ERROR_ID = 3; public static final int TAG_ID = 4; public static final int ARGUMENT_ID = 5; public static final int OPERATOR_ID = 6; public static final int VALUE_ID = 7; public static final int BLOCK_COMMENT_ID = 8; // public static final int SGML_COMMENT_ID = 9; public static final int DECLARATION_ID = 10; public static final int CHARACTER_ID = 11; public static final int EOL_ID = 12; public static final int PI_START_ID = 13; public static final int PI_TARGET_ID = 14; public static final int PI_CONTENT_ID = 15; public static final int PI_END_ID = 16; public static final int CDATA_SECTION_ID = 17; // Token-ids /** Plain text */ public static final BaseTokenID TEXT = new BaseTokenID( "text", TEXT_ID ); /** Erroneous Text */ public static final BaseTokenID WS = new BaseTokenID( "ws", WS_ID ); /** Plain Text*/ public static final BaseTokenID ERROR = new BaseTokenID( "error", ERROR_ID ); /** XML Tag */ public static final BaseTokenID TAG = new BaseTokenID( "tag", TAG_ID ); /** Argument of a tag */ public static final BaseTokenID ARGUMENT = new BaseTokenID( "attribute", ARGUMENT_ID ); /** Operators - '=' between arg and value */ public static final BaseTokenID OPERATOR = new BaseTokenID( "operator", OPERATOR_ID ); /** Value - value of an argument */ public static final BaseTokenID VALUE = new BaseTokenID( "value", VALUE_ID ); /** Block comment */ public static final BaseTokenID BLOCK_COMMENT = new BaseTokenID( "comment", BLOCK_COMMENT_ID ); /** SGML declaration in XML document - e.g. */ public static final BaseTokenID DECLARATION = new BaseTokenID( "doctype", DECLARATION_ID ); /** Character reference, e.g. < = < */ public static final BaseTokenID CHARACTER = new BaseTokenID( "ref", CHARACTER_ID ); /** End of line */ public static final BaseTokenID EOL = new BaseTokenID( "EOL", EOL_ID ); /* PI start delimiter |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.