Last change
on this file since 77 was
77,
checked in by psniegowski, 11 years ago
|
Add new java codebase.
|
File size:
859 bytes
|
Rev | Line | |
---|
[77] | 1 | package com.framsticks.params.types; |
---|
| 2 | |
---|
| 3 | import com.framsticks.params.AccessInterface; |
---|
| 4 | import com.framsticks.params.Param; |
---|
| 5 | import com.framsticks.util.Strings; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * @author Piotr Sniegowski |
---|
| 9 | */ |
---|
| 10 | public abstract class CompositeParam extends Param { |
---|
| 11 | protected final String containedTypeName; |
---|
| 12 | |
---|
| 13 | public CompositeParam(String containedTypeName) { |
---|
| 14 | this.containedTypeName = Strings.notEmpty(containedTypeName) ? containedTypeName : null; |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | public boolean isMatchingContainedName(String name) { |
---|
| 18 | assert name != null; |
---|
| 19 | if (containedTypeName == null) { |
---|
| 20 | return true; |
---|
| 21 | } |
---|
| 22 | return name.equals(containedTypeName); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | public String getContainedTypeName() { |
---|
| 26 | return containedTypeName; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | public abstract AccessInterface prepareAccessInterface(AccessInterface access); |
---|
| 30 | |
---|
| 31 | public abstract String computeAccessId(); |
---|
| 32 | |
---|
| 33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.