Examples of DecodedLibraryItem


Examples of org.mizartools.dli.DecodedLibraryItem

    for (Scheme scheme : schemeList){
        progressBar.setValue(i++);
        progressBar.repaint();
      html.append("<tr>");
      try {
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(schemesSignature, scheme, schemeId);
        int nr = schemeId.getId();
        if (scheme.getNr() != null) nr = scheme.getNr();
        html.append("<td><b>");
        try {
          html.append(UniqueIdentifier.getInstance(article.getAid(), type, nr).toString());
          html.append("</b></td>");
          html.append("<td>");
          html.append(UniqueIdentifier.getInstance(article.getAid(), type, nr).id);
          html.append("</td>");
        } catch (UniqueIdentifierException e) {}
        html.append("<td>");
        html.append(decodedLibraryItem.toString());
        html.append("</td>");
      } catch (DliException e) {
        html.append(e.toString());
      }
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

  private boolean checkConstructors(Article articleXml, String arrayText[], boolean arrayFound[]) throws DliException {
    boolean error = false;
    if (articleXml.hasConstructors()){
      ConstructorsSignature constructorsSignature = articleXml.getConstructorsSignature();
      for (Constructor constructor : articleXml.getConstructors().getConstructorList()){
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(constructorsSignature, constructor);
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

      if (symbolId2 != null) {
        symbolIdNew2 = new SymbolId(articleId, symbolId2.getSymbolType(), symbolId2.getToken(), 1);
      }
      itemDefinition = new FunctorNotation(symbolIdNew1, symbolIdNew2, functorNotation.getLoci(), functorNotation.getFormat(), functorNotation.getVisible(), functorNotation.getConstructor(), functorNotation.getSynonym());
    }
    return new DecodedLibraryItem(decodedLibraryItem.getItemId(), itemDefinition);
  }
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

  private boolean checkNotations(Article articleXml, String arrayText[], boolean arrayFound[]) throws DliException {
    boolean error = false;
    if (articleXml.hasNotations()){
      NotationsSignature notationsSignature = articleXml.getNotationsSignature();
      for (Pattern pattern : articleXml.getNotations().getPatternList()){
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(notationsSignature, pattern);
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
            if (arrayText[i].contains("UNKNOWN")) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

      int relativeNr = 0;
      int nrDefiniens = 0;
      for (Definiens definiens : articleXml.getDefinientia().getDefiniensList()){
        nrDefiniens++;
        relativeNr = definiens.getDefnr() - nrDefiniens;
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(definientiaSignature, definiens, relativeNr);
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

  private boolean checkRegistrations(Article articleXml, String arrayText[], boolean arrayFound[]) throws DliException {
    boolean error = false;
    if (articleXml.hasRegistrations()){
      RegistrationsSignature registrationsSignature = articleXml.getRegistrationsSignature();
      for (IClusterRegistration iClusterRegistration : articleXml.getRegistrations().getIClusterRegistrationList()){
        DecodedLibraryItem decodedLibraryItem = null;
        decodedLibraryItem = ItemFactory.getItem(registrationsSignature, iClusterRegistration);
       
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

  private boolean checkIdentifyRegistrations(Article articleXml, String arrayText[], boolean arrayFound[]) throws DliException {
    boolean error = false;
    if (articleXml.hasIdentifyRegistrations()){
      IdentifyRegistrationsSignature identifyRegistrationsSignature = articleXml.getIdentifyRegistrationsSignature();
      for (Identify identify : articleXml.getIdentifyRegistrations().getIdentifyList()){
        DecodedLibraryItem decodedLibraryItem = null;
        decodedLibraryItem = ItemFactory.getItem(identifyRegistrationsSignature, identify);
       
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

  private boolean checkReductionRegistrations(Article articleXml, String arrayText[], boolean arrayFound[]) throws DliException {
    boolean error = false;
    if (articleXml.hasReductionRegistrations()){
      ReductionRegistrationsSignature reductionRegistrationsSignature = articleXml.getReductionRegistrationsSignature();
      for (Reduction reduction : articleXml.getReductionRegistrations().getReductionList()){
        DecodedLibraryItem decodedLibraryItem = null;
        decodedLibraryItem = ItemFactory.getItem(reductionRegistrationsSignature, reduction);
       
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

    if (articleXml.hasTheorems()){
      TheoremsSignature theoremsSignature = articleXml.getTheoremsSignature();
      TheoremId theoremId = new TheoremId();
      TheoremId theoremIdDef = new TheoremId();
      for (Theorem theorem : articleXml.getTheorems().getTheoremList()){
        DecodedLibraryItem decodedLibraryItem = null;
        decodedLibraryItem = ItemFactory.getItem(theoremsSignature, theorem, theoremId, theoremIdDef);
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here

Examples of org.mizartools.dli.DecodedLibraryItem

    boolean error = false;
    if (articleXml.hasSchemes()){
      SchemesSignature schemesSignature = articleXml.getSchemesSignature();
      SchemeId schemeId = new SchemeId();
      for (Scheme scheme : articleXml.getSchemes().getSchemeList()){
        DecodedLibraryItem decodedLibraryItem = null;
        decodedLibraryItem = ItemFactory.getItem(schemesSignature, scheme, schemeId);
        String dliFromXml = decodedLibraryItem.toString();
        String resourceId = decodedLibraryItem.getItemId().toString()+"=";
        boolean found = false;
          for (int i = 0 ; i<arrayText.length ; i++){
            if (arrayText[i].startsWith(resourceId)){
              found = true;
              if (!arrayText[i].equals(dliFromXml)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.