public class EntityFactory extends java.lang.Object
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
EntityFactory() |
Modifier and Type | Method and 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).
|
public EntityFactory()
public static Entity create(Part part, java.util.List<Entity> drawings, java.util.List<Entity> views, DirEntry de)
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).public static GeomSSEntity create(Part part, int DEnum, GeomElement geom)
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.null
if no match could be found.public static GeomSSEntity createList(Part part, int DEnum, java.util.List<Entity> children, java.lang.String name)
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.null
if no match could be found.