Package geomss.geom.reader.iges
Class EntityFactory
- java.lang.Object
-
- geomss.geom.reader.iges.EntityFactory
-
public class EntityFactory extends java.lang.Object
A factory class that provides methods for creating Entity instances.Modified by: Joseph A. Huwaldt
- Version:
- September 13, 2016
- Author:
- Joseph A. Huwaldt, Date: April 27, 2013
-
-
Constructor Summary
Constructors Constructor Description EntityFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeomSSEntity
create(Part part, int DEnum, GeomElement geom)
Return an entity that corresponds to the specified GeomSS geometry object.static Entity
create(Part part, java.util.List<Entity> drawings, java.util.List<Entity> views, DirEntry de)
Return an Entity that corresponds to the specified Directory Entry.static GeomSSEntity
createList(Part part, int DEnum, java.util.List<Entity> children, java.lang.String name)
Return an entity that corresponds to the a Type 402-15 Associativity (List).
-
-
-
Constructor Detail
-
EntityFactory
public EntityFactory()
-
-
Method Detail
-
create
public static Entity create(Part part, java.util.List<Entity> drawings, java.util.List<Entity> views, DirEntry de)
Return an Entity that corresponds to the specified Directory Entry.- Parameters:
part
- The part that the entity is associated with.drawings
- A list that any Entity 404 Drawing objects will be added to.views
- A list that any Entity 410 Views will be added to.de
- The Directory Entry for the part entity (which defines the type for the Entity).- Returns:
- The newly created entity that corresponds to the specified Directory Entry.
-
create
public static GeomSSEntity create(Part part, int DEnum, GeomElement geom)
Return an entity that corresponds to the specified GeomSS geometry object.- Parameters:
part
- The part that the entity is associated with.DEnum
- The line count from the start of the Directory Entry Section for this entry (odd number).geom
- The GeomSS geometry to return an Entity for.- Returns:
- An Entity that corresponds to the specified geometry object or
null
if no match could be found.
-
createList
public static GeomSSEntity createList(Part part, int DEnum, java.util.List<Entity> children, java.lang.String name)
Return an entity that corresponds to the a Type 402-15 Associativity (List).- Parameters:
part
- The part that the entity is associated with.DEnum
- The line count from the start of the Directory Entry Section for this entry (odd number).children
- The entities that are contained in this list.name
- The name to apply to the entity or null for no name.- Returns:
- An Entity that corresponds to the specified geometry object or
null
if no match could be found.
-
-