@Override public XDIArc map(ContextNode contextNode) { return contextNode.getXDIArc(); } }
/** * Checks if a context node is a valid XDI unordered attribute instance. * @param contextNode The context node to check. * @return True if the context node is a valid XDI unordered attribute instance. */ public static boolean isValid(ContextNode contextNode) { if (contextNode == null) throw new NullPointerException(); if (contextNode.getXDIArc() == null || ! isValidXDIArc(contextNode.getXDIArc())) return false; return true; }
/** * Checks if a context node is a valid XDI ordered attribute instance. * @param contextNode The context node to check. * @return True if the context node is a valid XDI ordered attribute instance. */ public static boolean isValid(ContextNode contextNode) { if (contextNode == null) throw new NullPointerException(); if (contextNode.getXDIArc() == null || ! isValidXDIArc(contextNode.getXDIArc())) return false; return true; }
/** * Checks if a context node is a valid XDI attribute collection. * @param contextNode The context node to check. * @return True if the context node is a valid XDI attribute collection. */ public static boolean isValid(ContextNode contextNode) { if (contextNode == null) throw new NullPointerException(); if (contextNode.getXDIArc() == null || ! isValidXDIArc(contextNode.getXDIArc())) return false; return true; }
/** * Checks if a context node is a valid XDI common definition. * @param contextNode The context node to check. * @return True if the context node is a valid XDI common definition. */ public static boolean isValid(ContextNode contextNode) { if (contextNode == null) throw new NullPointerException(); return XDIConstants.XDI_ADD_COMMON_DEFINITION.equals(contextNode.getXDIArc()); }
/** * Returns the ID of the message. * @return The ID of the message. */ public XDIArc getID() { return this.getContextNode().getXDIArc(); }
/** * Returns the predicate address of this XDI inner root. * @return The predicate address. */ public XDIAddress getPredicateOfInnerRoot() { return getPredicateOfInnerRootXDIArc(this.getContextNode().getXDIArc()); }
/** * Checks if a context node is a valid XDI ordered entity instance. * @param contextNode The context node to check. * @return True if the context node is a valid XDI ordered entity instance. */ public static boolean isValid(ContextNode contextNode) { if (contextNode == null) throw new NullPointerException(); if (contextNode.getXDIArc() == null || ! isValidXDIArc(contextNode.getXDIArc())) return false; if (contextNode.getContextNode() != null && XdiAttributeCollection.isValid(contextNode.getContextNode())) return false; if (contextNode.getContextNode() != null && XdiAbstractAttribute.isValid(contextNode.getContextNode())) return false; return true; }
/** * Checks if a context node is a valid XDI unordered entity instance. * @param contextNode The context node to check. * @return True if the context node is a valid XDI unordered entity instance. */ public static boolean isValid(ContextNode contextNode) { if (contextNode == null) throw new NullPointerException(); if (contextNode.getXDIArc() == null || ! isValidXDIArc(contextNode.getXDIArc())) return false; if (contextNode.getContextNode() != null && XdiAttributeCollection.isValid(contextNode.getContextNode())) return false; if (contextNode.getContextNode() != null && XdiAbstractAttribute.isValid(contextNode.getContextNode())) return false; return true; }