public class PIDInformation extends Object
Constructor and Description |
---|
PIDInformation() |
PIDInformation(HashMap<String,rdapit.pitservice.PIDInformation.PIDInformationPropertyEntry> propertyValues,
HashMap<String,Boolean> conformance) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String propertyIdentifier,
String propertyName,
String propertyValue) |
boolean |
checkTypeConformance(TypeDefinition typeDef)
Checks whether the stored property values conform to the given type and
stores the result of the conformance checks in the local information
record.
|
Set<String> |
getPropertyIdentifiers() |
String |
getPropertyValue(String propertyIdentifier)
Returns the value of a single property given the property identifier.
|
boolean |
hasProperty(String propertyIdentifier) |
void |
removePropertiesNotListed(Collection<String> propertiesToKeep)
Removes all properties that are not listed in the given collection.
|
void |
setPropertyName(String propertyIdentifier,
String name)
Sets the name of an already listed property, given its identifier.
|
public boolean checkTypeConformance(TypeDefinition typeDef)
typeDef
- public String getPropertyValue(String propertyIdentifier)
propertyIdentifier
- public void addProperty(String propertyIdentifier, String propertyName, String propertyValue)
public void setPropertyName(String propertyIdentifier, String name)
propertyIdentifier
- name
- public boolean hasProperty(String propertyIdentifier)
public void removePropertiesNotListed(Collection<String> propertiesToKeep)
propertiesToKeep
- a collection of property identifiers to keep.Copyright © 2014. All rights reserved.