public boolean canWrap(Node n, EnhGraph eg) { return n.isLiteral(); }
public EnhNode wrap(Node n, EnhGraph eg) { if (!n.isLiteral()) throw new LiteralRequiredException(n); return new LiteralImpl(n, eg); }
/** * @deprecated Please use the createLiteral methods on Model. Model implementors should use * Literal instructors which include the Model. */ public LiteralImpl(String s, String l, boolean wellFormed, ModelCom m) { this(Node.createLiteral(s, l, wellFormed), m); }