Codota Logo
org.cybergarage.xml
Code IndexAdd Codota to your IDE (free)

How to use org.cybergarage.xml

Best Java code snippets using org.cybergarage.xml (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: i2p/i2p.i2p

public String getAttributeValue(String name) {
  Attribute attr = getAttribute(name);
  if (attr != null)
    return attr.getValue();
  return "";
}
origin: i2p/i2p.i2p

public void setAttribute(String name, String value) {
  Attribute attr = getAttribute(name);
  if (attr != null) {
    attr.setValue(value);
    return;
  }
  attr = new Attribute(name, value);
  addAttribute(attr);
}
origin: i2p/i2p.i2p

public void addNode(Node node) {
  node.setParentNode(this);
  nodeList.add(node);
}
origin: i2p/i2p.i2p

public void outputAttributes(PrintWriter ps)
{
  int nAttributes = getNAttributes();
  for (int n=0; n<nAttributes; n++) {
    Attribute attr = getAttribute(n);
    ps.print(" " + attr.getName() + "=\"" + XML.escapeXMLChars(attr.getValue()) + "\"");
  }
}
origin: i2p/i2p.i2p

  private Node createResponseNode(String var)
  {
    Node queryResNode = new Node();
    queryResNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE_RESPONSE);
    queryResNode.setNameSpace(Control.NS, Control.XMLNS);
    
    Node returnNode = new Node();
    returnNode.setName(Control.RETURN);
    returnNode.setValue(var);
    queryResNode.addNode(returnNode);
    
    return queryResNode;
  }
}
origin: i2p/i2p.i2p

public void setNode(String name, String value) {
  Node node = getNode(name);
  if (node == null) {
    node = new Node(name);
    addNode(node);
  }
  node.setValue(value);
}
origin: i2p/i2p.i2p

  public void set(Attribute otherAttr) 
  {
    setName(otherAttr.getName());
    setValue(otherAttr.getValue());
  }
}
origin: i2p/i2p.i2p

public void setNode(String name) {
  if (hasNode(name)) {
    return;
  }
  Node node = new Node(name);
  addNode(node);
}

origin: i2p/i2p.i2p

public boolean removeNode(String name) {
  return nodeList.remove(getNode(name));
}
origin: i2p/i2p.i2p

public void addAttribute(String name, String value) {
  Attribute attr = new Attribute(name, value);
  addAttribute(attr);
}
origin: i2p/i2p.i2p

public Attribute(String name, String value) 
{
  this();
  setName(name);
  setValue(value);
}
origin: i2p/i2p.i2p

public void insertNode(Node node, int index) {
  node.setParentNode(this);
  nodeList.insertElementAt(node, index);
}
origin: i2p/i2p.i2p

public boolean removeNode(Node node) {
  node.setParentNode(null);
  return nodeList.remove(node);
}
origin: i2p/i2p.i2p

public StateVariable()
{
  this.serviceNode = null;
  this.stateVariableNode = new Node(ELEM_NAME);
}

origin: i2p/i2p.i2p

  public void print()
  {
    print(true);
  }
}
origin: i2p/i2p.i2p

public boolean hasAttributes()
{
  if (0 < getNAttributes())
    return true;
  return false;
}
origin: i2p/i2p.i2p

public Node getRootNode() {
  if (rootNode != null)
    return rootNode;
  if (deviceNode == null)
    return null;
  return deviceNode.getRootNode();
}
origin: i2p/i2p.i2p

/**
 * Inovoke {@link #getIndentLevelString(int, String)} with <code>"   "</code> as String 
 * 
 * @see #getIndentLevelString(int, String)
 */
public String getIndentLevelString(int nIndentLevel) 
{
  return getIndentLevelString(nIndentLevel,"   ");
}
origin: i2p/i2p.i2p

public Action(Node serviceNode){
  //TODO Test
  this.serviceNode = serviceNode;
  this.actionNode = new Node(Action.ELEM_NAME);		
}
origin: i2p/i2p.i2p

public Argument()
{
  argumentNode = new Node(ELEM_NAME);
  serviceNode = null;
}

org.cybergarage.xml

Most used classes

  • Node
  • Parser
  • Attribute
  • AttributeList
  • NodeList
  • XML,
  • JaxpParser,
  • XmlPullParser,
  • JaxpParser$BlankingResolver,
  • JaxpParser$NullFilterInputStream,
  • XercesParser
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