* ============LICENSE_START=======================================================
* ONAP-XACML
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private URI location = null;
-
+ public StdPDPPolicy() {
+ //
+ // Methods needed for JSON Deserialization
+ //
+ }
+
public StdPDPPolicy(String id, boolean isRoot) {
this.id = id;
this.isRoot = isRoot;
}
if (this.policyId != null) {
ArrayList<String> foo = Lists.newArrayList(Splitter.on(':').split(this.policyId));
- if (foo.isEmpty() == false) {
+ if (!foo.isEmpty()) {
return foo.get(foo.size() - 1);
}
}
}
String versionString = "";
if (array.length > 0) {
- versionString = "" + array[0];
+ versionString = "" + Integer.toString(array[0]);
for (int i = 1; i < array.length; i++) {
- versionString += "." + array[i];
+ versionString += "." + Integer.toString(array[i]);
}
}
return versionString;
}
-
-
- //
- // Methods needed for JSON Deserialization
- //
- public StdPDPPolicy() {}
-
public void setPolicyId(String policyId) {
this.policyId = policyId;
}