eu.planets_project.ifr.core.techreg.properties
Class PropertyDefinitionFile
java.lang.Object
eu.planets_project.ifr.core.techreg.properties.PropertyDefinitionFile
public class PropertyDefinitionFile
- extends java.lang.Object
A list of property definitions, that can be stored as XML.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyDefinitionFile
public PropertyDefinitionFile(java.util.List<Property> ps)
- Parameters:
ps
- A list of properties to encapsulate. Any supplied
values are reset to null, so that only the definition remains.
toXml
public java.lang.String toXml()
- Returns:
- An XML representation (can be used to
instantiate an object using the static factory method)
toXmlFormatted
public java.lang.String toXmlFormatted()
- Returns:
- A formatted (pretty-printed) XML representation.
of
public static PropertyDefinitionFile of(java.lang.String xml)
- Parameters:
xml
- The XML representation (as created
from calling toXml)
- Returns:
- A digital object instance created from the given XML
Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.