public final class PSEntityFactory extends Object
Modifier and Type | Method and Description |
---|---|
static PSComment |
toComment(Attributes atts,
PSComment comment) |
static PSDocument |
toDocument(Attributes atts,
PSDocument document)
|
static PSExternalURI |
toExternalURI(Attributes atts,
PSExternalURI externaluri)
|
static PSFolder |
toFolder(Attributes atts,
PSFolder folder)
|
static PSGroup |
toGroup(Attributes atts,
PSGroup group)
Generates the group object from the attributes of a "group" element.
|
static PSGroupFolder |
toGroupFolder(Attributes atts,
PSGroupFolder folder)
Generates the group folder object from the attributes of a "groupfolder" element.
|
static PSMember |
toMember(Attributes atts,
PSMember member)
Generates the member object from the attributes of a "member" element.
|
static PSMembership |
toMembership(Attributes atts,
PSMembership membership)
Generates the membership object from the attributes of a "membership" element.
|
static PSProject |
toProject(Attributes atts,
PSGroup group)
Generates the project object from the attributes of a "project" element.
|
static PSXRef |
toReverseXRef(Attributes atts,
PSURI target,
PSXRef xref)
Generates the xref object from the attributes of a "reversexref" element.
|
static PSXRef |
toXRef(Attributes atts,
PSURI source,
PSXRef xref)
Generates the xref object from the attributes of an "xref" or "blockxref" element.
|
public static PSMembership toMembership(Attributes atts, PSMembership membership)
Will use the following attributes:
atts
- the attributes of the "membership" element.membership
- an existing membership instance to reuse.public static PSMember toMember(Attributes atts, PSMember member)
Will use the following attributes:
atts
- the attributes of the "member" element.member
- an existing member instance to reuse.public static PSGroup toGroup(Attributes atts, PSGroup group)
Will use the following attributes:
atts
- the attributes of the "member" element.group
- an existing group instance to reuse.public static PSProject toProject(Attributes atts, PSGroup group)
Will use the following attributes:
atts
- the attributes of the "group" or "project" element.group
- an existing group instance to reuse (should be and instance of PSProject
)public static PSDocument toDocument(Attributes atts, PSDocument document)
atts
- The attributes the "uri" elementdocument
- The PSDocument instance (may be null
).public static PSExternalURI toExternalURI(Attributes atts, PSExternalURI externaluri)
atts
- The attributes the "uri" elementexternaluri
- The PSExternalURI instance (may be null
).public static PSComment toComment(Attributes atts, PSComment comment)
atts
- The attributes the "comment" elementcomment
- The PSComment instance (may be null
).public static PSFolder toFolder(Attributes atts, PSFolder folder)
atts
- The attributes of the "uri" elementfolder
- The folder instance (may be null
).public static PSGroupFolder toGroupFolder(Attributes atts, PSGroupFolder folder)
atts
- the attributes of the "groupfolder" element.folder
- an existing group folder instance to reuse.public static PSXRef toXRef(Attributes atts, PSURI source, PSXRef xref)
atts
- the attributes of the element.source
- the source URI.xref
- an existing xref instance to reuse.public static PSXRef toReverseXRef(Attributes atts, PSURI target, PSXRef xref)
atts
- the attributes of the element.target
- the source URI.xref
- an existing xref instance to reuse.Copyright © 2016 Allette Systems. All rights reserved.