|
|||||||||||
| 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
|
| 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.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, 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 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(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
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 |
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, eIsProxy, eResource |
| 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 XSDComponentImplpublic String getName()
getName in interface XSDNamedComponentXSDNamedComponent.setName(String),
XSDPackage.getXSDNamedComponent_Name()public void setName(String newName)
setName in interface XSDNamedComponentnewName - the new value of the 'Name' attribute.XSDNamedComponent.getName()public String getTargetNamespace()
getTargetNamespace in interface XSDNamedComponentXSDNamedComponent.setTargetNamespace(String),
XSDPackage.getXSDNamedComponent_TargetNamespace()public void setTargetNamespace(String newTargetNamespace)
setTargetNamespace in interface XSDNamedComponentnewTargetNamespace - the new value of the 'Target Namespace' attribute.XSDNamedComponent.getTargetNamespace()protected String getURIReferenceLabel()
getURIReferenceLabel in class XSDConcreteComponentImplpublic 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 XSDNamedComponentXSDPackage.getXSDNamedComponent_AliasName()public String getURI()
XSDNamedComponentThis is equivalent to the string
<where atarget namespace>#<name>
null target namespace is taken to mean an empty string.
getURI in interface XSDNamedComponentXSDConcreteComponent.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 XSDNamedComponentXSDPackage.getXSDNamedComponent_AliasURI()public String getQName(XSDConcreteComponent relativeToComponent)
XSDNamedComponentQName'
in the context of the given component.
getQName in interface XSDNamedComponentrelativeToComponent - the context at which to express the QName.
QName'.XSDNamedComponent.getQName()public String getQName()
XSDNamedComponentThis concrete attribute is equivalent to
xsdNamedComponent.getQName(xsdNamedComponent)
getQName in interface XSDNamedComponentXSDNamedComponent.getQName(org.eclipse.xsd.XSDConcreteComponent),
XSDPackage.getXSDNamedComponent_QName()
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
eInverseRemove in interface InternalEObjecteInverseRemove in class XSDComponentImpl
public Object eGet(EStructuralFeature eFeature,
boolean resolve)
eGet in interface EObjecteGet in class XSDComponentImpl
public void eSet(EStructuralFeature eFeature,
Object newValue)
eSet in interface EObjecteSet in class XSDComponentImplpublic void eUnset(EStructuralFeature eFeature)
eUnset in interface EObjecteUnset in class XSDComponentImplpublic boolean eIsSet(EStructuralFeature eFeature)
eIsSet in interface EObjecteIsSet in class XSDComponentImplpublic String toString()
toString in class XSDConcreteComponentImplprotected void patch()
patch in class XSDConcreteComponentImplprotected void patchTargetNamespaceAttribute()
protected void adoptBy(XSDSchema xsdSchema)
adoptBy in class XSDConcreteComponentImplprotected void reconcileAttributes(Element changedElement)
reconcileAttributes in class XSDConcreteComponentImplprotected void reconcileNameAttribute()
protected void changeAttribute(EAttribute eAttribute)
changeAttribute in class XSDConcreteComponentImplpublic boolean isNamedComponentReference()
public XSDNamedComponent getResolvedNamedComponent()
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
XSDNamedComponentThis is equivalent to
xsdNamedComponent.hasNameAndTargetNamespace(xsdOtherNamedComponent.getName(), xsdOtherNamedComponent.getTargetNamespace())
hasSameNameAndTargetNamespace in interface XSDNamedComponentxsdNamedComponent - another named component.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String),
XSDNamedComponent.getName(),
XSDNamedComponent.getTargetNamespace()
public boolean hasNameAndTargetNamespace(String name,
String targetNamespace)
XSDNamedComponentThis is equivalent to
(targetNamespace == null ?
getTargetNamespace() == null :
targetNamespace.equals(getTargetNamespace())) &&
(name == null ?
getName() == null :
name.equals(getName()))
hasNameAndTargetNamespace in interface XSDNamedComponentname - 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)
XSDNamedComponentThis 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 XSDNamedComponenturi - the URI.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String),
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent),
XSDNamedComponent.getURI()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||