Lines Matching refs:object
37 static public Type getType( Object object ) in getType() argument
40 if (null == object) in getType()
44 else if (object instanceof Any) in getType()
46 t = ((Any)object).getType(); in getType()
49 return getType( ((Any)object).getObject() ); in getType()
53 t = new Type( object.getClass() ); in getType()
62 static public boolean isVoid(Object object){ in isVoid() argument
63 return containsType(TypeClass.VOID, object); in isVoid()
70 static public boolean isChar(Object object){ in isChar() argument
71 return containsType(TypeClass.CHAR, object); in isChar()
78 static public boolean isBoolean(Object object){ in isBoolean() argument
79 return containsType(TypeClass.BOOLEAN, object); in isBoolean()
86 static public boolean isByte(Object object){ in isByte() argument
87 return containsType(TypeClass.BYTE, object); in isByte()
94 static public boolean isShort(Object object){ in isShort() argument
95 return containsType(TypeClass.SHORT, object); in isShort()
102 static public boolean isInt(Object object){ in isInt() argument
103 return containsType(TypeClass.LONG, object); in isInt()
110 static public boolean isLong(Object object){ in isLong() argument
111 return containsType(TypeClass.HYPER, object); in isLong()
118 static public boolean isFloat(Object object){ in isFloat() argument
119 return containsType(TypeClass.FLOAT, object); in isFloat()
126 static public boolean isDouble(Object object){ in isDouble() argument
127 return containsType(TypeClass.DOUBLE, object); in isDouble()
134 static public boolean isString(Object object){ in isString() argument
135 return containsType(TypeClass.STRING, object); in isString()
142 static public boolean isEnum(Object object) in isEnum() argument
144 return containsType(TypeClass.ENUM, object); in isEnum()
151 static public boolean isType(Object object){ in isType() argument
152 return containsType(TypeClass.TYPE, object); in isType()
162 static public boolean isObject(Object object) in isObject() argument
164 int tc = getType(object).getTypeClass().getValue(); in isObject()
177 static public boolean isArray(Object object){ in isArray() argument
178 return containsType(TypeClass.SEQUENCE, object); in isArray()
187 static public char toChar(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toChar() argument
188 Character ret= (Character)convertSimple(TypeClass.CHAR, null, object); in toChar()
198 static public boolean toBoolean(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toBoolean() argument
199 Boolean ret= (Boolean)convertSimple(TypeClass.BOOLEAN, null, object); in toBoolean()
209 static public byte toByte(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toByte() argument
210 Byte ret= (Byte)convertSimple(TypeClass.BYTE, null, object); in toByte()
220 static public short toShort(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toShort() argument
221 Short ret= (Short)convertSimple(TypeClass.SHORT, null, object); in toShort()
231 static public short toUnsignedShort(Object object) in toUnsignedShort() argument
234 Short ret= (Short)convertSimple(TypeClass.UNSIGNED_SHORT, null, object); in toUnsignedShort()
244 static public int toInt(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toInt() argument
245 Integer ret= (Integer) convertSimple( TypeClass.LONG, null, object); in toInt()
255 static public int toUnsignedInt(Object object) in toUnsignedInt() argument
258 Integer ret = (Integer)convertSimple(TypeClass.UNSIGNED_LONG, null, object); in toUnsignedInt()
269 static public long toLong(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toLong() argument
270 Long ret= (Long) convertSimple( TypeClass.HYPER, null, object); in toLong()
282 static public long toUnsignedLong(Object object) in toUnsignedLong() argument
285 Long ret = (Long)convertSimple(TypeClass.UNSIGNED_HYPER, null, object); in toUnsignedLong()
296 static public float toFloat(Object object) throws com.sun.star.lang.IllegalArgumentException{ in toFloat() argument
297 Float ret= (Float) convertSimple( TypeClass.FLOAT,null, object); in toFloat()
308 static public double toDouble(Object object) throws com.sun.star.lang.IllegalArgumentException { in toDouble() argument
309 Double ret= (Double) convertSimple( TypeClass.DOUBLE, null, object); in toDouble()
318 static public String toString(Object object) throws com.sun.star.lang.IllegalArgumentException { in toString() argument
319 return (String) convertSimple( TypeClass.STRING, null, object); in toString()
327 static public Type toType(Object object) throws com.sun.star.lang.IllegalArgumentException { in toType() argument
328 return (Type) convertSimple( TypeClass.TYPE, null, object); in toType()
343 static public Object toObject(Type type, Object object) in toObject() argument
346 return convertSimple( type.getTypeClass(), type, object ); in toObject()
360 static public Object toObject(Class clazz, Object object) in toObject() argument
363 return toObject( new Type( clazz ), object ); in toObject()
371 static public Object toArray( Object object) throws com.sun.star.lang.IllegalArgumentException { in toArray() argument
372 return convertSimple( TypeClass.SEQUENCE, null, object); in toArray()
380 static private boolean containsType( TypeClass what, Object object){ in containsType() argument
381 return (getType(object).getTypeClass().getValue() == what.getValue()); in containsType()
389 Object object; in convertSimple() local
395 object = a.getObject(); in convertSimple()
399 return convertSimple( destTClass, destType, object ); in convertSimple()
403 object = object_; in convertSimple()
404 type = (null == object ? m_XInterface_type : new Type( object.getClass() )); in convertSimple()
410 if (null == object) in convertSimple()
422 return object; in convertSimple()
426 return object; in convertSimple()
430 return object; in convertSimple()
436 return new Short( ((Byte)object).byteValue() ); in convertSimple()
438 return object; in convertSimple()
445 return object; in convertSimple()
452 return new Integer( ((Byte)object).byteValue() ); in convertSimple()
455 return new Integer( ((Short)object).shortValue() ); in convertSimple()
457 return object; in convertSimple()
464 return new Integer( ((Short)object).shortValue() ); in convertSimple()
466 return object; in convertSimple()
473 return new Long( ((Byte)object).byteValue() ); in convertSimple()
476 return new Long( ((Short)object).shortValue() ); in convertSimple()
479 return new Long( ((Integer)object).intValue() ); in convertSimple()
481 return object; in convertSimple()
488 return new Long( ((Short)object).shortValue() ); in convertSimple()
490 return new Long( ((Integer)object).intValue() ); in convertSimple()
492 return object; in convertSimple()
499 return new Float( ((Byte)object).byteValue() ); in convertSimple()
501 return new Float( ((Short)object).shortValue() ); in convertSimple()
503 return object; in convertSimple()
510 return new Double( ((Byte)object).byteValue() ); in convertSimple()
512 return new Double( ((Short)object).shortValue() ); in convertSimple()
514 return new Double( ((Integer)object).intValue() ); in convertSimple()
516 return new Double( ((Float)object).floatValue() ); in convertSimple()
518 return object; in convertSimple()
525 return object; in convertSimple()
530 return object; in convertSimple()
534 return object; in convertSimple()
543 if (object instanceof XInterface) in convertSimple()
544 return UnoRuntime.queryInterface( destType, object ); in convertSimple()
549 return object; in convertSimple()
556 return object; in convertSimple()