public final class PropertySet extends Object implements Serializable, com.escenic.module.CanContainModules
Modifier and Type | Class and Description |
---|---|
static class |
PropertySet.Style
The display style of property set.
|
Constructor and Description |
---|
PropertySet(PropertySet.Style pStyle,
String pLabel,
String pDescription,
Collection<PropertyDescriptor> pPropertyDescriptors,
List<com.escenic.module.Module> pModules) |
PropertySet(String pName,
PropertySet.Style pStyle,
String pLabel,
String pDescription,
Collection<PropertyDescriptor> pPropertyDescriptors,
List<com.escenic.module.Module> pModules)
Creates a property set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns the description of this property set.
|
String |
getLabel()
Returns the label of this property set.
|
com.escenic.module.Module |
getModule(URI pURI,
String pElementName)
The first module instance with the URI and element name as specified, and with no attributes, or
null if
there is no module which matches. |
com.escenic.module.Module |
getModule(URI pURI,
String pElementName,
String pAttributeName,
String pValue)
The first module instance with the URI and element name as specified, and with an attribute value as specified, or
null if there is no module which matches. |
List<com.escenic.module.Module> |
getModules()
Gets all the modules regardless of namespace.
|
List<com.escenic.module.Module> |
getModules(URI pURI)
Return a list of Module instances for the containing element.
|
List<com.escenic.module.Module> |
getModules(URI pURI,
String pElementName)
Return a list of module instances with the URI and element name as specified.
|
List<com.escenic.module.Module> |
getModules(URI pURI,
String pElementName,
String pAttributeName,
String pValue)
Return a list of module instances with the URI and element name as specified, and with an attribute value as
specified.
|
String |
getName() |
List<PropertyDescriptor> |
getPropertyDescriptors()
Returns the list of fields of this property set.
|
PropertySet.Style |
getStyle()
Returns the display style of this property set.
|
int |
hashCode() |
boolean |
hasModules()
If there are any modules registered, this would return true.
|
String |
toString() |
public PropertySet(PropertySet.Style pStyle, String pLabel, String pDescription, Collection<PropertyDescriptor> pPropertyDescriptors, List<com.escenic.module.Module> pModules)
public PropertySet(String pName, PropertySet.Style pStyle, String pLabel, String pDescription, Collection<PropertyDescriptor> pPropertyDescriptors, List<com.escenic.module.Module> pModules)
pName
- the name of the field set.pStyle
- the display style of this property set; can not be null
.pLabel
- the label of this property set; can be null
or empty.pDescription
- the description of this property set; can be null
or empty.pPropertyDescriptors
- the list of properties of this property set; can not be null
or empty; can not
contain null
elements.pModules
- the modules of this property set; can be null
or empty.IllegalArgumentException
- if any of the argument is invalid.public String getName()
public PropertySet.Style getStyle()
null
.public String getLabel()
null
or empty.public String getDescription()
null
or empty.public List<PropertyDescriptor> getPropertyDescriptors()
null
or empty.public boolean hasModules()
com.escenic.module.CanContainModules
hasModules
in interface com.escenic.module.CanContainModules
true
if any modules exist.public List<com.escenic.module.Module> getModules()
com.escenic.module.CanContainModules
getModules
in interface com.escenic.module.CanContainModules
public List<com.escenic.module.Module> getModules(URI pURI)
com.escenic.module.CanContainModules
getModules
in interface com.escenic.module.CanContainModules
pURI
- The URI of the namespace of the markuppublic List<com.escenic.module.Module> getModules(URI pURI, String pElementName)
com.escenic.module.CanContainModules
getModules
in interface com.escenic.module.CanContainModules
pURI
- The URI of the namespace of the markuppElementName
- The name of the element you are looking forpublic List<com.escenic.module.Module> getModules(URI pURI, String pElementName, String pAttributeName, String pValue)
com.escenic.module.CanContainModules
getModules
in interface com.escenic.module.CanContainModules
pURI
- The URI of the namespace of the markuppElementName
- The name of the element you are looking forpAttributeName
- The name of the attribute you want to look forpValue
- The value of the attribute you want to look for, or null
if you want an element without this
attribute.public com.escenic.module.Module getModule(URI pURI, String pElementName)
com.escenic.module.CanContainModules
null
if
there is no module which matches.getModule
in interface com.escenic.module.CanContainModules
pURI
- The URI of the namespace of the markuppElementName
- The name of the element you are looking fornull
if no such module exists.public com.escenic.module.Module getModule(URI pURI, String pElementName, String pAttributeName, String pValue)
com.escenic.module.CanContainModules
null
if there is no module which matches.getModule
in interface com.escenic.module.CanContainModules
pURI
- The URI of the namespace of the markuppElementName
- The name of the element you are looking fornull
if no such module exists.© 1998- 2018 Stibo DX