A - the actual type of AmetysObjectspublic interface AmetysObjectFactory<A extends AmetysObject> extends Component
AmetysObject.| Modifier and Type | Method and Description |
|---|---|
A |
getAmetysObjectById(String id)
|
String |
getScheme()
Returns the protocol of this factory, used to construct unique ids.
|
boolean |
hasAmetysObjectForId(String id)
Return true if the specified id correspond to an existing
AmetysObject. |
A getAmetysObjectById(String id) throws AmetysRepositoryException
id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObject.
Id are like <protocol>://<protocol-specific-part>.id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.