Examples of CMAnyElement


Examples of org.eclipse.wst.xml.core.internal.contentmodel.CMAnyElement

        {
          result = true;
        }
        else
        {
          CMAnyElement anyElement = (CMAnyElement)cmNode;
          String anyElementURI = anyElement.getNamespaceURI();   
          if (anyElementURI != null)
          {          
            if (anyElementURI.equals("##any")) //$NON-NLS-1$
            {                              
              result = true;
            }
            else if (anyElementURI.equals("##other")) //$NON-NLS-1$
            {    
              result = true;   
              CMDocument cmDocument = (CMDocument)anyElement.getProperty("CMDocument");   //$NON-NLS-1$
              if (cmDocument != null)
              {
                String excludedURI = (String)cmDocument.getProperty("http://org.eclipse.wst/cm/properties/targetNamespaceURI"); //$NON-NLS-1$
                if (excludedURI != null)
                {
                  String specifiedURI = getURIForContentSpecification(string);
                  if (specifiedURI != null && excludedURI.equals(specifiedURI))
                  {
                    result = false;
                  }
                }
              }
            }
            else if (anyElementURI.equals("##targetNamespace")) //$NON-NLS-1$
            {
              result = true;
              CMDocument cmDocument = (CMDocument)anyElement.getProperty("CMDocument");   //$NON-NLS-1$
              if (cmDocument != null)
              {    
                String targetNamespaceURI = (String)cmDocument.getProperty("http://org.eclipse.wst/cm/properties/targetNamespaceURI"); //$NON-NLS-1$
                String specifiedURI = getURIForContentSpecification(string);
                if (specifiedURI != null && !targetNamespaceURI.equals(specifiedURI))
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.contentmodel.CMAnyElement

        localElementMap.put(childEd);
      }
    }    
    else
    {                                                   
      CMAnyElement cmAnyElement = lookupOrCreateCMAnyElement((CMDocumentImpl)parentCMDocument, uri);
      if (!groupChildNodeList.contains(cmAnyElement))
      {
        groupChildNodeList.add(cmAnyElement);
      }
    }     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.