Tabnine Logo
Item.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.fourthline.cling.support.model.item.Item
constructor

Best Java code snippets using org.fourthline.cling.support.model.item.Item.<init> (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.itemItem<init>

Popular methods of Item

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

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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