Top Description Methods
com.sun.xml.xsom

public Interface XSDeclaration

extends XSComponent
Known Direct Subinterfaces
com.sun.xml.xsom.XSElementDecl, com.sun.xml.xsom.XSModelGroupDecl, com.sun.xml.xsom.XSNotation, com.sun.xml.xsom.XSType, com.sun.xml.xsom.XSAttContainer, com.sun.xml.xsom.XSAttributeDecl
Known Direct Implementers
com.sun.xml.xsom.impl.DeclarationImpl

Base interface of all "declarations".
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

null if this component is anonymous.
getName
()

Gets the (local) name of the declaration.

public String
getTargetNamespace()

Target namespace to which this component belongs.

public boolean
isAnonymous()
Deprecated use the isGlobal method, which always returns the opposite of this function. Or the isLocal method.

public boolean
isGlobal()

Returns true if this declaration is a global declaration.

public boolean
isLocal()

Returns true if this declaration is a local declaration.

Inherited from com.sun.xml.xsom.XSComponent:
applygetAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSinglevisit

Method Detail

getNameback to summary
public String getName()

Gets the (local) name of the declaration.

Returns:String

null if this component is anonymous.

getTargetNamespaceback to summary
public String getTargetNamespace()

Target namespace to which this component belongs. "" is used to represent the default no namespace.

isAnonymousback to summary
public boolean isAnonymous()

Deprecated

use the isGlobal method, which always returns the opposite of this function. Or the isLocal method.

Annotations
@Deprecated
isGlobalback to summary
public boolean isGlobal()

Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.

isLocalback to summary
public boolean isLocal()

Returns true if this declaration is a local declaration. Equivalent of !isGlobal()