fr.etai.xat2v2.util
Class PartUtil

java.lang.Object
  extended by fr.etai.xat2v2.util.PartUtil

public final class PartUtil
extends Object


Method Summary
static void addCommentByType(Part part, String ref, String comment)
          Adds a classified comment to the part
static void addDescriptionByType(Part part, String ref, String description)
           
static String getComment(Part part)
          Returns the non classified comment of the part
static Classification[] getCommentListByType(Part part, String ref)
          Returns the part's comments matching the ref in the ETAI:commentType dictionary
static Classification[] getDescriptionListByType(Part part, String ref)
           
static Classification[] getReferenceListBySource(Part part, String source)
          Returns the part references matching the source given.
static Price[] getUnitPriceList(Part part)
          Returns all the unit prices of this part
static boolean matchBreakdown(Part part, String dictionary, String ref)
           
static void setComment(Part part, String comment)
          Sets the non classified comment of the part
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matchBreakdown

public static boolean matchBreakdown(Part part,
                                     String dictionary,
                                     String ref)
Parameters:
part -
dictionary -
ref -
Returns:

getReferenceListBySource

public static Classification[] getReferenceListBySource(Part part,
                                                        String source)
Returns the part references matching the source given.

Parameters:
part -
source -
Returns:

getUnitPriceList

public static Price[] getUnitPriceList(Part part)
Returns all the unit prices of this part

Parameters:
part -
Returns:

getComment

public static String getComment(Part part)
Returns the non classified comment of the part

Parameters:
part -
Returns:

setComment

public static void setComment(Part part,
                              String comment)
Sets the non classified comment of the part

Parameters:
part -
comment -

getCommentListByType

public static Classification[] getCommentListByType(Part part,
                                                    String ref)
Returns the part's comments matching the ref in the ETAI:commentType dictionary

Parameters:
part -
ref -
Returns:

addCommentByType

public static void addCommentByType(Part part,
                                    String ref,
                                    String comment)
Adds a classified comment to the part

Parameters:
part -
ref -
comment -

getDescriptionListByType

public static Classification[] getDescriptionListByType(Part part,
                                                        String ref)
Parameters:
part -
ref -

addDescriptionByType

public static void addDescriptionByType(Part part,
                                        String ref,
                                        String description)
Parameters:
part -
ref -
description -


Copyright © 2012. All Rights Reserved.