public class PrincipalsRepresentation extends LinkCollection
Java class for PrincipalsCollection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PrincipalsCollection">
<complexContent>
<extension base="{https://phenotips.org/rest-commons/}LinkCollection">
<sequence>
<element name="principal" type="{https://phenotips.org/rest-permissions/}PrincipalSummary" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<PrincipalRepresentation> |
principals |
links| Constructor and Description |
|---|
PrincipalsRepresentation() |
| Modifier and Type | Method and Description |
|---|---|
List<PrincipalRepresentation> |
getPrincipals()
Gets the value of the principals property.
|
PrincipalsRepresentation |
withPrincipals(Collection<PrincipalRepresentation> values) |
PrincipalsRepresentation |
withPrincipals(PrincipalRepresentation... values) |
getLinks, withLinks, withLinksprotected List<PrincipalRepresentation> principals
public List<PrincipalRepresentation> getPrincipals()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the principals property.
For example, to add a new item, do as follows:
getPrincipals().add(newItem);
Objects of the following type(s) are allowed in the list
PrincipalRepresentation
public PrincipalsRepresentation withPrincipals(PrincipalRepresentation... values)
public PrincipalsRepresentation withPrincipals(Collection<PrincipalRepresentation> values)
Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.