net.sf.jdiskcatalog.model
Class NodeInfoImpl
java.lang.Object
net.sf.jdiskcatalog.model.NodeInfoImpl
- All Implemented Interfaces:
- MutableNodeInfo, NodeInfo
public class NodeInfoImpl
- extends java.lang.Object
- implements MutableNodeInfo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NodeInfoImpl
public NodeInfoImpl(java.lang.String name,
NodeInfo.Type type)
getName
public java.lang.String getName()
- Specified by:
getName
in interface NodeInfo
getType
public NodeInfo.Type getType()
- Specified by:
getType
in interface NodeInfo
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty
in interface NodeInfo
getProperty
public <T> T getProperty(java.lang.String name,
T defaultValue)
- Specified by:
getProperty
in interface NodeInfo
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty
in interface MutableNodeInfo
hasProperty
public boolean hasProperty(java.lang.String name)
- Specified by:
hasProperty
in interface NodeInfo
getProperties
public java.util.Collection<java.lang.String> getProperties()
- Specified by:
getProperties
in interface NodeInfo
Copyright © 2007. All Rights Reserved.