com.google.streamhtmlparser
Enum HtmlParserFactory.AttributeOptions

java.lang.Object
  extended by java.lang.Enum<HtmlParserFactory.AttributeOptions>
      extended by com.google.streamhtmlparser.HtmlParserFactory.AttributeOptions
All Implemented Interfaces:
Serializable, Comparable<HtmlParserFactory.AttributeOptions>
Enclosing class:
HtmlParserFactory

public static enum HtmlParserFactory.AttributeOptions
extends Enum<HtmlParserFactory.AttributeOptions>

To provide additional options when creating an HtmlParser using HtmlParserFactory.createParserInAttribute(HtmlParser.ATTR_TYPE, boolean, Set)


Enum Constant Summary
JS_QUOTED
          Indicates that the attribute value is Javascript-quoted.
URL_PARTIAL
          Indicates the attribute value is only a part of a URL as opposed to a full URL.
 
Method Summary
static HtmlParserFactory.AttributeOptions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HtmlParserFactory.AttributeOptions[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JS_QUOTED

public static final HtmlParserFactory.AttributeOptions JS_QUOTED
Indicates that the attribute value is Javascript-quoted. Only takes effect for Javascript-accepting attributes - as identified by HtmlParser.ATTR_TYPE.JS - and only when the attribute is also HTML quoted.


URL_PARTIAL

public static final HtmlParserFactory.AttributeOptions URL_PARTIAL
Indicates the attribute value is only a part of a URL as opposed to a full URL. In particular, the value is not at the start of a URL and hence does not necessitate validation of the URL scheme. Only valid for URI-accepting attributes - as identified by HtmlParser.ATTR_TYPE.URI.

Method Detail

values

public static HtmlParserFactory.AttributeOptions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HtmlParserFactory.AttributeOptions c : HtmlParserFactory.AttributeOptions.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HtmlParserFactory.AttributeOptions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2012 Google. All Rights Reserved.