Пример #1
0
 public boolean canWrap(Node n, EnhGraph eg) {
   return n.isLiteral();
 }
Пример #2
0
 public EnhNode wrap(Node n, EnhGraph eg) {
   if (!n.isLiteral()) throw new LiteralRequiredException(n);
   return new LiteralImpl(n, eg);
 }
Пример #3
0
 /**
  * @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);
 }