Package org.opennms.netmgt.model
Class PrefabGraph
- java.lang.Object
-
- org.opennms.netmgt.model.PrefabGraph
-
- All Implemented Interfaces:
java.lang.Comparable<PrefabGraph>
public class PrefabGraph extends java.lang.Object implements java.lang.Comparable<PrefabGraph>
PrefabGraph class.
-
-
Constructor Summary
Constructors Constructor Description PrefabGraph(java.lang.String name, java.lang.String title, java.lang.String[] columns, java.lang.String command, java.lang.String[] externalValues, java.lang.String[] propertiesValues, int order, java.lang.String[] types, java.lang.String description, java.lang.Integer graphWidth, java.lang.Integer graphHeight, java.lang.String[] suppress)
Constructor for PrefabGraph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PrefabGraph other)
compareTojava.lang.String[]
getColumns()
getColumnsjava.lang.String
getCommand()
getCommandjava.lang.String
getDescription()
Can be null.java.lang.String[]
getExternalValues()
getExternalValuesjava.lang.Integer
getGraphHeight()
Can be null.java.lang.Integer
getGraphWidth()
Can be null.java.lang.String
getName()
getNameint
getOrder()
getOrderjava.lang.String[]
getPropertiesValues()
getPropertiesValuesjava.lang.String[]
getSuppress()
getSuppressjava.lang.String
getTitle()
getTitlejava.lang.String[]
getTypes()
Can be null.boolean
hasMatchingType(java.lang.String... matchingTypes)
hasMatchingType
-
-
-
Constructor Detail
-
PrefabGraph
public PrefabGraph(java.lang.String name, java.lang.String title, java.lang.String[] columns, java.lang.String command, java.lang.String[] externalValues, java.lang.String[] propertiesValues, int order, java.lang.String[] types, java.lang.String description, java.lang.Integer graphWidth, java.lang.Integer graphHeight, java.lang.String[] suppress)
Constructor for PrefabGraph.
- Parameters:
name
- aString
object.title
- aString
object.columns
- an array ofString
objects.command
- aString
object.externalValues
- an array ofString
objects.propertiesValues
- an array ofString
objects.order
- a int.types
- an array ofString
objects.description
- aString
object.graphWidth
- aInteger
object.graphHeight
- aInteger
object.suppress
- an array ofString
objects.
-
-
Method Detail
-
getName
public java.lang.String getName()
getName
- Returns:
- a
String
object.
-
getTitle
public java.lang.String getTitle()
getTitle
- Returns:
- a
String
object.
-
getOrder
public int getOrder()
getOrder
- Returns:
- a int.
-
getColumns
public java.lang.String[] getColumns()
getColumns
- Returns:
- an array of
String
objects.
-
getCommand
public java.lang.String getCommand()
getCommand
- Returns:
- a
String
object.
-
getExternalValues
public java.lang.String[] getExternalValues()
getExternalValues
- Returns:
- an array of
String
objects.
-
getPropertiesValues
public java.lang.String[] getPropertiesValues()
getPropertiesValues
- Returns:
- list of required string properties
- See Also:
StringPropertyAttribute
-
getTypes
public java.lang.String[] getTypes()
Can be null.- Returns:
- an array of
String
objects.
-
hasMatchingType
public boolean hasMatchingType(java.lang.String... matchingTypes)
hasMatchingType
- Parameters:
matchingTypes
- aString
object.- Returns:
- a boolean.
-
getDescription
public java.lang.String getDescription()
Can be null.- Returns:
- a
String
object.
-
getGraphWidth
public java.lang.Integer getGraphWidth()
Can be null.- Returns:
- a
Integer
object.
-
getGraphHeight
public java.lang.Integer getGraphHeight()
Can be null.- Returns:
- a
Integer
object.
-
getSuppress
public java.lang.String[] getSuppress()
getSuppress
- Returns:
- an array of
String
objects.
-
compareTo
public int compareTo(PrefabGraph other)
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<PrefabGraph>
- Parameters:
other
- aPrefabGraph
object.- Returns:
- a int.
-
-