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

How to use
Kind
in
ezvcard.property

Best Java code snippets using ezvcard.property.Kind (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: mangstadt/ez-vcard

/**
 * Creates a new KIND property whose value is set to "org".
 * @return the new KIND property
 */
public static Kind org() {
  return new Kind(ORG);
}
origin: mangstadt/ez-vcard

@Override
protected void _validate(List<ValidationWarning> warnings, VCardVersion version, VCard vcard) {
  super._validate(warnings, version, vcard);
  if (vcard.getKind() == null || !vcard.getKind().isGroup()) {
    warnings.add(new ValidationWarning(17));
  }
}
origin: apache/ofbiz-framework

if (vcard.getKind() != null) isGroup = vcard.getKind().isGroup();
origin: mangstadt/ez-vcard

/**
 * Creates a new KIND property whose value is set to "individual".
 * @return the new KIND property
 */
public static Kind individual() {
  return new Kind(INDIVIDUAL);
}
origin: mangstadt/ez-vcard

/**
 * Creates a new KIND property whose value is set to "group".
 * @return the new KIND property
 */
public static Kind group() {
  return new Kind(GROUP);
}
origin: mangstadt/ez-vcard

/**
 * Creates a new KIND property whose value is set to "location".
 * @return the new KIND property
 */
public static Kind location() {
  return new Kind(LOCATION);
}
origin: mangstadt/ez-vcard

  @Override
  public Kind copy() {
    return new Kind(this);
  }
}
origin: mangstadt/ez-vcard

  @Override
  protected Kind _parseValue(String value) {
    return new Kind(value);
  }
}
origin: mangstadt/ez-vcard

/**
 * Creates a new KIND property whose value is set to "application".
 * @return the new KIND property
 * @see <a href="http://tools.ietf.org/html/rfc6473">RFC 6473</a>
 */
public static Kind application() {
  return new Kind(APPLICATION);
}
origin: mangstadt/ez-vcard

/**
 * Creates a new KIND property whose value is set to "device".
 * @return the new KIND property
 * @see <a href="http://tools.ietf.org/html/rfc6869">RFC 6869</a>
 */
public static Kind device() {
  return new Kind(DEVICE);
}
origin: stackoverflow.com

 public static void main(String... args) throws Exception {

  Gson gson = new GsonBuilder().setPrettyPrinting().create();
  Type type = new TypeToken<
      Map<String, Map<String, Map<String, String>>>>() {}.getType();

  Map<String, Map<String, Map<String, String>>> source = 
    gson.fromJson(json, type);

  Map<String, Facility> dest = new HashMap<String, Facility>();

  for (String facilityName : source.keySet()) {
    Map<String, Map<String, String>> facility = source.get(facilityName);

    Facility f = new Facility();

    for (String kindName : facility.keySet())
      f.children.add(new Kind(kindName, facility.get(kindName)));

    dest.put(facilityName, f);
  }

  System.out.println(gson.toJson(dest));
}
ezvcard.propertyKind

Javadoc

Defines the type of entity that this vCard represents, such as an individual or an organization.

Code sample (creating)

 
VCard vcard = new VCard(); 
Kind kind = Kind.individual(); 
vcard.setKind(kind); 

Code sample (retrieving)

 
VCard vcard = ... 
Kind kind = vcard.getKind(); 
if (kind.isIndividual()) { 
//vCard contains information on an individual person 
} else if (kind.isGroup()) { 
//vCard contains information on a group of people 
} 
//etc 

Property name: KIND

Supported versions: 4.0

Most used methods

  • <init>
    Creates a kind property. Use of this constructor is discouraged. Please use one of the static factor
  • isGroup
    Determines if the value is set to "group".

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • putExtra (Intent)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Reference (javax.naming)
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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