Microsoft SDK for Java

create

This method of the Name class contains the following signatures:

create(String s) creates an unqualified Name for an XML Attribute using the given string.
create(char val[], int offset, int len) creates an unqualified Name for an XML Attribute using the given array, offset, and length.
create(String name, String ns) creates a Name object for the given name and namespace.
create(String name, Atom nameSpace) creates a Name object for the given name and namespace where the name and Namespace are already Atoms.

create(String s)

Creates an unqualified Name object for an XML Attribute using the given string.

Syntax

public static Name create(String s);

Return Value

Returns a Name object.

Parameters

s The String object to create the Name with.

create(char val[], int offset, int len)

Creates an unqualified Name object for an XML Attribute using the given array, offset, and length.

Syntax

public static Name create(char val[], int offset, int len);

Return Value

Returns a Name object.

Parameters

val A character array.
offset The index of the first character of the array.
len The array length.

create(String name, String ns)

Creates a Name object for the given name and namespace. The strings are case-sensitive.

Syntax

public static Name create(String name, String ns);

Return Value

Returns a Name object.

Parameters

name The string representing the Name object to be added to the hash table.
ns The namespace that defines the context in which the name was defined.

create(String name, Atom nameSpace)

Creates a Name object for the given name and namespace where the name and Namespace are already Atoms. The strings are case-sensitive.

Syntax

public static Name create(String name, Atom nameSpace);

Return Value

Returns a Name object.

Parameters

name The string representing the Name object to be added to the hash table.
namespace The namespace hash code.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.