/** * Set the value of channelSubscribeId. * * @param v Value to assign to channelSubscribeId. */ @Override public void setChannelSubscribeId(String v) { super.setId(v); }
UserLayoutNodeDescription(Element xmlNode) throws PortalException { // standard Node attributes this.setId(xmlNode.getAttribute("ID")); this.setName(xmlNode.getAttribute("name")); this.setUnremovable(Boolean.valueOf(xmlNode.getAttribute("unremovable"))); this.setImmutable(Boolean.valueOf(xmlNode.getAttribute("immutable"))); if (xmlNode.getAttribute(Constants.ATT_DELETE_ALLOWED).equals("false")) this.setDeleteAllowed(false); if (xmlNode.getAttribute(Constants.ATT_MOVE_ALLOWED).equals("false")) this.setMoveAllowed(false); if (xmlNode.getAttribute(Constants.ATT_EDIT_ALLOWED).equals("false")) this.setEditAllowed(false); if (xmlNode.getAttribute(Constants.ATT_ADD_CHILD_ALLOWED).equals("false")) this.setAddChildAllowed(false); String precedence = xmlNode.getAttribute(Constants.ATT_PRECEDENCE); if (!precedence.equals("")) { try { this.setPrecedence(Double.parseDouble(precedence)); } catch (NumberFormatException nfe) { // if format is invalid leave it as default } } }