You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Yang ZHONG <le...@gmail.com> on 2006/06/27 02:51:46 UTC

XMLHelper(SDOUtil for the time being).getSubstitutionValues review

  /**
   * Gets the Sequence corresponding to the specified substitutable Property
of the specified DataObject.
   * @param dataObject Not null, otherwise NullPointerException.
   * @param head A substitution group head property.
   * @return The Sequence corresponding to the specified substitutable
Property of the specified DataObject,
   *         null if the specified Property isn't a substitution head.
   * @deprecated To be moved into XMLHelper
   */
  public static Sequence getSubstitutionValues(DataObject dataObject,
Property head)
  {
      final EStructuralFeature  group = ExtendedMetaData.INSTANCE.getGroup(
(EStructuralFeature)head);
      return null == group
           ? null
           : (Sequence)((EObject)dataObject).eGet( group);  //
dataObject.getSequence(group.getFeatureID()) may not be able to access
hidden properties
  }


-- 

Yang ZHONG

Re: XMLHelper(SDOUtil for the time being).getSubstitutionValues review

Posted by Yang ZHONG <le...@gmail.com>.
JIRA issue "TUSCANY-503" has been created to track the XSD substitution
support in SDO2:
    http://issues.apache.org/jira/browse/TUSCANY-503


-- 

Yang ZHONG

Re: XMLHelper(SDOUtil for the time being).getSubstitutionValues review

Posted by Yang ZHONG <le...@gmail.com>.
The eMail thread of "Question about XSD substitution support in SDO2" (
http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg04167.html)
has the context.

The proposed feature adding under reviewing is for SDO2 to support XSD
substitution better.

-- 

Yang ZHONG

Re: XMLHelper(SDOUtil for the time being).getSubstitutionValues review

Posted by Yang ZHONG <le...@gmail.com>.
Attaching the whole file, look for changes marked "getSubstitutionValues"
please.

-- 

Yang ZHONG