public class EDIFPropertyObject extends EDIFName
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EXPORT_CONST_OWNER_END |
static byte[] |
EXPORT_CONST_OWNER_START |
static byte[] |
EXPORT_CONST_PROP_END |
static byte[] |
EXPORT_CONST_PROP_START |
EXPORT_CONST_RENAME_START| Constructor and Description |
|---|
EDIFPropertyObject(EDIFPropertyObject obj) |
EDIFPropertyObject(String name) |
| Modifier and Type | Method and Description |
|---|---|
EDIFPropertyValue |
addProperty(String key,
boolean value)
Convenience property creator for booleans
|
EDIFPropertyValue |
addProperty(String key,
EDIFPropertyValue value)
Adds the property entry mapping for this object.
|
EDIFPropertyValue |
addProperty(String key,
int value)
Convenience property creator for integers
|
EDIFPropertyValue |
addProperty(String key,
String value)
Convenience property creator for string types
|
EDIFPropertyValue |
addProperty(String key,
String value,
EDIFValueType type)
Convenience property creator.
|
Map<String,EDIFPropertyValue> |
createDuplicatePropertiesMap()
Creates a completely new copy of the map
|
void |
exportEDIFProperties(OutputStream os,
byte[] indent,
EDIFWriteLegalNameCache<?> cache,
boolean stable) |
EDIFPropertyValue |
getIOStandard()
Helper method to get the IOStandard property, with consideration for
an upper-case key name.
|
Map<String,EDIFPropertyValue> |
getPropertiesMap()
Get all properties in native format
|
EDIFPropertyValue |
getProperty(String key) |
EDIFPropertyValue |
removeProperty(String key)
Convenience method to remove a property
|
void |
setPropertiesMap(Map<String,EDIFPropertyValue> properties)
Set all properties
|
compareTo, equals, exportEDIFName, exportSomeEDIFName, getName, getNewMap, hashCode, toStringpublic static final byte[] EXPORT_CONST_PROP_START
public static final byte[] EXPORT_CONST_OWNER_START
public static final byte[] EXPORT_CONST_OWNER_END
public static final byte[] EXPORT_CONST_PROP_END
public EDIFPropertyObject(String name)
public EDIFPropertyObject(EDIFPropertyObject obj)
public EDIFPropertyValue getIOStandard()
public EDIFPropertyValue addProperty(String key, String value, EDIFValueType type)
key - Key value (to be wrapped in an EDIFName)value - The value of the propertytype - The type of value (string, boolean, integer)public EDIFPropertyValue addProperty(String key, String value)
key - Key value (to be wrapped in an EDIFName)value - The value of the propertypublic EDIFPropertyValue addProperty(String key, int value)
key - Key value (to be wrapped in an EDIFName)value - The value of the propertypublic EDIFPropertyValue addProperty(String key, boolean value)
key - Key value (to be wrapped in an EDIFName)value - The value of the propertypublic EDIFPropertyValue removeProperty(String key)
key - Name of the propertypublic EDIFPropertyValue addProperty(String key, EDIFPropertyValue value)
key - Key entry for the propertyvalue - Value entry for the propertypublic EDIFPropertyValue getProperty(String key)
public Map<String,EDIFPropertyValue> createDuplicatePropertiesMap()
public Map<String,EDIFPropertyValue> getPropertiesMap()
public void setPropertiesMap(Map<String,EDIFPropertyValue> properties)
properties - the properties to setpublic void exportEDIFProperties(OutputStream os,
byte[] indent,
EDIFWriteLegalNameCache<?> cache,
boolean stable)
throws IOException
IOException