public class

VerificationMethod

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.webmastertools.VerificationMethod

Class Overview

GData schema extension describing a node specifying verification method. The verification method specifies a type of verification (HTML meta tag or file verification), verification value to be used by web site owner for the given type, and whether the given verification method is currently in use. Example:

   
      SOMEVALUE
   
 

Summary

Nested Classes
enum VerificationMethod.MethodType Enumerates supported verification method types. 
Constants
String FILECONTENT
String INUSE
String METHODTYPE
String METHOD_NODE XML element names used by this class.
Fields
private String fileContent Specifies the file content for HTML file verification.
private boolean inUse Specifies whether the method is currently in use.
private VerificationMethod.MethodType methodType Verification method type.
private String value Specifies verification value which is interpreted accordingly to verification type.
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
VerificationMethod()
Constructs AbstractExtension to represent verification method node.
Public Methods
boolean equals(Object rhs)
Compares VerificationMethod objects based on the verification method type, value, file-content and in-use flag.
String getFileContent()
Returns file content for HTML file verification.
boolean getInUse()
Returns verification method that is currently in use.
VerificationMethod.MethodType getMethodType()
Get verification method type.
String getValue()
Get verification method value.
int hashCode()
Returns hash code which is based on the method type.
static boolean matchesNode(String nodeName)
Checks whether specified node name matches node name for the verification method.
void setFileContent(String fileContent)
Sets file content for HTML file verification.
void setInUse(boolean inUse)
Mark this method as the verification method that is currently in use.
void setMethodType(VerificationMethod.MethodType method)
Set verification method type.
void setValue(String v)
Sets verification method value.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Overrides base class method to parse attributes specific to this class.
void putAttributes(AttributeGenerator generator)
Overrides base class method to output attributes defined by this class.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String FILECONTENT

Constant Value: "file-content"

private static final String INUSE

Constant Value: "in-use"

private static final String METHODTYPE

Constant Value: "type"

public static final String METHOD_NODE

XML element names used by this class.

Constant Value: "verification-method"

Fields

private String fileContent

Specifies the file content for HTML file verification.

private boolean inUse

Specifies whether the method is currently in use.

private VerificationMethod.MethodType methodType

Verification method type.

private String value

Specifies verification value which is interpreted accordingly to verification type. For instance for HTML file verification, the value specifies the file name that must be used by web site owner.

Public Constructors

public VerificationMethod ()

Constructs AbstractExtension to represent verification method node.

Public Methods

public boolean equals (Object rhs)

Compares VerificationMethod objects based on the verification method type, value, file-content and in-use flag.

Parameters
rhs

public String getFileContent ()

Returns file content for HTML file verification.

public boolean getInUse ()

Returns verification method that is currently in use.

public VerificationMethod.MethodType getMethodType ()

Get verification method type.

public String getValue ()

Get verification method value. The value is a string that is interpreted according to the method type.

public int hashCode ()

Returns hash code which is based on the method type.

public static boolean matchesNode (String nodeName)

Checks whether specified node name matches node name for the verification method.

Parameters
nodeName Is node name to check against.
Returns
  • true if the name matches or false otherwise.

public void setFileContent (String fileContent)

Sets file content for HTML file verification.

Parameters
fileContent

public void setInUse (boolean inUse)

Mark this method as the verification method that is currently in use.

Parameters
inUse

public void setMethodType (VerificationMethod.MethodType method)

Set verification method type.

Parameters
method

public void setValue (String v)

Sets verification method value. The value is a string that is interpreted according to the method type.

Parameters
v

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Overrides base class method to parse attributes specific to this class.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Overrides base class method to output attributes defined by this class.

Parameters
generator Attribute generator