Examples of UniqueIdentifier


Examples of org.mizartools.system.utility.UniqueIdentifier

  }

  private static ItemId getItemId(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Field field) throws DliException {
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, field);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Constructor constructor) throws DliException {
    if (constructor.getRedefnr() == null) return null;
    LinkedList<Adjective> adjectiveList = new LinkedList<Adjective>();
    LinkedList<Term> termList = new LinkedList<Term>();
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, constructor.getRedefaid() , constructor.getKind(), constructor.getRedefnr());
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

  private static ItemId getItemId(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Func func)
    throws DliException {
      UniqueIdentifier uniqueIdentifier = null;
      try {
        uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, func);
      } catch (UniqueIdentifierException e) {
        throw new DliException();
      }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

  private static ItemId getItemId(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Typ typ)
  throws DliException {
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, typ);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

  private static ItemId getItemId(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Adjective adjective)
  throws DliException {
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, adjective);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

  static Constructor getConstructor(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Pattern pattern)
    throws DliException {
    if (pattern.getConstrnr() == 0) return null;
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, null, pattern.getConstrkind(), pattern.getConstrnr());
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

  }

  private static ItemId getItemId(
      AbstractSignature abstractSignature,
      org.mizartools.system.xml.Func.Kind kind, Integer nr) throws DliException {
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, null, kind, nr);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

 
  private static ItemId getItemId(
      AbstractSignature abstractSignature,
      org.mizartools.system.xml.Pred.Kind kind, Integer nr) throws DliException {
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, null, kind, nr);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

  static ItemId getItemId(
      AbstractSignature abstractSignature,
      org.mizartools.system.xml.Definiens.Constrkind constrkind,
      Integer constrnr) throws DliException {
    UniqueIdentifier uniqueIdentifier = null;
    try {
      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, null, constrkind, constrnr);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
View Full Code Here

Examples of org.mizartools.system.utility.UniqueIdentifier

    case prednot:
      if (!articleXml.hasNotations()) throw new DliException();
      NotationsSignature notationsSignature = articleXml.getNotationsSignature();
      for (org.mizartools.system.xml.Pattern pattern : articleXml.getNotations().getPatternList()){
        DecodedLibraryItem decodedLibraryItem = getItem(notationsSignature, pattern);
        UniqueIdentifier uniqueIdentifier1;
        try {
          uniqueIdentifier1 = UniqueIdentifier.getInstance(decodedLibraryItem.getItemId().toString());
        } catch (UniqueIdentifierException e) {
          e.printStackTrace();
          throw new DliException();
        }
        if (hashMapItem.containsKey(uniqueIdentifier1)) {
          throw new DliException();
        } else {
          hashMapItem.put(uniqueIdentifier1, decodedLibraryItem);
        }
      }
      break;
    case sch:
      if (!articleXml.hasSchemes()) throw new DliException();
      SchemesSignature schemesSignature = articleXml.getSchemesSignature();
      SchemeId schemeId = new SchemeId();
      for (org.mizartools.system.xml.Scheme scheme : articleXml.getSchemes().getSchemeList()){
        DecodedLibraryItem decodedLibraryItem = getItem(schemesSignature, scheme, schemeId);
        UniqueIdentifier uniqueIdentifier1;
        try {
          uniqueIdentifier1 = UniqueIdentifier.getInstance(decodedLibraryItem.getItemId().toString());
        } catch (UniqueIdentifierException e) {
          e.printStackTrace();
          throw new DliException();
        }
        if (hashMapItem.containsKey(uniqueIdentifier1)) {
          throw new DliException();
        } else {
          hashMapItem.put(uniqueIdentifier1, decodedLibraryItem);
        }
      }
      break;
    case dfs:
      if (!articleXml.hasDefinientia()) throw new DliException();
      DefinientiaSignature definientiaSignature = articleXml.getDefinientiaSignature();
      int relativeNr = 0;
      int nrDefiniens = 0;
      for (org.mizartools.system.xml.Definiens definiens : articleXml.getDefinientia().getDefiniensList()){
        nrDefiniens++;
        relativeNr = definiens.getDefnr() - nrDefiniens;
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(definientiaSignature, definiens, relativeNr);
        UniqueIdentifier uniqueIdentifier1;
        try {
          uniqueIdentifier1 = UniqueIdentifier.getInstance(decodedLibraryItem.getItemId().toString());
        } catch (UniqueIdentifierException e) {
          e.printStackTrace();
          throw new DliException();
        }
        if (hashMapItem.containsKey(uniqueIdentifier1)) {
          throw new DliException();
        } else {
          hashMapItem.put(uniqueIdentifier1, decodedLibraryItem);
        }
      }
      break;
    case def:
    case th:
      if (!articleXml.hasTheorems()) throw new DliException();
      TheoremsSignature theoremsSignature = articleXml.getTheoremsSignature();
      TheoremId theoremId = new TheoremId();
      TheoremId theoremIdDef = new TheoremId();
      for (org.mizartools.system.xml.Theorem theorem : articleXml.getTheorems().getTheoremList()){
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(theoremsSignature, theorem, theoremId, theoremIdDef);
        UniqueIdentifier uniqueIdentifier1;
        try {
          uniqueIdentifier1 = UniqueIdentifier.getInstance(decodedLibraryItem.getItemId().toString());
        } catch (UniqueIdentifierException e) {
          e.printStackTrace();
          throw new DliException();
        }
        if (hashMapItem.containsKey(uniqueIdentifier1)) {
          throw new DliException();
        } else {
          hashMapItem.put(uniqueIdentifier1, decodedLibraryItem);
        }
      }
      break;
    case exreg:
    case funcreg:
      if (!articleXml.hasRegistrations()) throw new DliException();
      RegistrationsSignature registrationsSignature = articleXml.getRegistrationsSignature();
      for (IClusterRegistration iClusterRegistration : articleXml.getRegistrations().getIClusterRegistrationList()){
        DecodedLibraryItem decodedLibraryItem = ItemFactory.getItem(registrationsSignature, iClusterRegistration);
        UniqueIdentifier uniqueIdentifier1;
        try {
          uniqueIdentifier1 = UniqueIdentifier.getInstance(decodedLibraryItem.getItemId().toString());
        } catch (UniqueIdentifierException e) {
          e.printStackTrace();
          throw new DliException();
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.