org.netbeans.modules.bpel.model.impl.references
Class SchemaReferenceImpl<T extends org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent>

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.SchemaReferenceImpl<T>
All Implemented Interfaces:
SchemaReference<T>, BpelAttributesType, MappedReference, NamedComponentReference<T>, Reference<T>

 class SchemaReferenceImpl<T extends org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent>
extends AbstractNamedComponentReference<T>
implements SchemaReference<T>, BpelAttributesType

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
SchemaReferenceImpl(java.lang.Class<T> type, AbstractDocumentComponent parent, java.lang.String value, SchemaReferenceBuilder.SchemaResolver resolver)
           
SchemaReferenceImpl(T target, java.lang.Class<T> type, AbstractDocumentComponent parent, SchemaReferenceBuilder.SchemaResolver resolver)
           
 
Method Summary
 T get()
           
 BpelAttributesType.AttrType getAttributeType()
           
 java.lang.String getEffectiveNamespace()
          Returns the effective namespace of the referenced component.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.references.AbstractNamedComponentReference
getAttribute, getParent, getRefString, isResolved, setAttribute, setReferenced, 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.dom.NamedComponentReference
getQName
 
Methods inherited from interface org.netbeans.modules.xml.xam.Reference
getRefString, 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
getRefString, getType, isBroken, references
 

Constructor Detail

SchemaReferenceImpl

SchemaReferenceImpl(T target,
                    java.lang.Class<T> type,
                    AbstractDocumentComponent parent,
                    SchemaReferenceBuilder.SchemaResolver resolver)

SchemaReferenceImpl

SchemaReferenceImpl(java.lang.Class<T> type,
                    AbstractDocumentComponent parent,
                    java.lang.String value,
                    SchemaReferenceBuilder.SchemaResolver resolver)
Method Detail

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 org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent>
Returns:
referenced namespace that is effective in the current document.

get

public T get()
Specified by:
get in interface Reference<T extends org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent>
Returns:
the referenced component. May return null if #isBroken() returns true;

getAttributeType

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