org.netbeans.modules.xml.wsdl.model.impl
Class GlobalReferenceImpl<T extends ReferenceableWSDLComponent>

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractReference<T>
      extended by org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference<T>
          extended by org.netbeans.modules.xml.wsdl.model.impl.GlobalReferenceImpl<T>
All Implemented Interfaces:
NamedComponentReference<T>, Reference<T>

public class GlobalReferenceImpl<T extends ReferenceableWSDLComponent>
extends AbstractNamedComponentReference<T>
implements NamedComponentReference<T>

Author:
Nam Nguyen, rico

Field Summary
 
Fields inherited from class org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference
localName, prefix, qname
 
Fields inherited from class org.netbeans.modules.xml.xam.AbstractReference
refString
 
Constructor Summary
GlobalReferenceImpl(java.lang.Class<T> type, org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase parent, java.lang.String refString)
           
GlobalReferenceImpl(T referenced, java.lang.Class<T> type, org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase parent)
          Creates a new instance of GlobalReferenceImpl
 
Method Summary
 T get()
           
protected  Definitions getDefinitions()
           
 java.lang.String getEffectiveNamespace()
          Returns the effective namespace of the referenced component.
 org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase getParent()
          Returns parent referencing component.
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference
calculateQNameLocally, checkParentNotRemovedFromModel, checkParentPartOfModel, equals, getLocalName, getPrefix, getQName, getReferenced, getRefString, hashCode, references, refresh
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractReference
getType, isBroken, setReferenced, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.NamedComponentReference
getQName
 
Methods inherited from interface org.netbeans.modules.xml.xam.Reference
getRefString, getType, isBroken, references
 

Constructor Detail

GlobalReferenceImpl

public GlobalReferenceImpl(T referenced,
                           java.lang.Class<T> type,
                           org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase parent)
Creates a new instance of GlobalReferenceImpl


GlobalReferenceImpl

public GlobalReferenceImpl(java.lang.Class<T> type,
                           org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase parent,
                           java.lang.String refString)
Method Detail

getDefinitions

protected Definitions getDefinitions()

get

public T get()
Specified by:
get in interface Reference<T extends ReferenceableWSDLComponent>
Returns:
the referenced component. May return null if #isBroken() returns true;

getParent

public org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase getParent()
Description copied from class: AbstractNamedComponentReference
Returns parent referencing component.

Overrides:
getParent in class AbstractNamedComponentReference<T extends ReferenceableWSDLComponent>

getEffectiveNamespace

public java.lang.String getEffectiveNamespace()
Description copied from interface: NamedComponentReference
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.

Specified by:
getEffectiveNamespace in interface NamedComponentReference<T extends ReferenceableWSDLComponent>
Returns:
referenced namespace that is effective in the current document.