Return the status of a specific property.

@param descriptor
The {@link XmlElementDescriptor} of the property.
@return The status of the property or {@link #STATUS_NONE} if the property was not found.
171317
public int getPropertyStatus(ElementDescriptor<?> descriptor)
	{
		PropStat propStat = mPropStatByProperty.get(descriptor);
		if (propStat == null)
		{
			return STATUS_NONE;
		}

		return propStat.getStatusCode();
	}
160044
protected ImageDescriptor imageDescriptor(SarlSkill element) {
		final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(element);
		return this.images.forSkill(
				element.getVisibility(),
				this.adornments.get(jvmElement));
	}
580031
@SuppressWarnings("unchecked")
    public List<String> queryDescriptorValues(String xpathQuery) {
        if (descriptorDom != null) {
            List<String> value = (List<String>)getProperty(xpathQuery);
            if (CollectionUtils.isEmpty(value)) {
                value = XmlUtils.selectNodeValues(descriptorDom, xpathQuery);
            }

            return value;
        } else {
            return Collections.emptyList();
        }
    }
139566
public static int getfd(FileDescriptor descriptor)
  {
    try {
      return field.getInt(descriptor);
    }
    catch (IllegalArgumentException | IllegalAccessException e) {
      log.warn("Unable to read fd field from java.io.FileDescriptor");
    }

    return -1;
  }
554181
protected ImageDescriptor imageDescriptor(SarlEvent element) {
		final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(element);
		return this.images.forEvent(
				element.getVisibility(),
				this.adornments.get(jvmElement));
	}
917963
public static PropertyDescriptor getPropertyDescriptor(Class<?> clazz, final String fieldName, boolean ignoreCase) throws BeanException {
		final Map<String, PropertyDescriptor> map = getPropertyDescriptorMap(clazz, ignoreCase);
		return (null == map) ? null : map.get(fieldName);
	}
1088841
public Status withDescription(@Nullable String description) {
    if (Utils.equalsObjects(this.description, description)) {
      return this;
    }
    return new Status(this.canonicalCode, description);
  }
82376
public Object getField(final FieldDescriptorType descriptor) {
    Object o = fields.get(descriptor);
    if (o instanceof LazyField) {
      return ((LazyField) o).getValue();
    }
    return o;
  }
523573
private static Properties readPropertiesFromDescriptor(ArquillianDescriptor descriptor) {
        for (ExtensionDef extension : descriptor.getExtensions()) {
            if (CitrusExtensionConstants.CITRUS_EXTENSION_QUALIFIER.equals(extension.getExtensionName())) {
                Properties properties = new Properties();
                properties.putAll(extension.getExtensionProperties());
                return properties;
            }
        }

        return new Properties();
    }
1089776
private static MethodRef getBuilderMethod(Descriptor descriptor) {
    TypeInfo message = messageRuntimeType(descriptor);
    TypeInfo builder = builderRuntimeType(descriptor);
    return MethodRef.createStaticMethod(
            message, new Method("newBuilder", builder.type(), NO_METHOD_ARGS))
        .asNonNullable();
  }
1328852
public static Class<?> getTypeByDescriptor(TypeDescriptor type) {
		if (type == null)
			throw new NullPointerException("Type descriptor cannot be null");

		return getType(type.getName(), type.getLibrary());
	}
787540
private Properties getStatusProperties() {
		final File statusFile = getStatusFile();
		if (statusFile != null) {
			try {
				Properties statusFileProps = new Properties();
				final FileReader statusReader = new FileReader(statusFile);
				try {
					statusFileProps.load(statusReader);
					return statusFileProps;
				} finally {
					statusReader.close();
				}
			} catch (IOException e) {
				getLog().warn("Reading status file failed: " + e.getMessage());
			}
		}
		return null;
	}
384605
public String getDescriptorExpression() {
    // We only need to import the outermost descriptor.
    Descriptor descriptor = typeDescriptor;
    while (descriptor.getContainingType() != null) {
      descriptor = descriptor.getContainingType();
    }
    return JavaQualifiedNames.getQualifiedName(descriptor) + ".getDescriptor()";
  }
1082813
@Nullable
  private static <A extends Annotation> A getAnnotation(PropertyDescriptor descriptor,
      Class<A> type) {
    A a = null;
    if (descriptor.getWriteMethod() != null) {
      a = descriptor.getWriteMethod().getAnnotation(type);
    }
    if (a == null && descriptor.getReadMethod() != null) {
      a = descriptor.getReadMethod().getAnnotation(type);
    }
    return a;
  }
898068
public Set<ElementDescriptor<?>> getProperties()
	{
		return mProp == null ? null : Collections.unmodifiableSet(mProp.keySet());
	}
633452
public static int getfd(FileDescriptor descriptor)
    {
        Field field = FBUtilities.getProtectedField(descriptor.getClass(), "fd");

        if (field == null)
            return -1;

        try
        {
            return field.getInt(descriptor);
        }
        catch (Exception e)
        {
            JVMStabilityInspector.inspectThrowable(e);
            logger.warn("unable to read fd field from FileDescriptor");
        }

        return -1;
    }
659743
public PropertyDescriptor[] getPropertyDescriptors() {
        BeanInfo info = getBeanInfo();
        if (info == null) {
            return null;
        }

        PropertyDescriptor[] pds = info.getPropertyDescriptors();
        getTeaToolsUtils().sortPropertyDescriptors(pds);
        return pds;
    }