Examples of IFieldDescription


Examples of com.sun.star.uno.IFieldDescription

        System.err.println("\tgetMethod:" + iMethodDescriptions[i].getMethod());
      }
    System.err.println();

    System.err.println("Members:");
    IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();
    if(iFieldDescriptions != null)
      for(int i = 0; i < iFieldDescriptions.length; ++ i) {
        System.err.print("\tMember: " + iFieldDescriptions[i].getName());
//          System.err.print(" isConst: " + iMethodDescriptions[i].isConst());
        System.err.print(" isUnsigned: " + iFieldDescriptions[i].isUnsigned());
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

        System.err.println("\tgetMethod:" + iMethodDescriptions[i].getMethod());
      }
    System.err.println();

    System.err.println("Members:");
    IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();
    if(iFieldDescriptions != null)
      for(int i = 0; i < iFieldDescriptions.length; ++ i) {
        System.err.print("\tMember: " + iFieldDescriptions[i].getName());
//          System.err.print(" isConst: " + iMethodDescriptions[i].isConst());
        System.err.print(" isUnsigned: " + iFieldDescriptions[i].isUnsigned());
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

  }

  void writeStruct(ITypeDescription iTypeDescription, Object object) {
    if(DEBUG) System.err.println("##### " + getClass().getName() + ".writeStruct:" + iTypeDescription + " " + object);

    IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();
    for(int i = 0; i < iFieldDescriptions.length; ++ i) {
      try {
        writeObject(iFieldDescriptions[i].getTypeDescription(), iFieldDescriptions[i].getField().get(object));
      }
      catch(IllegalAccessException illegalAccessException) {
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

      throw new com.sun.star.uno.RuntimeException(getClass().getName() + ".readString - unexpected:" + unsupportedEncodingException);
    }
  }

  void readStruct(ITypeDescription iTypeDescription, Object object) {
    IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();

      for(int i = 0; i < iFieldDescriptions.length; ++ i) {
      try {
        iFieldDescriptions[i].getField().set(object, readObject(iFieldDescriptions[i].getTypeDescription()));
      }
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

    int index = 0;
        int superTypeMemberCount = 0;
        if( _superType != null )
            superTypeMemberCount = _superType.getFieldDescriptions().length;
       
    IFieldDescription tmp_iFieldDescriptions[] = new IFieldDescription[fields.length];

    Hashtable iFieldDescriptionsByName = new Hashtable();

    int i;
    for( i = 0; i < fields.length; ++ i) {
      if((fields[i].getModifiers() & (Modifier.STATIC | Modifier.TRANSIENT)) == 0) { // neither static nor transient ?

        IFieldDescription iFieldDescription = null;
       
        if(_superType != null)
          iFieldDescription = _superType.getFieldDescription(fields[i].getName());
       
        if(iFieldDescription == null) {
          MemberTypeInfo memberTypeInfo = __findMemberTypeInfo(typeInfos, fields[i].getName());

          if( memberTypeInfo == null )
            throw new com.sun.star.uno.RuntimeException(
              TypeDescription.class.getName() + "no membertype info for field " + fields[i].getName(),null );
         
          iFieldDescription = new FieldDescription(
                        memberTypeInfo.getName(),
                        memberTypeInfo.getIndex() + superTypeMemberCount,
                        memberTypeInfo.getFlags(),
                        fields[i]);
        }
       
        iFieldDescriptionsByName.put(iFieldDescription.getName(), iFieldDescription);
        tmp_iFieldDescriptions[index ++] = iFieldDescription;
      }
    }

    IFieldDescription iFieldDescriptions[] = new IFieldDescription[index];
    for( i = 0; i < index ; i ++ )
    {
      iFieldDescriptions[tmp_iFieldDescriptions[i].getIndex()] = tmp_iFieldDescriptions[i];
    }
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

  public IFieldDescription getFieldDescription(String name) {
    if(_iFieldDescriptions == null)
      _initMemberTypeInfos();

    IFieldDescription iFieldDescription = (IFieldDescription)_iFieldDescriptionsByName.get(name);
    if(iFieldDescription == null && _superType != null)
      iFieldDescription = _superType.getFieldDescription(name);

    return iFieldDescription;
  }
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

        passed = passed && tmp_passed;
        if(!tmp_passed)
          notpassed.addElement(comment + "- getMethodDescription(String " + _method_names[i] + ")");
      }
     
      IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();
      tmp_passed = iFieldDescriptions != null && iFieldDescriptions.length == _fieldSignatures.length;
      if(tmp_passed)
        for(int i = 0; i < _fieldSignatures.length; ++ i) {
          boolean tmp_tmp_passed = _fieldSignatures[i].test(notpassed, ((Object [][])names[4])[i], iFieldDescriptions[i].getTypeDescription());
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

        System.err.println("\tgetMethod:" + iMethodDescriptions[i].getMethod());
      }
    System.err.println();

    System.err.println("Members:");
    IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();
    if(iFieldDescriptions != null)
      for(int i = 0; i < iFieldDescriptions.length; ++ i) {
        System.err.print("\tMember: " + iFieldDescriptions[i].getName());
//          System.err.print(" isConst: " + iMethodDescriptions[i].isConst());
        System.err.print(" isUnsigned: " + iFieldDescriptions[i].isUnsigned());
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

    int index = 0;
        int superTypeMemberCount = 0;
        if( _superType != null )
            superTypeMemberCount = _superType.getFieldDescriptions().length;
       
    IFieldDescription tmp_iFieldDescriptions[] = new IFieldDescription[fields.length];

    Hashtable iFieldDescriptionsByName = new Hashtable();

    int i;
    for( i = 0; i < fields.length; ++ i) {
      if((fields[i].getModifiers() & (Modifier.STATIC | Modifier.TRANSIENT)) == 0) { // neither static nor transient ?

        IFieldDescription iFieldDescription = null;
       
        if(_superType != null)
          iFieldDescription = _superType.getFieldDescription(fields[i].getName());
       
        if(iFieldDescription == null) {
          MemberTypeInfo memberTypeInfo = __findMemberTypeInfo(typeInfos, fields[i].getName());

          if( memberTypeInfo == null )
            throw new com.sun.star.uno.RuntimeException(
              TypeDescription.class.getName() + "no membertype info for field " + fields[i].getName(),null );
         
          iFieldDescription = new FieldDescription(
                        memberTypeInfo.getName(),
                        memberTypeInfo.getIndex() + superTypeMemberCount,
                        memberTypeInfo.getFlags(),
                        fields[i]);
        }
       
        iFieldDescriptionsByName.put(iFieldDescription.getName(), iFieldDescription);
        tmp_iFieldDescriptions[index ++] = iFieldDescription;
      }
    }

    IFieldDescription iFieldDescriptions[] = new IFieldDescription[index];
    for( i = 0; i < index ; i ++ )
    {
      iFieldDescriptions[tmp_iFieldDescriptions[i].getIndex()] = tmp_iFieldDescriptions[i];
    }
View Full Code Here

Examples of com.sun.star.uno.IFieldDescription

  public IFieldDescription getFieldDescription(String name) {
    if(_iFieldDescriptions == null)
      _initMemberTypeInfos();

    IFieldDescription iFieldDescription = (IFieldDescription)_iFieldDescriptionsByName.get(name);
    if(iFieldDescription == null && _superType != null)
      iFieldDescription = _superType.getFieldDescription(name);

    return iFieldDescription;
  }
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.