Last change
on this file since 127 was
127,
checked in by patdui, 14 years ago
|
- added validation on nested components, they should all be registered!
- Added heuristics to registryFiller to help with initialisation of the registry (really not for general use!).
- added proper xlink namespace to the descriptions.
|
File size:
565 bytes
|
Line | |
---|
1 | package clarin.cmdi.componentregistry.model; |
---|
2 | |
---|
3 | import javax.xml.bind.annotation.XmlRootElement; |
---|
4 | |
---|
5 | import clarin.cmdi.componentregistry.ComponentRegistry; |
---|
6 | import clarin.cmdi.componentregistry.IdSequence; |
---|
7 | |
---|
8 | @XmlRootElement(name = "profileDescription") |
---|
9 | public class ProfileDescription extends AbstractDescription { |
---|
10 | |
---|
11 | public static ProfileDescription createNewDescription() { |
---|
12 | String id = ComponentRegistry.REGISTRY_ID+"p_" + IdSequence.get(); |
---|
13 | ProfileDescription desc = new ProfileDescription(); |
---|
14 | desc.setId(id); |
---|
15 | return desc; |
---|
16 | } |
---|
17 | |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.