Esempio n. 1
0
  private SystemSyntax(final SyntaxHandler<?> syntaxHandler) {

    _SyntaxHandler = syntaxHandler;
    final String localName = toString();
    _UniqueName = new UniqueName(Constants.NAMESPACE, localName);
    final java.net.URI relativeUri = java.net.URI.create("/" + _UniqueName.toString());
    _SyntaxUri = SystemApi.Syntax.getUri().resolve(relativeUri);
  }
Esempio n. 2
0
  private SystemFormat(
      final UniqueName uniqueName,
      final String description,
      final URI homePageUri,
      final URI rfcPageUri,
      final String fileExtension) {

    _UniqueName = uniqueName;

    _Description = description;
    _HomePageUri = homePageUri;
    _RfcPageUri = rfcPageUri;
    _FileExtension = fileExtension;

    _MediaType = new MediaType(uniqueName.getNamespace(), uniqueName.getLocalName());
    final URI relativeUri = URI.create("/" + _UniqueName.toString());
    _FormatUri = SystemApi.Format.getUri().resolve(relativeUri);
  }