// Thanks for Giordano Sassaroli <*****@*****.**> (09/08/03) public PropertyList getPropertyList() { PropertyList properties = new PropertyList(); Node varSetNode = getEnvelopeNode(); for (int i = 0; i < varSetNode.getNNodes(); i++) { Node propNode = varSetNode.getNode(i); if (propNode == null) continue; Property prop = getProperty(propNode.getNode(0)); properties.add(prop); } return properties; }
// Thanks for Giordano Sassaroli <*****@*****.**> (09/08/03) public PropertyList getPropertyList() { PropertyList properties = new PropertyList(); Node varSetNode = getEnvelopeNode(); // I2P change: ParserException caught in getRootNode() causes // getEnvelopeNode() to return null if (varSetNode == null) return properties; for (int i = 0; i < varSetNode.getNNodes(); i++) { Node propNode = varSetNode.getNode(i); if (propNode == null) continue; Property prop = getProperty(propNode.getNode(0)); properties.add(prop); } return properties; }
@Override protected PropertyList getMetadata() { PropertyList list = super.getMetadata(); list.add(String.class, "getLevel"); return list; }
@Override protected PropertyList getMetadata() { PropertyList list = super.getMetadata(); list.add(Date.class, "getCreationTime"); list.add(Date.class, "getExpirationTime"); list.add(String[].class, "getFeatures"); list.add(String.class, "getGroupId"); list.add(String.class, "getLabel"); list.add(String.class, "getLicenseHash"); list.add(int.class, "getMaxViolations"); list.add(long.class, "getQuota"); list.add(String[].class, "getSourceTypes"); list.add(String.class, "getStackId"); list.add(String.class, "getStatus"); list.add(String.class, "getType"); list.add(int.class, "getWindowPeriod"); return list; }