org.netbeans.modules.xml.xam.dom
Interface NamedComponentReference<T extends NamedReferenceable>

All Superinterfaces:
Reference<T>
All Known Subinterfaces:
SchemaReference<T>, WSDLReference<T>, WSDLReference<T>
All Known Implementing Classes:
AbstractNamedComponentReference, AbstractNamedComponentReference, GlobalReferenceImpl, GlobalWSDLReferenceImpl, SchemaReferenceImpl, WSDLReferenceImpl

public interface NamedComponentReference<T extends NamedReferenceable>
extends Reference<T>

Represents reference to a component that can be identified globally by QName.

Author:
Chris Webster, Rico Cruz, Nam Nguyen

Method Summary
 java.lang.String getEffectiveNamespace()
          Returns the effective namespace of the referenced component.
 javax.xml.namespace.QName getQName()
          Returns full QName of the referenced component if the reference is not broken.
 
Methods inherited from interface org.netbeans.modules.xml.xam.Reference
get, getRefString, getType, isBroken, references
 

Method Detail

getEffectiveNamespace

java.lang.String getEffectiveNamespace()
Returns the effective namespace of the referenced component.

Note that in case of XML schema document, the effective namespace of a component could be different when the schema is included by another schema.

Returns:
referenced namespace that is effective in the current document.

getQName

javax.xml.namespace.QName getQName()
Returns full QName of the referenced component if the reference is not broken. If reference has not been resolved or broken, the returned QNam could be partial (only local name) and implementation dependent.

Returns:
QName of the referenced component.