Returns a properties object which is converted to {@code T}.
486621
@Nullable
    public <T> T properties(Class<T> clazz) throws JsonProcessingException {
        return properties != null ? Jackson.treeToValue(properties, clazz) : null;
    }
1010025
public static <T> T convert(Object source, Class<T> destType) {
        return JSON.convertValue(source, destType);
    }
602363
private OpenConnection.Property convertToProperty(Map.Entry<String, String> entry) {
        OpenConnection.Property property = new OpenConnection.Property();
        property.setName(entry.getKey());
        property.setValue(entry.getValue());
        return property;
    }
710040
public RawProperty getExperimentalProperty(String name) {
		for (RawProperty raw : getExperimentalProperties()) {
			if (raw.getName().equalsIgnoreCase(name)) {
				return raw;
			}
		}
		return null;
	}
396136
@Override
    public <T> Collection<T> getPropertyValues(String propertyName, Class<T> type) {
        return Collections.singleton(getProperty(propertyName, type));
    }
845832
public List<RawProperty> getExperimentalProperties(String name) {
		/*
		 * Note: The returned list is not backed by the parent component because
		 * this would allow RawProperty objects without the specified name to be
		 * added to the list.
		 */
		List<RawProperty> toReturn = new ArrayList<RawProperty>();
		for (RawProperty property : getExperimentalProperties()) {
			if (property.getName().equalsIgnoreCase(name)) {
				toReturn.add(property);
			}
		}
		return Collections.unmodifiableList(toReturn);
	}
409977
public Class<T> getT() {
        Type subTyping = Types.getBaseClass(getClass(), Descriptor.class);
        if (!(subTyping instanceof ParameterizedType)) {
            throw new IllegalStateException(getClass()+" doesn't extend Descriptor with a type parameter.");
        }
        return Types.erasure(Types.getTypeArgument(subTyping, 0));
    }
1263796
@SuppressWarnings("unchecked")
    public final <C extends T> PropertyList<C> getProperties(final String name) {
        final PropertyList<C> list = new PropertyList<C>();
        for (final T p : this) {
            if (p.getName().equalsIgnoreCase(name)) {
                list.add((C) p);
            }
        }
        return list;
    }
1073588
public static Object convert(String propertyName, String s, Class t, Class propertyEditorClass)
        throws JspCoreException {
        try {
            if (s == null) {
                if (t.equals(Boolean.class) || t.equals(Boolean.TYPE))
                    s = "false";
                else
                    return null;
            }
            if (propertyEditorClass != null) {
                return getValueFromBeanInfoPropertyEditor(t, propertyName, s, propertyEditorClass);
            }
            else if (t.equals(Boolean.class) || t.equals(Boolean.TYPE)) {
                if (s.equalsIgnoreCase("on") || s.equalsIgnoreCase("true"))
                    s = "true";
                else
                    s = "false";
                return new Boolean(s);
            }
            else if (t.equals(Byte.class) || t.equals(Byte.TYPE)) {
                return new Byte(s);
            }
            else if (t.equals(Character.class) || t.equals(Character.TYPE)) {
                return s.length() > 0 ? new Character(s.charAt(0)) : null;
            }
            else if (t.equals(Short.class) || t.equals(Short.TYPE)) {
                return new Short(s);
            }
            else if (t.equals(Integer.class) || t.equals(Integer.TYPE)) {
                return new Integer(s);
            }
            else if (t.equals(Float.class) || t.equals(Float.TYPE)) {
                return new Float(s);
            }
            else if (t.equals(Long.class) || t.equals(Long.TYPE)) {
                return new Long(s);
            }
            else if (t.equals(Double.class) || t.equals(Double.TYPE)) {
                return new Double(s);
            }
            else if (t.equals(String.class)) {
                return s;
            }
            else if (t.equals(java.io.File.class)) {
                return new java.io.File(s);
            }
            else if (t.getName().equals("java.lang.Object")) {
                return new Object[] { s };
            }
            else {
                return getValueFromPropertyEditorManager(t, propertyName, s);
            }
        }
        catch (Exception ex) {
            throw new JspCoreException(ex);
        }
    }
914516
public static <T extends PropertyDispatcher> T getInstance(Class<T> cls)
    {
        return getInstance(cls, null);
    }
207450
@SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"})
    @Nullable
    public <T> T getProperty(String name) {
        return (T) config.getProperties().get(name);
    }
1209769
<T> T getValue( Object object, String name )
	{
		T result = getPropertyImpl( object, name );
		if( result instanceof Property )
		{
			@SuppressWarnings( "unchecked" )
			Property<T> property = ((Property<T>) result);
			return property.getValue();
		}

		return result;
	}
394248
@SuppressWarnings("unchecked")
    private <T> List<T> getListValue(Class<T> type, String propertyName, EDBObject object) {
        List<T> temp = new ArrayList<>();
        for (int i = 0;; i++) {
            String property = getEntryNameForList(propertyName, i);
            Object obj = object.getObject(property);
            if (obj == null) {
                break;
            }
            if (OpenEngSBModel.class.isAssignableFrom(type)) {
                obj = convertEDBObjectToUncheckedModel(type, edbService.getObject(object.getString(property)));
            }
            temp.add((T) obj);
            object.remove(property);
        }
        return temp;
    }
40992
public static <T> T getPropertyValue(final Object instance, final String fieldName) {
		try {
			return (T) PropertyUtils.getProperty(instance, fieldName);
		} catch (final Exception e) {
			throw new RuntimeException(e);
		}
	}
367648
def comparison(self, t):
        
        assert(len(t) == 3)

        d = {"PropertyIsEqualTo": [
                t[0], t[1], t[2]
            ]}

        #parts = [str(p.value) for p in t]
        #v = " ".join(parts)

        #v = "( {} )".format(v)
        #t[0].value = v
        #return t[0]
        return d
1003192
public PropertyData getProperty(String name)
   {
      return properties == null ? null : properties.get(name);
   }
728480
@SuppressWarnings("unchecked")
    private <T> T[] getArrayValue(Class<T> type, String propertyName, EDBObject object) {
        List<T> elements = getListValue(type, propertyName, object);
        T[] ar = (T[]) Array.newInstance(type, elements.size());
        return elements.toArray(ar);
    }