/** * Returns <code>true</code> if this type is a simple type. * * @see MSimpleType */ public boolean isSimpleType(){ return getTypeKind() == MTypeKind.SIMPLE; }
/** * Returns true if this type is a dictionary type. */ public boolean isDictionaryType() { return getTypeKind() == MTypeKind.DICTIONARY; }
@Override public String toString() { return "MProperty[name:" + name + ", kind:" + type.getTypeKind() + "]"; } }
/** * Returns true if this type is a void type. */ public boolean isVoidType() { return getTypeKind() == MTypeKind.VOID; }
/** * Returns <code>true</code> if this type is a reference type. */ public boolean isTypeRef() { return getTypeKind() == MTypeKind.REFERENCE; }
/** * Returns true if this type is an object type. */ public boolean isObjectType() { return getTypeKind() == MTypeKind.OBJECT; }
/** * Returns <code>true</code> if this type is a collection type. */ public boolean isCollectionType(){ return getTypeKind() == MTypeKind.COLLECTION; }
/** * Returns <code>true</code> if this type is a complex type. */ public boolean isComplexType(){ return getTypeKind() == MTypeKind.COMPLEX; }
throw new IllegalStateException("Unsupported type kind '" + type.getTypeKind() + "'");
throw new IllegalStateException("Unsupported type kind '" + type.getTypeKind() + "' of parameter '" + p.getName() + "'");