ariba.util.fieldtype
Class ContainerTypeInfo
java.lang.Object
ariba.util.fieldtype.JavaTypeProvider.JavaTypeInfo
ariba.util.fieldtype.ContainerTypeInfo
- All Implemented Interfaces:
- PropertyResolver, TypeInfo
public class ContainerTypeInfo
- extends JavaTypeProvider.JavaTypeInfo
A generic TypeInfo
for specifying a container type as well
as its element type.
Methods inherited from class ariba.util.fieldtype.JavaTypeProvider.JavaTypeInfo |
castToPseudoType, getAccessibility, getAllMethods, getField, getImplementationName, getMethodForName, getMethodForName, getName, getPropertyResolver, getProxiedClass, resolvePropertyForName, resolveTypeForName, setProxiedClass, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContainerTypeInfo
public ContainerTypeInfo(TypeInfo containerType,
TypeInfo elementType)
getElementType
public TypeInfo getElementType()
- Description copied from interface:
TypeInfo
- If this type is a collection of element type, this method returns
the
TypeInfo
of the element type. Otherwise, this method
return false.
- Specified by:
getElementType
in interface TypeInfo
- Overrides:
getElementType
in class JavaTypeProvider.JavaTypeInfo
- Returns:
- the
TypeInfo
of element type. Otherwise, return null. - See Also:
TypeInfo.getElementType()
isAssignableFrom
public boolean isAssignableFrom(TypeInfo other)
- Description copied from interface:
TypeInfo
- This method tests if
this
type is asssignable from
other
type. This method should also handle
auto-boxing and auto-unboxing for primitive types.
- Specified by:
isAssignableFrom
in interface TypeInfo
- Overrides:
isAssignableFrom
in class JavaTypeProvider.JavaTypeInfo
- Parameters:
other
- - the type to assign to this
type.
- Returns:
- true if the test condition passes.
- See Also:
TypeInfo.isAssignableFrom(ariba.util.fieldtype.TypeInfo)
isCompatible
public boolean isCompatible(TypeInfo other)
- Description copied from interface:
TypeInfo
- This method returns true if one type is assignable to another. This
implies that one type is convertible to another through reference
widening or narrowing.
For primitive type, this method can also return true if the two
types can be promoted into a common type. This method should also handle
auto-boxing and auto-unboxing for primitive types.
- Specified by:
isCompatible
in interface TypeInfo
- Overrides:
isCompatible
in class JavaTypeProvider.JavaTypeInfo
- Parameters:
other
- - the other type to compare with this
type.
- Returns:
- true if the test condition passes.
- See Also:
TypeInfo.isCompatible(ariba.util.fieldtype.TypeInfo)
isWideningTypeOf
public boolean isWideningTypeOf(TypeInfo other)
- Description copied from interface:
TypeInfo
- This method returns true if one type can be widening to another.
This typically checks using referencing widening where
this
type is a superclass of other
type.
For primitive type, this method can also return true if the
other
type can be promoted to this
type using
java primitive widening. This method should also handle auto-boxing and
auto-unboxing for primitive types.
- Specified by:
isWideningTypeOf
in interface TypeInfo
- Overrides:
isWideningTypeOf
in class JavaTypeProvider.JavaTypeInfo
- Parameters:
other
- - the other type to compare with this
type.
- Returns:
- true if the test condition passes.
- See Also:
TypeInfo.isWideningTypeOf(ariba.util.fieldtype.TypeInfo)
setElementTypeInfo
public void setElementTypeInfo(TypeInfo elementType)
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.