org.netbeans.modules.bpel.model.impl.references
Class WSDLReferenceImpl<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.bpel.model.impl.references.AbstractNamedComponentReference<T>
              extended by org.netbeans.modules.bpel.model.impl.references.WSDLReferenceImpl<T>
All Implemented Interfaces:
WSDLReference<T>, BpelAttributesType, MappedReference, NamedComponentReference<T>, Reference<T>

 class WSDLReferenceImpl<T extends ReferenceableWSDLComponent>
extends AbstractNamedComponentReference<T>
implements WSDLReference<T>

Author:
ads

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.netbeans.modules.bpel.model.impl.references.BpelAttributesType
BpelAttributesType.AttrType
 
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
WSDLReferenceImpl(T target, java.lang.Class<T> type, AbstractDocumentComponent parent, java.lang.String refString, WSDLReferenceBuilder.WSDLResolver resolver)
           
 
Method Summary
 T get()
           
 BpelAttributesType.AttrType getAttributeType()
           
 java.lang.String getEffectiveNamespace()
          Returns the effective namespace of the referenced component.
 javax.xml.namespace.QName getQName()
          Note this method will first attempt to build the QName base on local lookup before trying to resolve the referenced.
 java.lang.String getRefString()
           
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.references.AbstractNamedComponentReference
getAttribute, getParent, isResolved, setAttribute, setReferenced, setResolved
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference
calculateQNameLocally, checkParentNotRemovedFromModel, checkParentPartOfModel, equals, getLocalName, getPrefix, getReferenced, hashCode, references, refresh
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractReference
getType, isBroken, 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.Reference
getType, isBroken, references
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.references.Reference
isResolved
 
Methods inherited from interface org.netbeans.modules.xml.xam.Reference
getType, isBroken, references
 

Constructor Detail

WSDLReferenceImpl

WSDLReferenceImpl(T target,
                  java.lang.Class<T> type,
                  AbstractDocumentComponent parent,
                  java.lang.String refString,
                  WSDLReferenceBuilder.WSDLResolver resolver)
Method Detail

get

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

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.

getRefString

public java.lang.String getRefString()
Specified by:
getRefString in interface Reference<T extends ReferenceableWSDLComponent>
Overrides:
getRefString in class AbstractNamedComponentReference<T extends ReferenceableWSDLComponent>
Returns:
string to use in persiting the reference as attribute value of the containing component

getQName

public javax.xml.namespace.QName getQName()
Description copied from class: AbstractNamedComponentReference
Note this method will first attempt to build the QName base on local lookup before trying to resolve the referenced. Subclasses need to override if local calculation is not desirable.

Specified by:
getQName in interface NamedComponentReference<T extends ReferenceableWSDLComponent>
Overrides:
getQName in class AbstractNamedComponentReference<T extends ReferenceableWSDLComponent>
Returns:
QName of the referenced component.

getAttributeType

public BpelAttributesType.AttrType getAttributeType()
Specified by:
getAttributeType in interface BpelAttributesType
Returns:
Schema attribute type.