Tabnine Logo
Item.setRestricted
Code IndexAdd Tabnine to your IDE (free)

How to use
setRestricted
method
in
org.fourthline.cling.support.model.item.Item

Best Java code snippets using org.fourthline.cling.support.model.item.Item.setRestricted (Showing top 3 results out of 315)

origin: 4thline/cling

protected Item createItem(Attributes attributes) {
  Item item = new Item();
  item.setId(attributes.getValue("id"));
  item.setParentID(attributes.getValue("parentID"));
  try {
    Boolean value = (Boolean)Datatype.Builtin.BOOLEAN.getDatatype().valueOf(
        attributes.getValue("restricted")
    );
    if (value != null)
      item.setRestricted(value);
  } catch (Exception ex) {
    // Ignore
  }
  if ((attributes.getValue("refID") != null))
    item.setRefID(attributes.getValue("refID"));
  return item;
}
origin: kingthy/TVRemoteIME

protected Item createItem(Attributes attributes) {
  Item item = new Item();
  item.setId(attributes.getValue("id"));
  item.setParentID(attributes.getValue("parentID"));
  try {
    Boolean value = (Boolean)Datatype.Builtin.BOOLEAN.getDatatype().valueOf(
        attributes.getValue("restricted")
    );
    if (value != null)
      item.setRestricted(value);
  } catch (Exception ex) {
    // Ignore
  }
  if ((attributes.getValue("refID") != null))
    item.setRefID(attributes.getValue("refID"));
  return item;
}
origin: org.fourthline.cling/cling-support

protected Item createItem(Attributes attributes) {
  Item item = new Item();
  item.setId(attributes.getValue("id"));
  item.setParentID(attributes.getValue("parentID"));
  try {
    Boolean value = (Boolean)Datatype.Builtin.BOOLEAN.getDatatype().valueOf(
        attributes.getValue("restricted")
    );
    if (value != null)
      item.setRestricted(value);
  } catch (Exception ex) {
    // Ignore
  }
  if ((attributes.getValue("refID") != null))
    item.setRefID(attributes.getValue("refID"));
  return item;
}
org.fourthline.cling.support.model.itemItemsetRestricted

Popular methods of Item

  • getId
  • getTitle
  • getCreator
  • getFirstResource
  • getRefID
  • getResources
  • getClazz
  • getParentID
  • getWriteStatus
  • setRefID
  • <init>
  • addDescMetadata
  • <init>,
  • addDescMetadata,
  • addResource,
  • getDescMetadata,
  • isRestricted,
  • setId,
  • setParentID,
  • getFirstProperty,
  • getProperties

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • BoxLayout (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now