public class ProfileAttributes extends Object implements Serializable, Cloneable, Comparable, Documentable
Modifier and Type | Field and Description |
---|---|
protected List |
children
List of zero or more children profile IDs (
String s). |
protected String |
id
Unique identifier, required.
|
protected String |
parent
Parent profile ID, optional.
|
protected String |
regAuthority
Registration authority, optional.
|
protected List |
revisionNotes
Revision notes, zero or more
String s. |
protected String |
securityType
Type of security to apply, optional.
|
protected String |
statusID
Status ID, required.
|
protected String |
type
Type, required.
|
protected String |
version
Version, optional.
|
Constructor and Description |
---|
ProfileAttributes()
Create blank profile attributes.
|
ProfileAttributes(Node root)
Create profile attributes from an XML document.
|
ProfileAttributes(String id,
String version,
String type,
String statusID,
String securityType,
String parent,
List children,
String regAuthority,
List revisionNotes)
Create profile attributes from constituent attributes.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compareTo(Object rhs) |
static Document |
createProfAttributesDocument()
Create a <profAttributes> document using the profiles DTD.
|
boolean |
equals(Object rhs) |
List |
getChildren()
Get the children of this profile.
|
String |
getID()
Get the ID.
|
String |
getParent()
Get the parent of this profile.
|
String |
getRegAuthority()
Get the registration authority of this profile.
|
List |
getRevisionNotes()
Get the revision notes of this profile.
|
String |
getSecurityType()
Get the security type.
|
String |
getStatusID()
Get the status ID.
|
String |
getType()
Get the type.
|
String |
getVersion()
Get the version.
|
int |
hashCode() |
void |
setID(String id)
Set the ID.
|
void |
setParent(String theParent)
Set the Parent
|
void |
setRegAuthority(String regAuthority)
Set the registration authority of this profile.
|
void |
setSecurityType(String securityType)
Set the security type.
|
void |
setStatusID(String statusID)
Set the status ID.
|
void |
setType(String type)
Set the type.
|
void |
setVersion(String version)
Set the version.
|
String |
toString() |
Node |
toXML(Document doc)
Serialize this attributes as an XML node.
|
protected String id
protected String version
protected String type
protected String statusID
protected String securityType
protected String parent
protected String regAuthority
public ProfileAttributes()
public ProfileAttributes(Node root)
root
- The <profAttributes> element.public int compareTo(Object rhs)
compareTo
in interface Comparable
public String getID()
public String getVersion()
public String getType()
public String getStatusID()
public String getSecurityType()
public String getParent()
public List getChildren()
String
IDs of its children.public String getRegAuthority()
public List getRevisionNotes()
String
revision notes.public void setParent(String theParent)
theParent
- The Parent String.public void setID(String id)
id
- The ID.public void setVersion(String version)
version
- The version.public void setType(String type)
type
- The type of the profile.public void setStatusID(String statusID)
statusID
- The status ID.public void setSecurityType(String securityType)
securityType
- The security type.public void setRegAuthority(String regAuthority)
regAuthority
- Its registration authority.public Node toXML(Document doc) throws DOMException
toXML
in interface Documentable
doc
- The document that will own this node.DOMException
- If an error occurs creating the XML nodes.public static Document createProfAttributesDocument()
Copyright © 1999-2014 Apache OODT. All Rights Reserved.