Top Fields Constructors Methods
com.sun.xml.xsom.impl

pack-priv abstract Class DeclarationImpl

extends ComponentImpl
implements XSDeclaration
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.XSDeclaration, com.sun.xml.xsom.XSComponent
Known Direct Subclasses
com.sun.xml.xsom.impl.ElementDecl, com.sun.xml.xsom.impl.ModelGroupDeclImpl, com.sun.xml.xsom.impl.NotationImpl, com.sun.xml.xsom.impl.SchemaSetImpl.AnySimpleType, com.sun.xml.xsom.impl.SchemaSetImpl.AnyType, com.sun.xml.xsom.impl.SimpleTypeImpl, com.sun.xml.xsom.impl.AttributeDeclImpl, com.sun.xml.xsom.impl.AttributesHolder
Imports
com.sun.xml.xsom.XSDeclaration, com.sun.xml.xsom.impl.parser.SchemaDocumentImpl, org.xml.sax.Locator

Field Summary

Modifier and TypeField and Description
private final boolean
private final String
private final String
Inherited from com.sun.xml.xsom.impl.ComponentImpl:
ownerDocument

Constructor Summary

AccessConstructor and Description
pack-priv
DeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa, String _targetNamespace, String _name, boolean _anonymous)

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements com.sun.xml.xsom.XSDeclaration.getName.

Gets the (local) name of the declaration.

public String
getTargetNamespace()

Implements com.sun.xml.xsom.XSDeclaration.getTargetNamespace.

Target namespace to which this component belongs.

public boolean
public final boolean
isGlobal()

Implements com.sun.xml.xsom.XSDeclaration.isGlobal.

Returns true if this declaration is a global declaration.

public final boolean
isLocal()

Implements com.sun.xml.xsom.XSDeclaration.isLocal.

Returns true if this declaration is a local declaration.

Inherited from com.sun.xml.xsom.impl.ComponentImpl:
getAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSingletoString

Field Detail

anonymousback to summary
private final boolean anonymous
nameback to summary
private final String name
targetNamespaceback to summary
private final String targetNamespace

Constructor Detail

DeclarationImplback to summary
pack-priv DeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa, String _targetNamespace, String _name, boolean _anonymous)

Method Detail

getNameback to summary
public String getName()

Implements com.sun.xml.xsom.XSDeclaration.getName.

Doc from com.sun.xml.xsom.XSDeclaration.getName.

Gets the (local) name of the declaration.

getTargetNamespaceback to summary
public String getTargetNamespace()

Implements com.sun.xml.xsom.XSDeclaration.getTargetNamespace.

Doc from com.sun.xml.xsom.XSDeclaration.getTargetNamespace.

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

isAnonymousback to summary
public boolean isAnonymous()

Implements com.sun.xml.xsom.XSDeclaration.isAnonymous.

Deprecated

Annotations
@Deprecated
isGlobalback to summary
public final boolean isGlobal()

Implements com.sun.xml.xsom.XSDeclaration.isGlobal.

Doc from com.sun.xml.xsom.XSDeclaration.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 final boolean isLocal()

Implements com.sun.xml.xsom.XSDeclaration.isLocal.

Doc from com.sun.xml.xsom.XSDeclaration.isLocal.

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