Package com.sun.xml.xsom.impl
Class NotationImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.NotationImpl
-
- All Implemented Interfaces:
XSComponent
,XSDeclaration
,XSNotation
public class NotationImpl extends ComponentImpl implements XSNotation
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Field Summary
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Constructor Description NotationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _name, java.lang.String _publicId, java.lang.String _systemId)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
apply(XSFunction function)
Accepts a functor.java.lang.String
getName()
Gets the (local) name of the declaration.java.lang.String
getPublicId()
java.lang.String
getSystemId()
java.lang.String
getTargetNamespace()
Target namespace to which this component belongs.boolean
isAnonymous()
Deprecated.boolean
isGlobal()
Returns true if this declaration is a global declaration.boolean
isLocal()
Returns true if this declaration is a local declaration.void
visit(XSVisitor visitor)
Accepts a visitor.-
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
Methods inherited from interface com.sun.xml.xsom.XSDeclaration
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
-
-
-
-
Constructor Detail
-
NotationImpl
public NotationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _name, java.lang.String _publicId, java.lang.String _systemId)
-
-
Method Detail
-
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicId
in interfaceXSNotation
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId
in interfaceXSNotation
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
apply
public java.lang.Object apply(XSFunction function)
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
getName
public java.lang.String getName()
Description copied from interface:XSDeclaration
Gets the (local) name of the declaration.- Specified by:
getName
in interfaceXSDeclaration
- Returns:
- null if this component is anonymous.
-
getTargetNamespace
public java.lang.String getTargetNamespace()
Description copied from interface:XSDeclaration
Target namespace to which this component belongs.""
is used to represent the default no namespace.- Specified by:
getTargetNamespace
in interfaceXSDeclaration
-
isAnonymous
public boolean isAnonymous()
Deprecated.- Specified by:
isAnonymous
in interfaceXSDeclaration
-
isGlobal
public final boolean isGlobal()
Description copied from interface:XSDeclaration
Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.- Specified by:
isGlobal
in interfaceXSDeclaration
-
isLocal
public final boolean isLocal()
Description copied from interface:XSDeclaration
Returns true if this declaration is a local declaration. Equivalent of!isGlobal()
- Specified by:
isLocal
in interfaceXSDeclaration
-
-