Codota Logo
Property
Code IndexAdd Codota to your IDE (free)

How to use
Property
in
com.jkoolcloud.tnt4j.core

Best Java code snippets using com.jkoolcloud.tnt4j.core.Property (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.jkoolcloud/tnt4j

@Override
public Property newProperty(String key, Object val) {
  return new Property(key, val);
}
origin: com.jkoolcloud/tnt4j

  protected void formatProperties(StringBuilder msg, Collection<Property> properties) {
    for (Property prop : properties) {
      if (prop.isTransient()) {
        continue;
      }
      msg.append("\n\t\t").append(prop.getKey()).append(": '").append(prop.getValue()).append(":")
          .append(prop.getDataType()).append(":").append(prop.getValueType()).append("'");
    }
  }
}
origin: com.jkoolcloud/tnt4j

/**
 * Sets the type of property.
 *
 * @param key
 *            of property
 * @param val
 *            property value
 */
public void set(String key, Object val) {
  set(key, val, ValueTypes.VALUE_TYPE_NONE);
}
origin: com.jkoolcloud/tnt4j

@Override
public String format(Property prop) {
  if (level == 9) {
    return super.format(prop);
  }
  if (prop == null || prop.isTransient()) {
    return EMPTY_STR;
  }
  Object value = prop.getValue();
  if (isSpecialSuppress(value)) {
    return EMPTY_STR;
  }
  StringBuilder jsonString = new StringBuilder(256);
  jsonString.append(Utils.quote(StringEscapeUtils.escapeJson(getKeyStr(prop.getKey())))).append(ATTR_SEP);
  if (isNoNeedToQuote(value)) {
    jsonString.append(propValueToString(value));
  } else {
    Utils.quote(StringEscapeUtils.escapeJson(propValueToString(value)), jsonString);
  }
  return jsonString.toString();
}
origin: com.jkoolcloud/tnt4j

  @Override
  public int compare(Property p1, Property p2) {
    return p1.getKey().compareTo(p2.getKey());
  }
};
origin: com.jkoolcloud/tnt4j

return property.getValue();
origin: com.jkoolcloud/tnt4j

if (entry.isTransient()) {
  continue;
  buffer.append(END_ATTR);
Object value = entry.getValue();
if (value instanceof DumpCollection) {
  buffer.append(subPadding);
} else if (value instanceof Number) {
  buffer.append(subPadding);
  Utils.quote(entry.getKey(), buffer).append(": ").append(value);
} else {
  buffer.append(subPadding);
  Utils.quote(entry.getKey(), buffer).append(": ");
  Utils.quote(value, buffer);
origin: com.jkoolcloud/tnt4j

@Override
public Snapshot add(Property property) {
  propSet.put(property.getKey(), property);
  return this;
}
origin: com.jkoolcloud/tnt4j

return property.getValue();
origin: com.jkoolcloud/tnt4j

@Override
public Property newProperty(String key, Object val, String valType) {
  return new Property(key, val, valType);
}
origin: com.jkoolcloud/tnt4j

  @Override
  public String toString() {
    String key = getKey();
    StringBuilder str = new StringBuilder();

    str.append(getClass().getSimpleName()).append("{")
      .append("Name:").append(key).append(",")
      .append("Value:").append(getValue()).append(",")
      .append("Type:").append(getDataType()).append(",")
      .append("Value-Type:").append(getValueType()).append(",")
      .append("Transient:").append(isTransient()).append("}");

    return str.toString();
  }
}
origin: com.jkoolcloud/tnt4j

/**
 * Add a user defined property
 *
 * @param prop
 *            property to be added
 * @see Property
 */
public void addProperty(Property prop) {
  properties.put(prop.getKey(), prop);
}
origin: com.jkoolcloud/tnt4j

/**
 * Constructs a Property objects with the specified properties.
 *
 * @param key
 *            key of property
 * @param value
 *            value for property
 * @param transient_
 *            flag indicating whether property is transient
 */
public Property(String key, Object value, boolean transient_) {
  set(key, value);
  this.transient_ = transient_;
}
origin: com.jkoolcloud/tnt4j

/**
 * Add a property with a given key and value.
 *
 * @param key
 *            property key name
 * @param value
 *            value associated with the key
 * @param transient_
 *            flag indicating whether property is transient
 * @return reference to this snapshot
 */
@Override
public PropertySnapshot add(Object key, Object value, boolean transient_) {
  this.add(new Property(String.valueOf(key), value, transient_));
  return this;
}
origin: com.jkoolcloud/tnt4j

if (prop == null || prop.isTransient()) {
  return EMPTY_STR;
Object value = prop.getValue();
jsonString.append(START_JSON);
jsonString.append(JSON_NAME_LABEL).append(ATTR_SEP);
Utils.quote(StringEscapeUtils.escapeJson(prop.getKey()), jsonString).append(ATTR_JSON);
jsonString.append(JSON_TYPE_LABEL).append(ATTR_SEP);
Utils.quote(prop.getDataType(), jsonString).append(ATTR_JSON);
if (prop.getValueType() != null && !prop.getValueType().equalsIgnoreCase(ValueTypes.VALUE_TYPE_NONE)) {
  jsonString.append(JSON_VALUE_TYPE_LABEL).append(ATTR_SEP);
  Utils.quote(prop.getValueType(), jsonString).append(ATTR_JSON);
origin: com.jkoolcloud/tnt4j

/**
 * Finds snapshot contained property by defined property name ignoring case.
 *
 * @param snapshot
 *            property snapshot instance
 * @param propName
 *            property name
 * @return snapshot contained property
 */
public static Property getSnapPropertyIgnoreCase(Snapshot snapshot, String propName) {
  if (snapshot != null) {
    for (Property prop : snapshot.getSnapshot()) {
      if (prop.getKey().equalsIgnoreCase(propName)) {
        return prop;
      }
    }
  }
  return null;
}
origin: com.jkoolcloud/tnt4j

/**
 * Constructs a Property objects with the specified properties.
 *
 * @param key
 *            key of property
 * @param value
 *            value for property
 * @param valType
 *            value type such as (currency, percent)
 * @param transient_
 *            flag indicating whether property is transient
 */
public Property(String key, Object value, String valType, boolean transient_) {
  set(key, value, valType);
  this.transient_ = transient_;
}
origin: com.jkoolcloud/tnt4j

/**
 * Add a property with a given key and value.
 *
 * @param key
 *            property key name
 * @param value
 *            value associated with the key
 * @param valType
 *            value type such as (currency, percent). See {@link ValueTypes}.
 * @return reference to this snapshot
 */
@Override
public PropertySnapshot add(Object key, Object value, String valType) {
  this.add(new Property(key.toString(), value, valType));
  return this;
}
origin: com.jkoolcloud/tnt4j

return new Property(getKey(key), pValue, getValueType(key));
origin: com.jkoolcloud/jesl

  throw new SAXParseException("<" + SIM_XML_PROP + ">: invalid type: " + type, saxLocator);
return new Property(name, propValue, valType);
com.jkoolcloud.tnt4j.coreProperty

Javadoc

Implements a Property entity.

A Property object represents a name=value pair.

Most used methods

  • <init>
    Constructs a Property objects with the specified properties.
  • getDataType
    Obtain the language independent value data type of the property.
  • getKey
    Gets current key for property.
  • getValue
    Gets current value for property.
  • getValueType
    Obtain value type such as currency, percent, number, timestamp, etc. See ValueTypes.
  • isTransient
    Gets flag value of this property indicating if it is transient. Transient properties are not process
  • set
    Sets the type of property.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now