org.netbeans.modules.bpel.model.impl.references
Class AbstractNamedComponentReference<T extends NamedReferenceable>

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>
All Implemented Interfaces:
MappedReference, NamedComponentReference<T>, Reference<T>
Direct Known Subclasses:
GlobalWSDLReferenceImpl, SchemaReferenceImpl, WSDLReferenceImpl

abstract class AbstractNamedComponentReference<T extends NamedReferenceable>
extends AbstractNamedComponentReference<T>
implements Reference<T>, MappedReference

Author:
ads

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
AbstractNamedComponentReference(java.lang.Class<T> referencedType, AbstractDocumentComponent parent, java.lang.String ref)
           
AbstractNamedComponentReference(T referenced, java.lang.Class<T> referencedType, AbstractDocumentComponent parent)
           
 
Method Summary
 Attribute getAttribute()
           
protected  AbstractDocumentComponent getParent()
          Returns parent referencing component.
 java.lang.String getRefString()
           
 boolean isResolved()
           
 void setAttribute(Attribute attr)
          Sets attribute.
protected  void setReferenced(T referenced)
          Accessor method for referenced.
protected  void setResolved()
           
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference
calculateQNameLocally, checkParentNotRemovedFromModel, checkParentPartOfModel, equals, getLocalName, getPrefix, getQName, 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
get, getType, isBroken, references
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.NamedComponentReference
getEffectiveNamespace
 

Constructor Detail

AbstractNamedComponentReference

AbstractNamedComponentReference(T referenced,
                                java.lang.Class<T> referencedType,
                                AbstractDocumentComponent parent)

AbstractNamedComponentReference

AbstractNamedComponentReference(java.lang.Class<T> referencedType,
                                AbstractDocumentComponent parent,
                                java.lang.String ref)
Method Detail

getRefString

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

isResolved

public boolean isResolved()

getAttribute

public Attribute getAttribute()
Specified by:
getAttribute in interface MappedReference
Returns:
attribute which value represent reference.

setAttribute

public void setAttribute(Attribute attr)
Description copied from interface: MappedReference
Sets attribute.

Specified by:
setAttribute in interface MappedReference

setResolved

protected void setResolved()

getParent

protected AbstractDocumentComponent getParent()
Description copied from class: AbstractNamedComponentReference
Returns parent referencing component.

Overrides:
getParent in class AbstractNamedComponentReference<T extends NamedReferenceable>

setReferenced

protected void setReferenced(T referenced)
Description copied from class: AbstractReference
Accessor method for referenced.

Overrides:
setReferenced in class AbstractReference<T extends NamedReferenceable>