-
Notifications
You must be signed in to change notification settings - Fork 7
/
GlobalAttribute.java
47 lines (42 loc) · 1.01 KB
/
GlobalAttribute.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package uk.ac.bristol.star.cdf;
/**
* Provides the description and entry values
* for CDF attribute with global scope.
*
* <p>The gEntries and zEntries are combined in a single list,
* on the grounds that users are not likely to be much interested
* in the difference.
*
* @author Mark Taylor
* @since 20 Jun 2013
*/
public class GlobalAttribute {
private final String name_;
private final AttributeEntry[] entries_;
/**
* Constructor.
*
* @param name attribute name
* @param entries attribute entries
*/
public GlobalAttribute( String name, AttributeEntry[] entries ) {
name_ = name;
entries_ = entries;
}
/**
* Returns this attribute's name.
*
* @return attribute name
*/
public String getName() {
return name_;
}
/**
* Returns this attribute's entry values.
*
* @return entry values for this attribute
*/
public AttributeEntry[] getEntries() {
return entries_;
}
}