Package lupos.datastructures.items.literal.string

Examples of lupos.datastructures.items.literal.string.StringLiteral


  public final static Literal readLuposLiteral(final ObjectInput in) throws IOException, ClassNotFoundException {
    if (LiteralFactory.getMapType() == MapType.NOCODEMAP
        || LiteralFactory.getMapType() == MapType.LAZYLITERAL
        || LiteralFactory.getMapType() == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP
        || LiteralFactory.getMapType() == MapType.PREFIXCODEMAP) {
      return new StringLiteral((String) in.readObject());
    } else {
      return new CodeMapLiteral(InputHelper.readLuposInt(in));
    }
  }
View Full Code Here


    this.prefix = code;
    this.content = LiteralFactory.createPostFixOfURI(stringContent);
  }

  public CodeMapURILiteral(final String content, final int prefixCode) {
    this.content = new StringLiteral(content);
    this.prefix = prefixCode;
  }
View Full Code Here

        if (mapType == MapType.NOCODEMAP
            || mapType == MapType.LAZYLITERAL
            || mapType == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP
            || mapType == MapType.PREFIXCODEMAP
            || mapType == MapType.URICODEMAP) {
          return new StringLiteral(InputHelper.readLuposString(in));
        } else {

          return new CodeMapLiteral(InputHelper.readLuposInt(in));
        }
      }
View Full Code Here

  public static Literal createLiteralWithoutLazyLiteral(final String content) {
    if (mapType == MapType.NOCODEMAP || mapType == MapType.LAZYLITERAL
        || mapType == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP
        || mapType == MapType.PREFIXCODEMAP
        || mapType == MapType.URICODEMAP) {
      return new StringLiteral(content);
    } else {
      return new CodeMapLiteral(content);
    }
  }
View Full Code Here

      return new CodeMapLiteral(content);
    }
  }

  public static Literal createStringLiteral(final String content) {
      return new StringLiteral(content);
  }
View Full Code Here

  public static Literal createPostFixOfURI(final String content) {
    if (mapType == MapType.NOCODEMAP || mapType == MapType.LAZYLITERAL
        || mapType == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP
        || mapType == MapType.PREFIXCODEMAP) {
      return new StringLiteral(content);
    } else {
      return new CodeMapLiteral(content);
    }
  }
View Full Code Here

TOP

Related Classes of lupos.datastructures.items.literal.string.StringLiteral

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.