org.netbeans.modules.bpel.model.impl.references
Class BpelReferenceImpl<T extends BpelReferenceable>

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractReference<T>
      extended by org.netbeans.modules.bpel.model.impl.references.AbstractReference<T>
          extended by org.netbeans.modules.bpel.model.impl.references.BpelReferenceImpl<T>
All Implemented Interfaces:
BpelReference<T>, MappedReference, Reference<T>

 class BpelReferenceImpl<T extends BpelReferenceable>
extends AbstractReference<T>
implements BpelReference<T>, MappedReference

Author:
ads

Field Summary
 
Fields inherited from class org.netbeans.modules.xml.xam.AbstractReference
refString
 
Constructor Summary
BpelReferenceImpl(java.lang.Class<T> type, AbstractComponent parent, java.lang.String value, BpelReferenceBuilder.BpelResolver resolver)
           
BpelReferenceImpl(T target, java.lang.Class<T> type, AbstractComponent parent, java.lang.String value, BpelReferenceBuilder.BpelResolver resolver)
           
 
Method Summary
 T get()
           
 Attribute getAttribute()
           
 boolean isResolved()
           
 boolean references(T entity)
          Returns true if this reference refers to the target component.
 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.bpel.model.impl.references.AbstractReference
getParent
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractReference
equals, getReferenced, getRefString, getType, hashCode, 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
getRefString, getType, isBroken
 

Constructor Detail

BpelReferenceImpl

BpelReferenceImpl(T target,
                  java.lang.Class<T> type,
                  AbstractComponent parent,
                  java.lang.String value,
                  BpelReferenceBuilder.BpelResolver resolver)

BpelReferenceImpl

BpelReferenceImpl(java.lang.Class<T> type,
                  AbstractComponent parent,
                  java.lang.String value,
                  BpelReferenceBuilder.BpelResolver resolver)
Method Detail

get

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

isResolved

public boolean isResolved()

references

public boolean references(T entity)
Description copied from class: AbstractReference
Returns true if this reference refers to the target component.

Specified by:
references in interface Reference<T extends BpelReferenceable>
Overrides:
references in class AbstractReference<T extends BpelReferenceable>

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()

setReferenced

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

Overrides:
setReferenced in class AbstractReference<T extends BpelReferenceable>