Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSchemaSimpleTypes.cpp File Reference
#include "nsSchemaPrivate.h"

Go to the source code of this file.

Functions

 NS_IMPL_ISUPPORTS4_CI (nsSchemaBuiltinType, nsISchemaComponent, nsISchemaType, nsISchemaSimpleType, nsISchemaBuiltinType) NS_IMETHODIMP nsSchemaBuiltinType
 NS_IMPL_ISUPPORTS4_CI (nsSchemaListType, nsISchemaComponent, nsISchemaType, nsISchemaSimpleType, nsISchemaListType) NS_IMETHODIMP nsSchemaListType
 NS_IMPL_ISUPPORTS4_CI (nsSchemaUnionType, nsISchemaComponent, nsISchemaType, nsISchemaSimpleType, nsISchemaUnionType) NS_IMETHODIMP nsSchemaUnionType
 NS_IMPL_ISUPPORTS4_CI (nsSchemaRestrictionType, nsISchemaComponent, nsISchemaType, nsISchemaSimpleType, nsISchemaRestrictionType) NS_IMETHODIMP nsSchemaRestrictionType
 NS_IMPL_ISUPPORTS3_CI (nsSchemaTypePlaceholder, nsISchemaComponent, nsISchemaType, nsISchemaSimpleType) NS_IMETHODIMP nsSchemaTypePlaceholder
 NS_IMPL_ISUPPORTS2_CI (nsSchemaFacet, nsISchemaComponent, nsISchemaFacet) NS_IMETHODIMP nsSchemaFacet

Function Documentation

Definition at line 748 of file nsSchemaSimpleTypes.cpp.

{
  return NS_OK;
}

Definition at line 686 of file nsSchemaSimpleTypes.cpp.

{
  return NS_OK;
}

Definition at line 55 of file nsSchemaSimpleTypes.cpp.

{
  aTargetNamespace.AssignLiteral(NS_SCHEMA_2001_NAMESPACE);
  
  return NS_OK;
}

Definition at line 279 of file nsSchemaSimpleTypes.cpp.

{
  if (mIsResolved) {
    return NS_OK;
  }

  nsresult rv = NS_OK;
  mIsResolved = PR_TRUE;
  if (mListType && mSchema) {
    nsCOMPtr<nsISchemaType> type;
    rv = mSchema->ResolveTypePlaceholder(aErrorHandler, mListType, getter_AddRefs(type));
    if (NS_FAILED(rv)) {
      return NS_ERROR_FAILURE;
    }
    mListType = do_QueryInterface(type);
    if (!mListType) {
      return NS_ERROR_FAILURE;
    }
  }
  rv = mListType->Resolve(aErrorHandler);

  return rv;
}

Here is the call graph for this function:

Definition at line 393 of file nsSchemaSimpleTypes.cpp.

{
  if (mIsResolved) {
    return NS_OK;
  }

  mIsResolved = PR_TRUE;
  if (mSchema) {
    PRUint32 i, count;
    count = mUnionTypes.Count();
    for (i = 0; i < count; ++i) {
      nsCOMPtr<nsISchemaType> type;
      nsresult rv = mSchema->ResolveTypePlaceholder(aErrorHandler, mUnionTypes.ObjectAt(i),
                                                    getter_AddRefs(type));
      if (NS_FAILED(rv)) {
        return NS_ERROR_FAILURE;
      }
      nsCOMPtr<nsISchemaSimpleType> simpleType = do_QueryInterface(type);
      mUnionTypes.ReplaceObjectAt(simpleType, i);
      rv = type->Resolve(aErrorHandler);
      if (NS_FAILED(rv)) {
        return rv;
      }
    }
  }

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 529 of file nsSchemaSimpleTypes.cpp.

{
  if (mIsResolved) {
    return NS_OK;
  }

  nsresult rv = NS_OK;
  mIsResolved = PR_TRUE;
  if (mBaseType && mSchema) {
    nsCOMPtr<nsISchemaType> type;
    rv = mSchema->ResolveTypePlaceholder(aErrorHandler, mBaseType, getter_AddRefs(type));
    if (NS_FAILED(rv)) {
      return NS_ERROR_FAILURE;
    }
    mBaseType = do_QueryInterface(type);
    if (!mBaseType) {
      return NS_ERROR_FAILURE;
    }
    rv = mBaseType->Resolve(aErrorHandler);
  }

  return rv;
}

Here is the call graph for this function: