/*
@see PropertyCoder#decodeProperty
427593
Object decodeProperty(MsgDestEncodingUtilsImpl.PropertyInputStream stream) throws JMSException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "decodeProperty", stream);

    Object value = super.decodeProperty(stream);
    if (SHORT_ON.equals(value)) {
      value = ApiJmsConstants.ON;
    }
    else {
      value = ApiJmsConstants.OFF;
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "decodeProperty", value);
    return value;
  }
310041
public String getProperty(String strProperty)
    {
        if (m_propTransport != null)
            if (m_propTransport.get(strProperty) != null)
                return (String)m_propTransport.get(strProperty);
        return super.getProperty(strProperty);
    }
459212
public final Class<?> getPropertyType(String property) {
    MethodInfo info = propertyWriteMethods.get(property);
    if (null == info) return null;
    else return info.parameterTypes[0];
  }
160385
function decode ( value ) {
	let resolvedValue = {};
	try {
		resolvedValue = JSON.parse(value.getValue());
	} catch ( e ) {
		resolvedValue = null;
	}
	return setJsonValueToSassValue(resolvedValue);
}
926849
@Override
    public <T> T getProperty(Object key, Class<T> clazz) {
        return clazz.cast(getProperty(key));
    }
474594
static StructrPropertyDefinition deserialize(final StructrTypeDefinition parent, final String name, final Map<String, Object> source) {

		final String propertyType = (String)source.get(JsonSchema.KEY_TYPE);
		StructrPropertyDefinition newProperty = null;

		if (propertyType != null) {

			final boolean isDate   = source.containsKey(JsonSchema.KEY_FORMAT) && JsonSchema.FORMAT_DATE_TIME.equals(source.get(JsonSchema.KEY_FORMAT));
			final boolean isEnum   = source.containsKey(JsonSchema.KEY_ENUM);

			switch (propertyType) {

				case "string":	// can be string, date, enum or script

					if (isDate) {

						newProperty = new StructrDateProperty(parent, name);

					} else if (isEnum) {

						newProperty = new StructrEnumProperty(parent, name);

					} else {

						newProperty = new StructrStringProperty(parent, name);
					}
					break;

				case "password":
					newProperty = new StructrPasswordProperty(parent, name);
					break;

				case "thumbnail":
					newProperty = new StructrThumbnailProperty(parent, name);
					break;

				case "count":
					newProperty = new StructrCountProperty(parent, name);
					break;

				case "script":
					newProperty = new StructrScriptProperty(parent, name);
					break;

				case "function":
					newProperty = new StructrFunctionProperty(parent, name);
					break;

				case "boolean":
					newProperty = new StructrBooleanProperty(parent, name);
					break;

				case "number":
					newProperty = new StructrNumberProperty(parent, name);
					break;

				case "integer":
					newProperty = new StructrIntegerProperty(parent, name);
					break;

				case "long":
					newProperty = new StructrLongProperty(parent, name);
					break;

				case "custom":
					newProperty = new StructrCustomProperty(parent, name);
					break;

				case "encrypted":
					newProperty = new StructrEncryptedStringProperty(parent, name);
					break;

				case "object":

					// notion properties don't contain $link
					if (source.containsKey(JsonSchema.KEY_REFERENCE) && !source.containsKey(JsonSchema.KEY_LINK)) {

						final Object reference = source.get(JsonSchema.KEY_REFERENCE);
						if (reference != null && reference instanceof String) {

							final String refName = StructrPropertyDefinition.getPropertyNameFromJsonPointer(reference.toString());
							newProperty = new NotionReferenceProperty(parent, name, (String)source.get(JsonSchema.KEY_REFERENCE), "object", refName);
						}
					}
					break;

				case "array":

					// notion properties don't contain $link
					if (!source.containsKey(JsonSchema.KEY_LINK)) {

						final Map<String, Object> items = (Map)source.get(JsonSchema.KEY_ITEMS);
						if (items != null) {

							if (items.containsKey(JsonSchema.KEY_REFERENCE)) {

								final Object reference = items.get(JsonSchema.KEY_REFERENCE);
								if (reference != null && reference instanceof String) {

									final String refName = StructrPropertyDefinition.getPropertyNameFromJsonPointer(reference.toString());
									newProperty = new NotionReferenceProperty(parent, name, (String)source.get(JsonSchema.KEY_REFERENCE), "array", refName);
								}

							} else if (items.containsKey(JsonSchema.KEY_TYPE)) {

								final Object typeValue = items.get(JsonSchema.KEY_TYPE);
								if (typeValue != null) {

									switch (typeValue.toString()) {

										case "string":
											newProperty = new StructrStringArrayProperty(parent, name);
											break;

										case "integer":
											newProperty = new StructrIntegerArrayProperty(parent, name);
											break;

										case "long":
											newProperty = new StructrLongArrayProperty(parent, name);
											break;

										case "number":
											newProperty = new StructrNumberArrayProperty(parent, name);
											break;

										case "boolean":
											newProperty = new StructrBooleanArrayProperty(parent, name);
											break;

										case "date":
											newProperty = new StructrDateArrayProperty(parent, name);
											break;
									}
								}
							}
						}
					}
					break;
			}

		} else {

			throw new IllegalStateException("Property " + name + " has no type.");
		}

		if (newProperty != null) {
			newProperty.deserialize(source);
		}

		return newProperty;
	}
968365
protected function decode($tsProperty)
    {
        $nameLength = hexdec(substr($tsProperty, 0, 2));

        # 1 data byte is 3 encoded bytes
        $valueLength = hexdec(substr($tsProperty, 2, 2)) * 3;

        $this->valueType = hexdec(substr($tsProperty, 4, 2));
        $this->name = pack('H*', substr($tsProperty, 6, $nameLength));
        $this->value = $this->getDecodedValueForProp($this->name, substr($tsProperty, 6 + $nameLength, $valueLength));
    }
592181
private static JSONObject parseProperties(HashMap<String, String> properties) throws JSONException {
        if (properties != null) {
            JSONObject propertiesObject = new JSONObject();

            for (String key : properties.keySet()) {
                String propertyValue = properties.get(key);

                /*
                 * if(propertyValue.matches("true|false")) {
                 * 
                 * propertiesObject.put(key, propertyValue.equals("true"));
                 * 
                 * } else if(propertyValue.matches("[0-9]+")) {
                 * 
                 * Integer value = Integer.parseInt(propertyValue);
                 * propertiesObject.put(key, value);
                 * 
                 * } else
                 */
                if (propertyValue.startsWith("{") && propertyValue.endsWith("}")) {
                    propertiesObject.put(key,
                                         new JSONObject(propertyValue));
                } else {
                    propertiesObject.put(key,
                                         propertyValue.toString());
                }
            }

            return propertiesObject;
        }

        return new JSONObject();
    }
966835
public String getProperty(String key,String defaultValue)
    {
        //get property value
        return this.PROPERTIES.getProperty(key,defaultValue);
    }
1067024
void encodeProperty(ByteArrayOutputStream baos, Object value) throws JMSException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeProperty", new Object[]{baos, value});

    // The value should be a non-null String
    if (value instanceof String) {
      super.encodeProperty(baos, STAR_STRING + (String)value);     // The value has to have '*' preprended
    }

    // If it is not a String, something has gone horribly wrong
    else {
      throw (JMSException)JmsErrorUtils.newThrowable(JMSException.class
                                                    ,"INTERNAL_ERROR_CWSIA0362"
                                                    ,new Object[] {"StringPropertyCoder.encodeProperty#1", longName, value}
                                                    ,null
                                                    ,"StringPropertyCoder.encodeProperty#1"
                                                    ,null
                                                    ,tc);
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "encodeProperty");
  }
540520
public void parseProperty(Element propertyElement, ActivityImpl activity) {
    String id = propertyElement.attribute("id");
    String name = propertyElement.attribute("name");

    // If name isn't given, use the id as name
    if (name == null) {
      if (id == null) {
        addError("Invalid property usage on line " + propertyElement.getLine() + ": no id or name specified.", propertyElement);
      } else {
        name = id;
      }
    }

    String type = null;
    parsePropertyCustomExtensions(activity, propertyElement, name, type);
  }
704694
@Override
    public Object getPropertyValue(PropertyInfo propInfo) throws Exception {
        Object obj = registeredProperties == null ? null : registeredProperties.get(propInfo.getId());

        if (obj instanceof PropertyProxy) {
            Object value = ((PropertyProxy) obj).getValue();
            return value instanceof String ? propInfo.getPropertyType().getSerializer().deserialize((String) value) : value;
        } else {
            return obj == null ? null : propInfo.getPropertyValue(obj, obj == this);
        }
    }
154020
Object decodeProperty(MsgDestEncodingUtilsImpl.PropertyInputStream stream) throws JMSException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "decodeProperty", stream);

    // Get the String value then strip the first character, which is always a '*'
    String value = (String)super.decodeProperty(stream);
    value = value.substring(1);

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "decodeProperty", value);
    return value;
  }
546961
function decode(value, fieldName) {
  var p;
  var c;

  if (fieldName.indexOf("descrip") !== -1) {
    return false;
  }

  if (_.isString(value) && value.indexOf(":") < 8 && value.indexOf(":") > 0) {
    p = value.split(":");
    c = p.shift().trim();
    return {
      code: c,
      coded: {
        field: fieldName,
        code: c,
        description: p.join(":").trim()
      }
    };
  }

  return false;
}
1332498
public final void decodeValue(int index, TypedValueDecoder tvd)
        throws IllegalArgumentException
    {
        if (index < 0 || index >= mAttrCount) {
            throwIndex(index);
        }
        /* Should be faster to pass the char array even if we might
         * have a String
         */
        // Either way, need to trim before passing:
        char[] buf = mValueBuilder.getCharBuffer();
        int start = mAttributes[index].mValueStartOffset;
        int end = getValueStartOffset(index+1);

        while (true) {
            if (start >= end) {
                tvd.handleEmptyValue();
                return;
            }
            if (!StringUtil.isSpace(buf[start])) {
                break;
            }
            ++start;
        }
        // Trailing space?
        while (--end > start && StringUtil.isSpace(buf[end])) { }
        tvd.decode(buf, start, end+1);
    }
888344
private function decodeByProperty($property, $format)
    {
        return array_map(function ($entry) use ($property) {
            \PHPUnit_Framework_Assert::assertInternalType('array', $entry);
            \PHPUnit_Framework_Assert::assertArrayHasKey($property, $entry);

            return $entry[$property];
        }, $this->decode($format));
    }
298905
@Override
    public <V> TitanVertexProperty<V> property(String key, V value, Object...
            keyValues) {
        throw new UnsupportedOperationException(errorName + " do not support incident properties");
    }