|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.xsd.impl.XSDConcreteComponentImpl
org.eclipse.xsd.impl.XSDComponentImpl
org.eclipse.xsd.impl.XSDNamedComponentImpl
An implementation of the model object 'Named Component'.
The following features are implemented:
Nested Class Summary | |
static class |
XSDNamedComponentImpl.Comparator
|
static class |
XSDNamedComponentImpl.StringPairComparator
|
static class |
XSDNamedComponentImpl.XSDNamedComponentList
|
Nested classes inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
XSDConcreteComponentImpl.XSDContentsEList |
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
BasicNotifierImpl.EAdapterList |
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject |
InternalEObject.EStore |
Field Summary | |
protected static String |
ALIAS_NAME_EDEFAULT
The default value of the ' Alias Name ' attribute |
protected static String |
ALIAS_URI_EDEFAULT
The default value of the ' Alias URI ' attribute |
protected String |
name
The cached value of the ' Name ' attribute |
protected static String |
NAME_EDEFAULT
The default value of the ' Name ' attribute |
protected static String |
QNAME_EDEFAULT
The default value of the ' QName ' attribute |
protected static String |
TARGET_NAMESPACE_EDEFAULT
The default value of the ' Target Namespace ' attribute |
protected String |
targetNamespace
The cached value of the ' Target Namespace ' attribute |
protected static String |
URI_EDEFAULT
The default value of the ' URI ' attribute |
Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
protected |
XSDNamedComponentImpl()
|
Method Summary | |
static void |
addToSortedList(List xsdNamedComponents,
XSDNamedComponent xsdNamedComponent)
|
protected void |
adoptBy(XSDSchema xsdSchema)
|
protected void |
changeAttribute(EAttribute eAttribute)
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
static XSDNamedComponent |
findInSortedList(List xsdNamedComponents,
String targetNamespace,
String localName)
|
String |
getAliasName()
Returns the value of the 'Alias Name' attribute |
String |
getAliasURI()
|
String |
getName()
|
String |
getQName()
Returns the value of the 'QName' attribute |
String |
getQName(XSDConcreteComponent relativeToComponent)
Returns this named component's ' QName '
in the context of the given component |
XSDNamedComponent |
getResolvedNamedComponent()
|
String |
getTargetNamespace()
|
String |
getURI()
Returns the value of the 'URI' attribute |
protected String |
getURIReferenceLabel()
|
boolean |
hasNameAndTargetNamespace(String name,
String targetNamespace)
Returns whether this named component has the given name and target namespace |
boolean |
hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
Returns whether this named component and the given named component are named the same |
boolean |
hasURI(String uri)
Returns whether this named component has the given URI |
boolean |
isNamedComponentReference()
|
static void |
mergeToSortedList(List xsdNamedComponentsTarget,
List xsdNamedComponentsSource)
|
protected void |
patch()
|
protected void |
patchTargetNamespaceAttribute()
|
protected void |
patchTargetNamespaceAttribute(XSDSchema xsdSchema)
|
protected void |
reconcileAttributes(Element changedElement)
|
protected void |
reconcileNameAttribute()
|
void |
setName(String newName)
|
void |
setTargetNamespace(String newTargetNamespace)
|
static List |
sortNamedComponents(Collection xsdNamedComponents)
|
String |
toString()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
protected static final String NAME_EDEFAULT
Name
' attribute.
getName()
protected String name
Name
' attribute.
getName()
protected static final String TARGET_NAMESPACE_EDEFAULT
Target Namespace
' attribute.
getTargetNamespace()
protected String targetNamespace
Target Namespace
' attribute.
getTargetNamespace()
protected static final String ALIAS_NAME_EDEFAULT
Alias Name
' attribute.
getAliasName()
protected static final String URI_EDEFAULT
URI
' attribute.
getURI()
protected static final String ALIAS_URI_EDEFAULT
Alias URI
' attribute.
getAliasURI()
protected static final String QNAME_EDEFAULT
QName
' attribute.
getQName()
Constructor Detail |
protected XSDNamedComponentImpl()
Method Detail |
public static List sortNamedComponents(Collection xsdNamedComponents)
public static void addToSortedList(List xsdNamedComponents, XSDNamedComponent xsdNamedComponent)
public static XSDNamedComponent findInSortedList(List xsdNamedComponents, String targetNamespace, String localName)
public static void mergeToSortedList(List xsdNamedComponentsTarget, List xsdNamedComponentsSource)
protected EClass eStaticClass()
eStaticClass
in class XSDComponentImpl
public String getName()
getName
in interface XSDNamedComponent
XSDNamedComponent.setName(String)
,
XSDPackage.getXSDNamedComponent_Name()
public void setName(String newName)
setName
in interface XSDNamedComponent
newName
- the new value of the 'Name' attribute.XSDNamedComponent.getName()
public String getTargetNamespace()
getTargetNamespace
in interface XSDNamedComponent
XSDNamedComponent.setTargetNamespace(String)
,
XSDPackage.getXSDNamedComponent_TargetNamespace()
public void setTargetNamespace(String newTargetNamespace)
setTargetNamespace
in interface XSDNamedComponent
newTargetNamespace
- the new value of the 'Target Namespace' attribute.XSDNamedComponent.getTargetNamespace()
protected String getURIReferenceLabel()
getURIReferenceLabel
in class XSDConcreteComponentImpl
public String getAliasName()
XSDNamedComponent
This attempts to construct a relatively meaningful name for an anonymous component
by using the name of the containing component and an indication of the relation to that component,
For example,
"E_._type
" would be the alias name of the anonymous type definition of the element "E
" and
"LT_._item
" would be the alias name of the anonymous item type definition of the list type defintion "LT
".
getAliasName
in interface XSDNamedComponent
XSDPackage.getXSDNamedComponent_AliasName()
public String getURI()
XSDNamedComponent
This is equivalent to the string
<where atarget namespace
>#<name
>
null
target namespace is taken to mean an empty string.
getURI
in interface XSDNamedComponent
XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String)
,
XSDPackage.getXSDNamedComponent_URI()
public String getAliasURI()
getAliasURI
in interface XSDNamedComponent
XSDPackage.getXSDNamedComponent_AliasURI()
public String getQName(XSDConcreteComponent relativeToComponent)
XSDNamedComponent
QName
'
in the context of the given component.
getQName
in interface XSDNamedComponent
relativeToComponent
- the context at which to express the QName.
QName
'.XSDNamedComponent.getQName()
public String getQName()
XSDNamedComponent
This concrete attribute is equivalent to
xsdNamedComponent.getQName
(xsdNamedComponent)
getQName
in interface XSDNamedComponent
XSDNamedComponent.getQName(org.eclipse.xsd.XSDConcreteComponent)
,
XSDPackage.getXSDNamedComponent_QName()
public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class XSDConcreteComponentImpl
public void eSet(int featureID, Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDConcreteComponentImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDConcreteComponentImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDConcreteComponentImpl
public String toString()
toString
in class XSDConcreteComponentImpl
protected void patch()
patch
in class XSDConcreteComponentImpl
protected void patchTargetNamespaceAttribute()
protected void patchTargetNamespaceAttribute(XSDSchema xsdSchema)
protected void adoptBy(XSDSchema xsdSchema)
adoptBy
in class XSDConcreteComponentImpl
protected void reconcileAttributes(Element changedElement)
reconcileAttributes
in class XSDConcreteComponentImpl
protected void reconcileNameAttribute()
protected void changeAttribute(EAttribute eAttribute)
changeAttribute
in class XSDConcreteComponentImpl
public boolean isNamedComponentReference()
public XSDNamedComponent getResolvedNamedComponent()
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
XSDNamedComponent
This is equivalent to
xsdNamedComponent.hasNameAndTargetNamespace
(xsdOtherNamedComponent.getName
(), xsdOtherNamedComponent.getTargetNamespace
())
hasSameNameAndTargetNamespace
in interface XSDNamedComponent
xsdNamedComponent
- another named component.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
,
XSDNamedComponent.getTargetNamespace()
public boolean hasNameAndTargetNamespace(String name, String targetNamespace)
XSDNamedComponent
This is equivalent to
(targetNamespace == null ? getTargetNamespace() == null : targetNamespace.equals(getTargetNamespace())) && (name == null ? getName() == null : name.equals(getName()))
hasNameAndTargetNamespace
in interface XSDNamedComponent
name
- the name.targetNamespace
- namespace the target namespace.
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent)
,
XSDNamedComponent.hasURI(java.lang.String)
,
XSDNamedComponent.getName()
,
XSDNamedComponent.getTargetNamespace()
public boolean hasURI(String uri)
XSDNamedComponent
This is equivalent to
String theTargetNamespace = getTargetNamespace(); if (theTargetNamespace == null) { theTargetNamespace = ""; } String theName = getName(); if (theName == null) { theName = ""; } return qName.startsWith(theTargetNamespace) && qName.endsWith(theName) && qName.length() == theName.length() + theTargetNamespace.length() + 1;
hasURI
in interface XSDNamedComponent
uri
- the URI.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String)
,
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent)
,
XSDNamedComponent.getURI()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |